Buongiorno a tutti.
nella cantina della mia casa in Italia ho trovato un vecchio AGTOT della TIM.
Dato che sembrava molto meglio del router fornito dal mio provider estero (vivo fuori EU), l'ho sbloccato, ho installato Aqua (16.3), GUI, transmission, alcuni tool linux, e funziona egregiamente.
Vivendo all'estero uso delle VPN per accedere a materiale non disponibile dove vivo: ne ho una per l'Italia e una per l'UK (dove ho vissuto).
L'idea - visto che non ho ospiti...
se installo un client VPN sull'AGTOT e poi faccio il routing di una delle reti wireless_guest sulla VPN (e magari dell'altra rete guest sulla seconda VPN) per mandare un dispositivo in Italia basta cambiargli rete wifi!!!
ssid -> internet gw default
ssid_5g -> internet gw default
ssid_guest -> gw vpn IT
ssid_guest_5g -> gw vpn UK
Armato di santa pazienza installo ocsrv sui miei bastioni VPN, e openconnect sull'AGTOT (con i pacchetti e relative dipendenze, trovati nel repo sotto roleo/public/agtot_iinet/brcm63xx-tch/packages/base).
root_technicolor:~# ./vpn_connect
WARNING: This version of openconnect was built without iconv
support but you appear to be using the legacy character
set "ASCII". Expect strangeness.
POST https://xxxx.it:1195/
Attempting to connect to server xx.xxx.xx.xxx:1195
SSL negotiation with xxxx.it
Server certificate verify failed: signer not found
Connected to HTTPS on xxx.it
XML POST enabled
Please enter your username.
POST https://xxxx.it:1195/auth
Please enter your password.
POST https://xxxx.it:1195/auth
Got CONNECT response: HTTP/1.1 200 CONNECTED
CSTP connected. DPD 90, Keepalive 32400
Script '/lib/netifd/vpnc-script' returned error 1
Script '/lib/netifd/vpnc-script' returned error 1
Connected tun0 as 10.5.0.179, using SSL
Continuing in background; pid 18942
Failed to write incoming packet: Resource temporarily unavailable
Failed to write incoming packet: Resource temporarily unavailable
Failed to write incoming packet: Resource temporarily unavailable
Failed to write incoming packet: Resource temporarily unavailable
Established DTLS connection (using GnuTLS). Ciphersuite (DTLS1.2)-(RSA)-(AES-256-GCM).
Ovvero la VPN va su, il bastione la vede (sul bastione a connessione avvenuta vedo la scheda di rete tunnel vpns0 su con indirizzo 10.5.0.1).
Sull'AGTOT tun0 invece non e' configurata (penso per l'errore di vpnc-script che vedo qui sopra).
Quindi do'
agtot# ifconfig tun0 10.5.0.179 netmask 255.255.255.0 dstaddr 10.5.0.1 pointopoint 10.5.0.1e la scheda va su, ma qui arriva il problema su cui sono bloccato!!
Lato AGTOT:
root_technicolor:~# ping 10.5.0.1
PING 10.5.0.1 (10.5.0.1): 56 data bytes
Failed to write incoming packet: Resource temporarily unavailable
Failed to write incoming packet: Resource temporarily unavailable
Failed to write incoming packet: Resource temporarily unavailable
Failed to write incoming packet: Resource temporarily unavailable
Failed to write incoming packet: Resource temporarily unavailable
...
mentre sul bastione (ocsrv su Ubuntu 18.04):
root@xxxxx:/home/ubuntu# tcpdump -i vpns0 -n
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on vpns0, link-type RAW (Raw IP), capture size 262144 bytes
06:52:39.716880 IP 10.5.0.179 > 10.5.0.1: ICMP echo request, id 19151, seq 0, length 64
06:52:39.716939 IP 10.5.0.1 > 10.5.0.179: ICMP echo reply, id 19151, seq 0, length 64
06:52:40.719227 IP 10.5.0.179 > 10.5.0.1: ICMP echo request, id 19151, seq 1, length 64
06:52:40.719399 IP 10.5.0.1 > 10.5.0.179: ICMP echo reply, id 19151, seq 1, length 64
06:52:41.726072 IP 10.5.0.179 > 10.5.0.1: ICMP echo request, id 19151, seq 2, length 64
06:52:41.726120 IP 10.5.0.1 > 10.5.0.179: ICMP echo reply, id 19151, seq 2, length 64
06:52:42.724624 IP 10.5.0.179 > 10.5.0.1: ICMP echo request, id 19151, seq 3, length 64
06:52:42.724673 IP 10.5.0.1 > 10.5.0.179: ICMP echo reply, id 19151, seq 3, length 64
06:52:43.726147 IP 10.5.0.179 > 10.5.0.1: ICMP echo request, id 19151, seq 4, length 64
06:52:43.726200 IP 10.5.0.1 > 10.5.0.179: ICMP echo reply, id 19151, seq 4, length 64
06:53:22.448465 IP 10.5.0.1.44501 > 239.255.255.250.1900: UDP, length 172
06:53:23.449846 IP 10.5.0.1.44501 > 239.255.255.250.1900: UDP, length 172
06:53:24.451646 IP 10.5.0.1.44501 > 239.255.255.250.1900: UDP, length 172
06:53:25.451791 IP 10.5.0.1.44501 > 239.255.255.250.1900: UDP, length 172
06:53:32.902913 IP6 fe80::221e:5ae8:7ce7:c950 > ff02::2: ICMP6, router solicitation, length 8
...
Insomma e' come se il client openconnect sull'AGTOT si rifiutasse di ricevere pacchetti (mentre li invia benissimo).
Qualcuno ha avuto un problema simile e ha risolto?
San
@roleo magari?