Eccomi con le risposte:
questo l'output del comando
ifconfig -a dato al client dopo aver instaurato la connessione VPN..
Codice: Seleziona tutto
eth0 Link encap:Ethernet HWaddr B4:9D:B4:05:04:27
inet addr:192.168.1.45 Bcast:0.0.0.0 Mask:255.255.255.0
inet6 addr: fe80::b69d:b4ff:fe05:427/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10668 errors:0 dropped:0 overruns:0 frame:0
TX packets:7988 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1067038 (1.0 MiB) TX bytes:974724 (951.8 KiB)
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:65536 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:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.1.1.6 P-t-P:10.1.1.5 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:37 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)
tun1 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.1.1.6 P-t-P:10.1.1.5 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:135 overruns:0 frame:0
TX packets:856 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:62992 (61.5 KiB)
questo l'output del comando
route -n dato al client dopo aver instaurato la connessione VPN..
Codice: Seleziona tutto
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.1.1.5 128.0.0.0 UG 0 0 0 tun1
0.0.0.0 192.168.1.254 0.0.0.0 UG 0 0 0 eth0
10.1.1.1 10.1.1.5 255.255.255.255 UGH 0 0 0 tun1
10.1.1.5 0.0.0.0 255.255.255.255 UH 0 0 0 tun1
10.1.1.5 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
2XX.2X8.1X4.249 192.168.1.254 255.255.255.255 UGH 0 0 0 eth0
128.0.0.0 10.1.1.5 128.0.0.0 UG 0 0 0 tun1
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
Questo è il file aggiornato del client:
Codice: Seleziona tutto
client
dev tun
proto udp
remote idirizzo_server_proxy_+_vpn 1194
resolv-retry infinite
nobind
persist-key
persist-tun
mute-replay-warnings
redirect-gateway def1
dhcp-option DNS 8.8.8.8
dhcp-option DNS 8.8.4.4
#Percorso certificati
ca /etc/openvpn/room69/ca.crt
cert /etc/openvpn/room69/room69.crt
key /etc/openvpn/room69/room69.key
verb 5
Con questa configurazione, se la vpn è attiva dal client non riesco a navigare in internet e qualsiasi comando provo a dare, esempio ping google.it non ottengo risposta
Questo invece è l'output del comando
route -n lato server dopo aver instaurato la connessione VPN..
Codice: Seleziona tutto
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.1.1.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
10.1.1.0 10.1.1.2 255.255.255.0 UG 0 0 0 tun0
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 venet0
