Re: OpenVPN: Routing-Problem
Hallo Sascha,
also: ich habe jetzt alles zurück auf tun und auf nur noch einen Tunnel.
Leider kann ich jetzt nur noch in eine Richtung pingen.
----------------------------------------------------------------------
eth0 Link encap:Ethernet HWaddr 00:E0:7D:7C:9E:EB
inet addr:192.168.100.100 Bcast:192.168.100.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:89943689 errors:6 dropped:12 overruns:6 frame:0
TX packets:159385491 errors:0 dropped:0 overruns:12 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1157762672 (1.0 GiB) TX bytes:3911976232 (3.6 GiB)
Interrupt:17 Base address:0xcc00
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:335091 errors:0 dropped:0 overruns:0 frame:0
TX packets:335091 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:394402322 (376.1 MiB) TX bytes:394402322 (376.1 MiB)
tun0 Link encap:UNSPEC HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:192.168.111.1 P-t-P:192.168.111.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:286 errors:0 dropped:0 overruns:0 frame:0
TX packets:329 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:24024 (23.4 KiB) TX bytes:28252 (27.5 KiB)
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.111.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
192.168.100.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.200.0 192.168.111.2 255.255.255.0 UG 0 0 0 tun0
192.168.111.0 192.168.111.2 255.255.255.0 UG 0 0 0 tun0
0.0.0.0 192.168.100.250 0.0.0.0 UG 0 0 0 eth0
>>> iptables -L
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
>>> cat /proc/sys/net/ipv4/ip_forward
1
ping 192.168.200.100
PING 192.168.200.100 (192.168.200.100): 56 data bytes
--- 192.168.200.100 ping statistics ---
10 packets transmitted, 0 packets received, 100% packet loss
----------------------------------------------------------------------------
eth0 Link encap:Ethernet HWaddr 00:07:E9:F4:14:DA
inet addr:192.168.200.100 Bcast:192.168.200.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:140041802 errors:0 dropped:0 overruns:0 frame:0
TX packets:201513924 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4293540076 (3.9 GiB) TX bytes:3406084854 (3.1 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:208863 errors:0 dropped:0 overruns:0 frame:0
TX packets:208863 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:26677189 (25.4 MiB) TX bytes:26677189 (25.4 MiB)
tun0 Link encap:UNSPEC HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:192.168.111.6 P-t-P:192.168.111.5 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:267 errors:0 dropped:0 overruns:0 frame:0
TX packets:286 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:22428 (21.9 KiB) TX bytes:24024 (23.4 KiB)
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.111.5 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
192.168.100.0 192.168.111.5 255.255.255.0 UG 0 0 0 tun0
192.168.200.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.111.0 192.168.111.5 255.255.255.0 UG 0 0 0 tun0
0.0.0.0 192.168.200.250 0.0.0.0 UG 0 0 0 eth0
>>> iptables -L
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
>>> cat /proc/sys/net/ipv4/ip_forward
1
ping 192.168.100.100
PING 192.168.100.100 (192.168.100.100): 56 data bytes
64 bytes from 192.168.100.100: icmp_seq=0 ttl=64 time=69.0 ms
64 bytes from 192.168.100.100: icmp_seq=1 ttl=64 time=66.5 ms
--- 192.168.100.100 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
----------------------------------------------------------------------
Viele Grüße
Michael
Reply to: