On Thu, Nov 13, 2014 at 3:43 AM, Pascal Hambourg <pas...@plouf.fr.eu.org> wrote: > Luis Finotti a écrit : >> >> When I first started using the VPN service, I could not SSH to my >> desktop from outside the network anymore. After a lot of googling, I >> found out a solution (https://forums.openvpn.net/topic7163-15.htm): >> I've added the following script to /etc/network/if-up.d: >> >> -------------- >> !/bin/bash >> >> ip rule add from 192.168.29.120 table 10 >> ip route add default via 192.168.29.1 table 10 >> ---------------- >> >> where 192.168.29.120 is the IP of the desktop and 192.168.29.1 is the >> IP of the router. >> >> recently, when I run the script above (as I've been doing for a >> while), I can still connect from *outside* my network, but *not* from >> inside (i.e., other computers connected to the same router). From >> within the network, nothing works (SSH, Samba, minidlna...). > > Apparently your router is doing a bad job, not forwarding packets from > LAN to LAN. Anyway, it is better to add an exception to the default > route for the LAN subnet in table 10 to make the routing direct : > > ip route add 192.168.29.0/24 dev eth0 table 10 > > (If required, replace "eth0" with whatever the LAN interface is.)
Ah, that worked! Could you explain the "192.168.29.0/24" syntax though? I'm having a hard time finding what it means. (Is it a range 0 to 24?) I wonder how the problem started as I've made no changes in the router configuration... Thanks for the help. I greatly appreciate it! Luis -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/CAMo809X6Ur8BwVyZ+k=jovhh2errcrdxewfzfkjsu0x37xg...@mail.gmail.com