You are not logged in.

#1 2018-03-23 17:00:02

Evils
Member
Registered: 2015-05-01
Posts: 8

How to add route with interface up

Hi,

I'm using openfortivpn (https://github.com/adrienverge/openfortivpn) to connect to my companies VPN from bash. Openfortivpn allows me to set that an option so routes are not automatically set, as I'd prefer to setup those routes myself.
Unfortunately though, it doesn't give me an option to specify which other routes I'd like to specify instead of the default routes that are being pushed.

Therefore I was hoping to find a way to set those routes myself with the interface(ppp0) that openfortivpn is creating coming up.

I'm using netctl for all my network config and have looked into hooks/interfaces but that seemed to only be applicable if netctl is also used to bring up the interface which openfortivpn does.

Any idea how to best do this?

Offline

#2 2018-03-25 19:54:22

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,919

Re: How to add route with interface up

use "ip route" commands in a bash script to set those routes up as desired ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB