Hi, I have previously established an OpenVPN connection between my laptop and my router (DD-WRT) and I wanted to do the same between my laptop and my work computer.
I copied most of the configuration over and I have a very, very simple setup. But now, when I try to connect, I get this error:
WARNING: potential route subnet conflict between local LAN [10.9.0.0/255.255.255.0] and remote VPN [10.9.0.1/255.255.255.255]
My laptop’s IP (for tun0) is 10.9.0.6 and my work computer’s IP is 10.9.0.1. The routing table is:
default 10.9.0.5 0.0.0.0
10.9.0.1 10.9.0.5 255.255.255.255
10.9.0.5 * 255.255.255.255
There is no device with the 10.9.0.5 ip address, but on the laptop, during the startup, I see:
/bin/ip addr dev tun0 local 10.9.0.6 peer 10.9.0.5
Can someone please explain to me what is going on?
It’s got to do with this FAQ:
FAQ
When you use .6, all the addresses from .4 to .7 are allocated.
Thanks for the reply. If I understand that correctly, then it is normal to have the 10.9.0.5 address in use.
But with the VPN connection active, I can only ping the server. There is another machine on the same subnet that I can’t ping and I can’t ping any computer on the Internet. Here is my server config:
push “route 999.999.999.0 255.255.255.0”
server 10.9.0.0 255.255.255.0
dev tun0
proto udp
keepalive 10 120
dh dh1024.pem
ca ca.crt
cert server.crt
key server.key
where the server is on the “999.999.999.0” subnet (and I’m masking the real IP).
Your setup is rather hard for me to read, it really calls for a good diagram. However normally one does not assign the VPN the same subnet that the machines are already on. The VPN is given a different subnet, so no address clash. Also, if openVPN is not running on the default gateway at the other end, then you have to use masquerading on the openVPN server, otherwise the target machine has no route for the return path.