Tun0 with same IP address
Posted: Sun Apr 29, 2012 10:28 pm
I've been running OpenVPN on a ddwrt router for a couple of years. Unfortunately the router has recently gone bang and I've had to upgrade.
My problem is that we a configuration which is identical to the last router I'm getting a Tun0 interface with the same IP address as follows:
/sbin/ifconfig tun0 5.5.5.2 5.5.5.2 netmask 255.255.255.0 mtu 1500 up
where as I was previously getting:
/sbin/ifconfig tun0 5.5.5.10 5.5.5.9 mtu 1500 netmask 255.255.255.255 up
The result of this seems to be that I can ping internal clients (i.e. my router has a ip of 5.5.5.1), but I can not reach the outside world.
I've got a simple config as follows:
push "dhcp-option DNS 8.8.8.8"
server 5.5.5.0 255.255.255.0
push "redirect-gateway def1"
dev tun0
proto udp
persist-tun
comp-lzo
keepalive 10 120
verb 5
dh /tmp/openvpn/dh.pem
ca /tmp/openvpn/ca.crt
cert /tmp/openvpn/cert.pem
key /tmp/openvpn/key.pem
Any help would be regally appreciated.
My problem is that we a configuration which is identical to the last router I'm getting a Tun0 interface with the same IP address as follows:
/sbin/ifconfig tun0 5.5.5.2 5.5.5.2 netmask 255.255.255.0 mtu 1500 up
where as I was previously getting:
/sbin/ifconfig tun0 5.5.5.10 5.5.5.9 mtu 1500 netmask 255.255.255.255 up
The result of this seems to be that I can ping internal clients (i.e. my router has a ip of 5.5.5.1), but I can not reach the outside world.
I've got a simple config as follows:
push "dhcp-option DNS 8.8.8.8"
server 5.5.5.0 255.255.255.0
push "redirect-gateway def1"
dev tun0
proto udp
persist-tun
comp-lzo
keepalive 10 120
verb 5
dh /tmp/openvpn/dh.pem
ca /tmp/openvpn/ca.crt
cert /tmp/openvpn/cert.pem
key /tmp/openvpn/key.pem
Any help would be regally appreciated.