Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to Set Static Routes #614

Closed
teamosceola opened this issue Mar 31, 2020 · 4 comments
Closed

Ability to Set Static Routes #614

teamosceola opened this issue Mar 31, 2020 · 4 comments

Comments

@teamosceola
Copy link

Feature Request:

  • Ability to configure static routes in the config file.

What I would like to be able do via the config file:

host = vpn.domain.com
port = 443
set-routes = 0
set-dns = 0
pppd-use-peerdns = 0
add-static-route = 10.0.1.0/24
add-static-route = 10.0.10.0/24
add-static-route = 10.2.1.0/24
add-static-route = 10.20.1.0/24

Which would result in the following commands running after the vpn interface is up

ip route add 10.0.1.0/24 dev ppp0
ip route add 10.0.10.0/24 dev ppp0
ip route add 10.2.1.0/24 dev ppp0
ip route add 10.20.1.0/24 dev ppp0

This is very useful for people that need to access resources that are behind the vpn, but want their normal web traffic to not use the vpn. A good example is audio/video teleconferencing where the quility would be degraded due to the added latency of the vpn.

@mrbaseman
Copy link
Collaborator

this can be achieved by an pppd-ipup script, see #371 and the wiki page

@obel1x
Copy link

obel1x commented May 1, 2020

i had the same issue, for me the wiki worked and needed some small changes. i did them, changed the docs and added a few descriptions. is it ok for you @teamosceola to close this issue now?

@teamosceola
Copy link
Author

I was able to get it to work using the pppd-ipup script, but I actually ended up switching to using
sudo apt install network-manager-fortisslvpn-gnome
to ultimately solve my issue.

@DimitriPapadopoulos
Copy link
Collaborator

In systems that do have NetworkManager enabled, indeed it sounds best to handle routing and name resolution within NetworkManager. Great to hear that you got that working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants