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

Re: VPN routing on Sid

On Wed, Nov 12, 2014 at 5:00 PM, Igor Cicimov <icicimov@gmail.com> wrote:
> On 13/11/2014 6:17 AM, "Luis Finotti" <luis.finotti@gmail.com> wrote:
>> I'm having problems connecting to my desktop (running actually
>> aptosid, which is virtually simply Debian Sid with a different kernel
>> and a few extra tools and customizations).
>> Here is the situation: my desktop is connected to a VPN service.  (The
>> router to which the desktop is connected is not, only the desktop.
>> So, the VPN client runs on the desktop and the other computers on the
>> network connect to the Internet directly.)
>> 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.
> And the rules in table 10 are?? Send the output of:
> # ip rule show
> # ip route show table 10

Thanks for the reply!

Here they are:

root@debian[/home/finotti]#  ip rule show
0:      from all lookup local
32763:  from lookup 10
32764:  from lookup 10
32765:  from lookup 10
32766:  from all lookup main
32767:  from all lookup default

root@debian[/home/finotti]#  ip route show table 10
default via dev eth0

Let me know if anything else would help.


Reply to: