Hallo,
ich versuche, ein VPN einzurichten. Das funktioniert auch, die Verbindung kann sowohl über die Kommandozeile als auch per NetworkManager hergestellt werden. Allerdings funktioniert das routing nicht richtig.
Stelle ich die Verbindung per NM her kann ich nicht ins Netz:
~$ ifconfig tun0 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:15 overruns:0 frame:0 TX packets:112 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:0 (0.0 B) TX bytes:9264 (9.2 KB) :~$ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.8.0.5 0.0.0.0 UG 0 0 0 tun0 10.8.0.1 10.8.0.5 255.255.255.255 UGH 0 0 0 tun0 10.8.0.5 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 10.25.0.0 0.0.0.0 255.255.255.0 U 9 0 0 wlan0 10.52.1.0 10.8.0.5 255.255.255.0 UG 0 0 0 tun0 92.206.8.176 10.25.0.1 255.255.255.255 UGH 0 0 0 wlan0 :~$ ping 10.52.1.151 -w 13 PING 10.52.1.151 (10.52.1.151) 56(84) bytes of data. --- 10.52.1.151 ping statistics --- 13 packets transmitted, 0 received, 100% packet loss, time 12000ms
Per Kommandozeile hergestellt aber wohl:
:~$ ifconfig tun0 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: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) :~$ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.25.0.1 0.0.0.0 UG 0 0 0 wlan0 10.8.0.1 10.8.0.5 255.255.255.255 UGH 0 0 0 tun0 10.8.0.5 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 10.25.0.0 0.0.0.0 255.255.255.0 U 9 0 0 wlan0 10.52.1.0 10.8.0.5 255.255.255.0 UG 0 0 0 tun0 :~$ ping 10.52.1.151 -c2 PING 10.52.1.151 (10.52.1.151) 56(84) bytes of data. 64 bytes from 10.52.1.151: icmp_seq=1 ttl=254 time=33.8 ms 64 bytes from 10.52.1.151: icmp_seq=2 ttl=254 time=35.8 ms --- 10.52.1.151 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1002ms rtt min/avg/max/mdev = 33.802/34.801/35.800/0.999 ms
Ich komme an der Stelle nicht weiter, vielleicht habt Ihr einen Tipp für mich ☺
Danke und Gruß Karl