Re: [strongSwan] Forcing all traffic from a specific user to use Strongswan

2018-05-29 Thread Gilles Printemps
Hi, I found my problem: "rp_filter" for the vti interface was not set to 2. No, I can establish correctly the connection and any request done by "vpn" user is going through it. Currently, I still have a problem for keeping alive the connection... Indeed, after several minutes, no way to use anymor

Re: [strongSwan] Forcing all traffic from a specific user to use Strongswan

2018-05-28 Thread Gilles Printemps
Hi, After combining/executing the different scripts, I'm still not able to send something to the "vti" interface previously created. Indeed, despite the different rules added, "vti" interface is receiving nothing. Seems I made something wrong in my different routes... I will appreciate if someone c

Re: [strongSwan] Forcing all traffic from a specific user to use Strongswan

2018-05-25 Thread Phil Frost
To check your routing tables, you can use `ip route get SOME_IP_ADDRESS`. You can also inspect the routing tables with `ip route`. One non-obvious thing is strongswan may install an additional route table. You can see all the tables that exist with `ip rule`. The one strongswan makes is called sim

Re: [strongSwan] Forcing all traffic from a specific user to use Strongswan

2018-05-24 Thread Gilles Printemps
Some updates. I'm now able to create the vti interface and I have an address assigned to the vti Result of "ifconfig" vti0 Link encap:IPIP Tunnel HWaddr inet addr:10.3.188.149 P-t-P:10.3.188.149 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MTU:1332 Metric:1

Re: [strongSwan] Forcing all traffic from a specific user to use Strongswan

2018-05-24 Thread Gilles Printemps
Hi Phil/All, Sorry for the mistake - Bad copy/Paste Nevertheless, things are not better after fixing the path. Indeed, after restarting ipsec, - SSH connection is dropping - No way to resolve any web site In the syslog, I've seen the following message > ... charon: 00[CFG] loading ocsp sign

Re: [strongSwan] Forcing all traffic from a specific user to use Strongswan

2018-05-18 Thread Phil Frost
It looks like the leftupdown option is set to run some other script than the one you created. On Fri, May 18, 2018, 05:26 Gilles Printemps wrote: > Hi Phil, All > I tried to look for some details how to implement a route based VPN and > I've created the following configuration > > First, I've cr

Re: [strongSwan] Forcing all traffic from a specific user to use Strongswan

2018-05-18 Thread Gilles Printemps
Hi Phil, All I tried to look for some details how to implement a route based VPN and I've created the following configuration First, I've created the following script which will be called by the VPN at the start/end of the connection As a test, I tried to route only 172.217.19.69 (it's one of the

Re: [strongSwan] Forcing all traffic from a specific user to use Strongswan

2018-05-17 Thread Phil Frost
One way to go would be configuring a route based VPN[1]. Then you can use all kinds of Linux routing tricks to get just that user's traffic over the VPN by directing it to the vti interface. For example you could launch that user's processes in a network namespace, or use the "owner" module of ipta