I have a server running the newest Ubuntu with openvpn and apache2 installed. This server is located in a 192.168.1.* LAN behind a router, the router can reach the internet.
Machines inside the local network can ping and access the webserver on my Ubuntu Server.
Machines from the internet can ping and access the webserver on my Ubuntu Server.
The Ubuntu server itself from command line can't ping anything (other machines in internal network / router / internet). Also HTTP/apt-get, DNS lookups, etc does not work.
Here are the iptables:
carl@Server:~/security$ sudo iptables -L -n Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination
carl@Server:~$ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0 10.8.0.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0 10.8.0.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
carl@Server:~$ cat /etc/resolv.conf #... nameserver 192.168.1.1 search localdomain
Also disabling / stopping openvpn doesn't solve the problem but removes the two tun0 routing entries in the kernel routing table. (So they are not the reason)