Configuration of Linux client.
Posted: Sun Mar 18, 2012 11:17 pm
I have installed a openvpn server on a Centos 5 server using a script.
It went all quite automatic, and while logging on using a windows client everything
works quite well. The windowsclient is set up form the downloadable client from
this web site, and the only thing I had to do was to copy over certificates/config files.
For Windows clients this has worked quite well.
I then desided that I also want to have my Linux Mint client logged on to the openvpn
server, but this did not work. I used the client example file from this web site on the Linux
client. http://openvpn.net/index.php/open-sourc ... l#examples
Here is the config file from my server:
local 11.11.11.11
port 443
proto tcp
dev tun
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/server.crt
key /etc/openvpn/keys/server.key
dh /etc/openvpn/keys/dh1024.pem
server 10.9.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"
keepalive 5 30
comp-lzo
persist-key
persist-tun
status server-tcp.log
verb 0
tun-mtu 1500
Could this config file work for a Linux client as well or is it "something special" that
makes it applicable for windows clients only ?
By the way, what does this mean: push "redirect-gateway def1"
(It looks like that the Linux client does not accept it ??)
One of my main ideas was to try to learn a little bit about OpenVPN so I would be
thankfull if somone left a few words ..
When the Linux client log on, it looks like that the certificates and etc is accepted,
but then when the client tryes to set up routes and dns (?) something goes wrong..
It went all quite automatic, and while logging on using a windows client everything
works quite well. The windowsclient is set up form the downloadable client from
this web site, and the only thing I had to do was to copy over certificates/config files.
For Windows clients this has worked quite well.
I then desided that I also want to have my Linux Mint client logged on to the openvpn
server, but this did not work. I used the client example file from this web site on the Linux
client. http://openvpn.net/index.php/open-sourc ... l#examples
Here is the config file from my server:
local 11.11.11.11
port 443
proto tcp
dev tun
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/server.crt
key /etc/openvpn/keys/server.key
dh /etc/openvpn/keys/dh1024.pem
server 10.9.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"
keepalive 5 30
comp-lzo
persist-key
persist-tun
status server-tcp.log
verb 0
tun-mtu 1500
Could this config file work for a Linux client as well or is it "something special" that
makes it applicable for windows clients only ?
By the way, what does this mean: push "redirect-gateway def1"
(It looks like that the Linux client does not accept it ??)
One of my main ideas was to try to learn a little bit about OpenVPN so I would be
thankfull if somone left a few words ..
When the Linux client log on, it looks like that the certificates and etc is accepted,
but then when the client tryes to set up routes and dns (?) something goes wrong..