Hi,
So I started out trying to setup a bridged VPN using the guide for Ubuntu server
here, but I kept on getting time outs when I tried to connect. I've decided to try setting up a static key configuration using the guide
here but I'm still having problems.
server.conf wrotedev tun
ifconfig 10.8.0.1 10.8.0.2
push "route 10.8.0.0 255.255.255.0"
push "redirect-gateway def1"
secret static.key
comp-lzo
keepalive 10 60
ping-timer-rem
persist-tun
persist-key
user nobody
group nobody
daemon
client.ovpn wroteremote myserver.com
dev tun
ifconfig 10.8.0.2 10.8.0.1
push "dhcp-option DNS 10.8.0.1"
secret static.key
comp-lzo
keepalive 10 60
ping-timer-rem
persist-tun
persist-key
route (before VPN connection) wroteKernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.1.254 0.0.0.0 UG 0 0 0 wlan0
192.168.1.0 * 255.255.255.0 U 9 0 0 wlan0
route (after VPN connection) wroteKernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default * 0.0.0.0 U 0 0 0 tun0
10.8.0.1 * 255.255.255.255 UH 0 0 0 tun0
192.168.1.254 192.168.1.254 255.255.255.255 UGH 0 0 0 wlan0
link-local * 255.255.0.0 U 1000 0 0 tun0
192.168.1.0 * 255.255.255.0 U 9 0 0 wlan0
root@server:~# cat /proc/sys/net/ipv4/ip_forward
1
I've also added the following iptables rules:
# Allow TUN interface connections to OpenVPN server
iptables -A INPUT -i tun+ -j ACCEPT
# Allow TUN interface connections to be forwarded through other interfaces
iptables -A FORWARD -i tun+ -j ACCEPT
The router is setup to forward traffic on port 1194 to my server. I can connect to the server and the client is assigned the IP address 10.8.0.2, but it can't ping the server.
Please help?