[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: VPN routing on Sid

On Thu, Nov 13, 2014 at 3:43 AM, Pascal Hambourg <pascal@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 table 10
>> ip route add default via table 10
>> ----------------
>> where is the IP of the desktop and 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 dev eth0 table 10
> (If required, replace "eth0" with whatever the LAN interface is.)

Ah, that worked!  Could you explain the "" 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

Thanks for the help.  I greatly appreciate it!


Reply to: