I recently installed the last OSMC on a PI2 (12/1/17, Kodi 17.6), the perfect mediacenter, download station, and many more…
Everything works like a charme except one things :
When I’m connected to a vpn server through openvpn I can’t access to the osmc server from internet nether ssh nor transmission ports.
When I try from inside my LAN everythings are ok and when I stop the vpn that works from ouside the LAN too.
My VPN provider support, told me that I have to “play” with “routes”…
Once it works but I was on an older version of OSMC and I’ve had to launch these command after openvpn have started :
route del default
ip route del 0.0.0.0/1 via 10.10.2.53 dev tun0
But now, nothing (that I have already tried) works…
Here my “route -n” result :
Table de routage IP du noyau
Destination Passerelle Genmask Indic Metric Ref Use Iface
0.0.0.0 10.10.0.21 128.0.0.0 UG 0 0 0 tun0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
10.10.0.1 10.10.0.21 255.255.255.255 UGH 0 0 0 tun0
10.10.0.21 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
128.0.0.0 10.10.0.21 128.0.0.0 UG 0 0 0 tun0
151.80.10.10 192.168.1.1 255.255.255.255 UGH 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.1.1 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
ifconfig :
eth0: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC> mtu 1500
inet 192.168.1.17 netmask 255.255.255.0 broadcast 192.168.1.255
ether b8:27:eb:bb:a8:32 txqueuelen 1000 (Ethernet)
RX packets 12174505 bytes 2994797604 (2.7 GiB)
RX errors 0 dropped 11942 overruns 0 frame 0
TX packets 11733280 bytes 2370396306 (2.2 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Boucle locale)
RX packets 129 bytes 14828 (14.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 129 bytes 14828 (14.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1500
inet 10.10.0.22 netmask 255.255.255.255 destination 10.10.0.21
inet6 fe80::2397:f37d:f5ff:951e prefixlen 64 scopeid 0x20<link>
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 100 (UNSPEC)
RX packets 11170286 bytes 9399956352 (8.7 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 10432452 bytes 7170763465 (6.6 GiB)
TX errors 0 dropped 458875 overruns 0 carrier 0 collisions 0
That I have already tried and that don’t work :
sudo route del default
sudo ip route del 0.0.0.0/1 via 10.10.0.21 dev tun0
sudo ip route add 0.0.0.0/1 via 192.168.1.17 dev eth0
Another information, I’ve dcpdump the pi connected to the vpn and when i call it from outside (internet) I see inbound requests but no outbound responses whereas when I call it form inside (LAN) I see inbound requests and outbound responses…
If someone has ideas, I’ll be glad… (I’m not familiar with routes so be kind
I’s the only one problem I have to fix for a perfect server !
Best,
Maxime