Hello,
I think I posted this in the wrong category,
Yep, I know there are quite a few of these threads. I've read just about all of them.
Ok, so this is my situation:
- I can connect to the OpenVPN server
- I can ping the OpenVPN server
- I cannot ping 8.8.8.8
- I have enabled port forwarding
First my configs:
server.conf:
port 1194
proto udp
dev tun
ca /etc/openvpn/ca.crt
cert /etc/openvpn/server.crt
key /etc/openvpn/server.key # This file should be kept secret
dh /etc/openvpn/dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 10.66.0.0 255.255.255.0"
push "redirect-gateway def1 bypass-dhcp"
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
Client.conf:
client
dev tun
proto udp
remote vpn.digigalaxy.co.uk 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca /etc/openvpn/ca.crt
cert /etc/openvpn/client.crt
key /etc/openvpn/client.key
ns-cert-type server
comp-lzo
verb 3
/sbin/iptables -L:
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- 10.8.0.0/24 anywhere
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
iptables -L -t nat -v:
Chain PREROUTING (policy ACCEPT 86 packets, 4844 bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 70 packets, 4271 bytes)
pkts bytes target prot opt in out source destination
0 0 MASQUERADE all -- any eth0 10.8.0.0/24 anywhere
0 0 SNAT all -- any any 192.168.88.0/24 anywhere to:192.3.54.239
Chain OUTPUT (policy ACCEPT 16 packets, 1018 bytes)
pkts bytes target prot opt in out source destination
Any ideas on if I'm doing something wrong, and if so, how to fix it?