Small issues with a working vpn tunnel
Posted: Tue Jan 04, 2011 2:38 pm
Dear Sir or Madame
I have working tun openvpn tunnel between my laptop and my router
but it does not really work as intended.
The whole idea with my vpn installation is that the laptop/home lan should perceive
the laptop as if I was connecting to the home lan with a cable and this independently
where the laptop physical is placed on the planet.
The home lan consist of as router (DIR-825) with DHCP and openvpn installed on it.
After I created the tunnel I am able to ping other units on the home lan and
access them with a browser, the laptop has windows 7.
Issue 1:
When connecting my laptop to the home network with vpn, my laptop does not
get the static IP number that I have setup in the routers DHCP table, instead the
laptop get ip number 10.0.0.6.
How do I configure the server config file so it will use the home lan's DHCP ?
Issue 2:
After I have connected to the home lan with vpn I can not "find" the other units on my home lan.
In windows 7 check my network the NAS on the home network does not show up
but I can ping the NAS, so it seems that windows 7 "discover other network units stuff"
does not work over the vpn tunnel.
Issue 3:
How do I set the name of the VPN tunnel,
If I enter ipconfig on my PC it will say that the home lan name is "Connected to local network 2"
Is this done in the client.opvn file? If so, what is the "command" ?
Issue 4:
According to the laptop this network (vpn tunnel) is a "unidentified network" of the
type "public network", how can I change this to "home network",
This is not really a OpenVPN questions but .. well ... I am writing everything.
Issue 5:
In some postings I can see that people have added "mssfix 1400" in their
configurations files. What does this do ?
Issue 6:
I have been looking around on the http://www.openvpn.net but not been able to
find a document that in detail describe all the various commands that you
can add to the server/client configuration file, can someone give me a tip?
Issue 7:
Is there a good "howto" to set up a OpenVPN bridge on a linux machine ?
The OpenVPN SERVER configure file, openvpn.conf looks like this
The OpenVPN CLIENT configure file, client.ovpn looks like this
Regards Stefan
I have working tun openvpn tunnel between my laptop and my router
but it does not really work as intended.
The whole idea with my vpn installation is that the laptop/home lan should perceive
the laptop as if I was connecting to the home lan with a cable and this independently
where the laptop physical is placed on the planet.
The home lan consist of as router (DIR-825) with DHCP and openvpn installed on it.
After I created the tunnel I am able to ping other units on the home lan and
access them with a browser, the laptop has windows 7.
Issue 1:
When connecting my laptop to the home network with vpn, my laptop does not
get the static IP number that I have setup in the routers DHCP table, instead the
laptop get ip number 10.0.0.6.
How do I configure the server config file so it will use the home lan's DHCP ?
Issue 2:
After I have connected to the home lan with vpn I can not "find" the other units on my home lan.
In windows 7 check my network the NAS on the home network does not show up
but I can ping the NAS, so it seems that windows 7 "discover other network units stuff"
does not work over the vpn tunnel.
Issue 3:
How do I set the name of the VPN tunnel,
If I enter ipconfig on my PC it will say that the home lan name is "Connected to local network 2"
Is this done in the client.opvn file? If so, what is the "command" ?
Issue 4:
According to the laptop this network (vpn tunnel) is a "unidentified network" of the
type "public network", how can I change this to "home network",
This is not really a OpenVPN questions but .. well ... I am writing everything.
Issue 5:
In some postings I can see that people have added "mssfix 1400" in their
configurations files. What does this do ?
Issue 6:
I have been looking around on the http://www.openvpn.net but not been able to
find a document that in detail describe all the various commands that you
can add to the server/client configuration file, can someone give me a tip?
Issue 7:
Is there a good "howto" to set up a OpenVPN bridge on a linux machine ?
The OpenVPN SERVER configure file, openvpn.conf looks like this
Code: Select all
mode server
tls-server
port 1194
proto udp
dev tun
#Certificates
ca /etc/easy-rsa/keys/ca.crt
cert /etc/easy-rsa/keys/XXXXX.XXXX.XXX.crt
key /etc/easy-rsa/keys/XXXXX.XXXX.XXX.key
dh /etc/easy-rsa/keys/dh1024.pem
server 10.0.0.0 255.255.255.0
push "redirect-gateway def1"
push "dhcp-option DNS 192.168.1.1"
persist-key
persist-tun
max-clients 3
#comp-lzo
verb 3
keepalive 10 120
log-append /var/log/openvpn/openvpn.log
Code: Select all
client
proto udp
dev tun
remote XXXXX.XXXX.XXX 1194
resolv-retry infinite
nobind
ca ca.crt
cert XXXXXXX.crt
key XXXXXXX.key
dh dh1024.pem
persist-key
persist-tun
# comp-lzo
verb 3