Hi everybody,
I got the follwoing problem:
Goal:
Client T (Ubuntu 12.04) behind a router (FritzBox) net 192.168.2.0 wants to reach Server H (192.168.16.1) net 192.168.16.0 also behind a router (FritzBox). H is reachable by dynamic DNS.
Problem:
I am using certificates and I can connect without a problem but I cannot ping any pc in 192.168.16.0 from Client T. Internal ping in 192.168.16.0 works great. PPTP works fine with the same configuration.
My configuration:
Openvpn Server 192.168.16.116
server.conf:
port 1194
proto udp
dev tun
ca ./easy-rsa2/keys/ca.crt
cert ./easy-rsa2/keys/server.crt
dh ./easy-rsa2/keys/dh1024.pem
server 10.8.0.0 255.255.255.0
push "route 192.168.16.0 255.255.255.0"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"
keepalive 10 120
persist-key
persist-tun
status openvpn-status.log
verb 3
ifconfig while connected with openvpn:
eth0 Link encap:Ethernet HWaddr b8:27:eb:62:78:9d
inet addr:192.168.16.116 Bcast:192.168.16.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5230404 errors:0 dropped:0 overruns:0 frame:0
TX packets:4978396 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1754096872 (1.6 GiB) TX bytes:1845003236 (1.7 GiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:29 errors:0 dropped:0 overruns:0 frame:0
TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2447 (2.3 KiB) TX bytes:2447 (2.3 KiB)
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.8.0.1 P-t-P:10.8.0.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
client:
client
dev tun
proto udp
mydomain.com 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
ns-cert-type server
comp-lzo
verb 3
ifconfig client while connected with openvpn:
eth0 Link encap:Ethernet HWaddr 00:1b:24:e7:21:39
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:4989 errors:0 dropped:0 overruns:0 frame:0
TX packets:4989 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:441557 (441.5 KB) TX bytes:441557 (441.5 KB)
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.8.0.6 P-t-P:10.8.0.5 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:2 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:897 (897.0 B)
wlan0 Link encap:Ethernet HWaddr 00:1c:bf:4e:e0:d0
inet addr:192.168.2.37 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::21c:bfff:fe4e:e0d0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1072975 errors:0 dropped:0 overruns:0 frame:0
TX packets:1118478 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:496478144 (496.4 MB) TX bytes:164918319 (164.9 MB)
net.ipv4.ip_forward=1 in sysctl.conf is activated. Port 1194 UDP is open IP Routing in the router is 10.8.0.0, 255.255.255.0, 192.168.16.116. Routers IP is 192.168.16.100. Anybody have any idea what I have done wrong? Thank you for some help
Tom