adrienverge / openfortivpn

Client for PPP+TLS VPN tunnel services
GNU General Public License v3.0
2.68k stars 320 forks source link

set resolvectl domains at vpn-up #1232

Closed jmordkoff closed 2 months ago

jmordkoff commented 2 months ago

Everything is working great, dns servers get set, but resolvectl doesn't route requests right. I have to do resolvectl domain ppp0 dzsi.local dzsi.net dzsi.com to get it to work right. Any tricks for automating this?

mrbaseman commented 2 months ago

maybe this could be done with an ip-up script?

jmordkoff commented 2 months ago

thanks. That worked

I added /etc/ppp/ip-up/0100custom with my commands and I added --no-dns to my openforticlient command line

note that the ip-up scripts run before openforticlient sets the DNS, so trying to get openforticlient to do some of it and then having my script do some overrides did not work since they run in the wrong order. So I put everything in my script (really just 2 commands plus some code to detect what server I just connected into).