I need to create a VPN connection because in my office we use proxy and i can't access to internet with terminal (i tried all solutions and not work for me and i just can connect to the internet with browser not terminal)
So i need VPN for this problem to direct my network and no use proxy.
I opened "Network Setting" and then "add->VPN->Import from file" and i cant create connection.Please help me with that.
My point is some command like "yum update" work for me through terminal:
Sorry for my terrible English.
Create VPN connection in CentOS 7
-
- Posts: 45
- Joined: 2010/01/28 21:05:11
- Location: University of the Free State - South Africa
- Contact:
Re: Create VPN connection in CentOS 7
You don't need to have a VPN just to connect through a proxy server.
If you need to use a proxy server, you can do the following in a terminal:
To configure yum add a line to /etc/yum.conf:
Now, if your proxy server uses authentication (username and password), you can use it as follows:
If your password has special characters, try escaping it using a "\" in front of the character and use a double quote to contain the value:
If you need to use a proxy server, you can do the following in a terminal:
Code: Select all
export http_proxy=http://your_proxy_server:3128
export ftp_proxy=$http_proxy
export https_proxy=$http_proxy
wget https://www.centos.org/forums/styles/prosilver/imageset/modern-CentOS-logo.png
Code: Select all
....
proxy=http://your_proxy_server:3128
....
Code: Select all
export http_proxy=http://my_username:mypassword@my_proxy_server:3128
Code: Select all
#Lets say my username is albert and my password is password!123
export http_proxy="http://albert:password\!123@proxyserver:3128"