Hoi Jaap, > Op een of andere manier lijkt routing niet mijn ding. Het lukt nooit. Maar nu moet het er toch van inkomen > > Ik heb tussen mijn Nokia N900 Maemo Linux smartphone en mijn servertje een OpenVPN-tunnel. Verder heb ik tussen mijn servertje en mijn VPS ook zo'n tunnel. > > Nu wil ik vanaf mijn smartphone via mijn servertje naar mijn VPS tunnel'en. > > Pingen naar mijn VPS lukt > > jaap@servertje:~$ ping 10.0.133.1 > PING 10.133.133.1 (10.0.133.1) 56(84) bytes of data. > 64 bytes from 10.0.133.1: icmp_seq=1 ttl=64 time=10.2 ms > 64 bytes from 10.0.133.1: icmp_seq=2 ttl=64 time=10.5 ms > 64 bytes from 10.0.133.1: icmp_seq=3 ttl=64 time=9.77 ms > ^C > --- 10.0.133.1 ping statistics --- > 3 packets transmitted, 3 received, 0% packet loss, time 2010ms > rtt min/avg/max/mdev = 9.777/10.185/10.555/0.339 ms > > Pingen naar mijn smartphone lukt ook. > > jaap@servertje:~$ ping 10.0.134.2 > PING 10.134.134.2 (10.0.134.2) 56(84) bytes of data. > 64 bytes from 10.0.134.2: icmp_seq=1 ttl=64 time=89.0 ms > 64 bytes from 10.0.134.2: icmp_seq=2 ttl=64 time=110 ms > 64 bytes from 10.0.134.2: icmp_seq=3 ttl=64 time=129 ms > ^C > --- 10.0.134.2 ping statistics --- > 3 packets transmitted, 3 received, 0% packet loss, time 2005ms > rtt min/avg/max/mdev = 89.089/109.809/129.863/16.652 ms > > Forwarding staat aan. > > jaap@servertje:~$ cat /proc/sys/net/ipv4/conf/tun1/forwarding > 1 > jaap@servertje:~$ cat /proc/sys/net/ipv4/conf/tun0/forwarding > 1 > jaap@servertje > > Pingen vanaf mijn N900 naar mijn servertje gaat prima. > > Nokia-N900-02-8:~# ping 10.0.134.1 > PING 10.0.134.1 (10.0.134.1): 56 data bytes > 64 bytes from 10.0.134.1: seq=0 ttl=64 time=40.954 ms > 64 bytes from 10.0.134.1: seq=1 ttl=64 time=18.615 ms > 64 bytes from 10.0.134.1: seq=2 ttl=64 time=17.578 ms > 64 bytes from 10.0.134.1: seq=3 ttl=64 time=46.447 ms > ^C > --- 10.0.134.1 ping statistics --- > 4 packets transmitted, 4 packets received, 0% packet loss > round-trip min/avg/max = 17.578/30.898/46.447 ms > > Maar naar mijn VPS wil niet. > > Nokia-N900-02-8:~# ping 10.0.133.1 > PING 10.0.133.1 (10.0.133.1): 56 data bytes > ^C > --- 10.0.133.1 ping statistics --- > 6 packets transmitted, 0 packets received, 100% packet loss > Nokia-N900-02-8:~# > > Pingen naar de servertjes-kant van mijn VPS-tunnel lukt wel. > > Nokia-N900-02-8:~# ping 10.0.133.2 > PING 10.0.133.2 (10.0.133.2): 56 data bytes > 64 bytes from 10.0.133.2: seq=0 ttl=64 time=55.725 ms > 64 bytes from 10.0.133.2: seq=1 ttl=64 time=32.684 ms > 64 bytes from 10.0.133.2: seq=2 ttl=64 time=33.783 ms > ^C > --- 10.0.133.2 ping statistics --- > 3 packets transmitted, 3 packets received, 0% packet loss > round-trip min/avg/max = 32.684/40.730/55.725 ms > Nokia-N900-02-8:~# > > Ik heb in /etc/openvpn/client.conf het volgende toegevoegd. > route 10.0.134.0 255.255.255.0 > > Wat doe ik verkeerd? > Als ik het goed begrijp, wil je van de ene OpenVPN-client verbinden naar de andere OpenVPN-client. Heb je deze optie in OpenVPN aanstaan? # Uncomment this directive to allow different # clients to be able to "see" each other. # By default, clients will only see the server. ;client-to-client Groeten, Martijn.
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature