Create VPN connection in CentOS 7

Issues related to configuring your network
Post Reply
hoda2020
Posts: 1
Joined: 2014/10/21 05:10:38

Create VPN connection in CentOS 7

Post by hoda2020 » 2014/10/21 06:28:22

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.

vanecka
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

Post by vanecka » 2014/10/22 09:55:26

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:

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
To configure yum add a line to /etc/yum.conf:

Code: Select all

....
proxy=http://your_proxy_server:3128
....
Now, if your proxy server uses authentication (username and password), you can use it as follows:

Code: Select all

export http_proxy=http://my_username:mypassword@my_proxy_server:3128
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:

Code: Select all

#Lets say my username is albert and my password is password!123
export http_proxy="http://albert:password\!123@proxyserver:3128"

Post Reply