[MI]Dany_80
07-12-2006, 12:54
Ciao a tutti.
Ho cercato un po' nei vari forum, e nelle guide di openVPN, ma non ho trovato nulla che mi chiarisse realmente (e del tutto) le idee.
Ho impostato delle connessioni VPN, la subnet sul server è /24, la subnet sui client è /30, le routes tra le varie sottoreti non sono attivate, affinche ogni client possa vedere il server ma non gli altri client.
OpenVPN aggiunge delle route in modo che io possa vedere il server (.1) attraverso il gateway, che è InirizzoIPVPN-1 su ogni client
Se digito "ifconfig" sulla shell, appare questo:
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.10.10.1 P-t-P:10.10.10.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:4602813 errors:0 dropped:0 overruns:0 frame:0
TX packets:2356621 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1830240268 (1.7 GiB) TX bytes:122824959 (117.1 MiB)
com'è possibile che pingando dal server l'IP del client ovpn ottengo una risposta
ping 10.10.10.82
PING 10.10.10.82 (10.10.10.82) 56(84) bytes of data.
64 bytes from 10.10.10.82: icmp_seq=1 ttl=128 time=156 ms
64 bytes from 10.10.10.82: icmp_seq=2 ttl=128 time=127 ms
64 bytes from 10.10.10.82: icmp_seq=3 ttl=128 time=120 ms
64 bytes from 10.10.10.82: icmp_seq=4 ttl=128 time=133 ms
64 bytes from 10.10.10.82: icmp_seq=5 ttl=128 time=143 ms
64 bytes from 10.10.10.82: icmp_seq=6 ttl=128 time=220 ms
--- 10.10.10.82 ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5048ms
rtt min/avg/max/mdev = 120.640/150.350/220.611/33.447 ms
Mentre se faccio
ping 10.10.10.2
PING 10.10.10.2 (10.10.10.2) 56(84) bytes of data.
--- 10.10.10.2 ping statistics ---
7 packets transmitted, 0 received, 100% packet loss, time 6010ms
Cos'è questo 10.10.10.2? Non dovrebbe essere il tunnel ptp e non dovrebbero rispondermi tutti i computer?
ringrazio anticipatamente per una eventuale risposta
bye dany
Ho cercato un po' nei vari forum, e nelle guide di openVPN, ma non ho trovato nulla che mi chiarisse realmente (e del tutto) le idee.
Ho impostato delle connessioni VPN, la subnet sul server è /24, la subnet sui client è /30, le routes tra le varie sottoreti non sono attivate, affinche ogni client possa vedere il server ma non gli altri client.
OpenVPN aggiunge delle route in modo che io possa vedere il server (.1) attraverso il gateway, che è InirizzoIPVPN-1 su ogni client
Se digito "ifconfig" sulla shell, appare questo:
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.10.10.1 P-t-P:10.10.10.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:4602813 errors:0 dropped:0 overruns:0 frame:0
TX packets:2356621 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1830240268 (1.7 GiB) TX bytes:122824959 (117.1 MiB)
com'è possibile che pingando dal server l'IP del client ovpn ottengo una risposta
ping 10.10.10.82
PING 10.10.10.82 (10.10.10.82) 56(84) bytes of data.
64 bytes from 10.10.10.82: icmp_seq=1 ttl=128 time=156 ms
64 bytes from 10.10.10.82: icmp_seq=2 ttl=128 time=127 ms
64 bytes from 10.10.10.82: icmp_seq=3 ttl=128 time=120 ms
64 bytes from 10.10.10.82: icmp_seq=4 ttl=128 time=133 ms
64 bytes from 10.10.10.82: icmp_seq=5 ttl=128 time=143 ms
64 bytes from 10.10.10.82: icmp_seq=6 ttl=128 time=220 ms
--- 10.10.10.82 ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5048ms
rtt min/avg/max/mdev = 120.640/150.350/220.611/33.447 ms
Mentre se faccio
ping 10.10.10.2
PING 10.10.10.2 (10.10.10.2) 56(84) bytes of data.
--- 10.10.10.2 ping statistics ---
7 packets transmitted, 0 received, 100% packet loss, time 6010ms
Cos'è questo 10.10.10.2? Non dovrebbe essere il tunnel ptp e non dovrebbero rispondermi tutti i computer?
ringrazio anticipatamente per una eventuale risposta
bye dany