adrienverge / openfortivpn

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

Possibly caching issue ? pppd-ipparam #1231

Open jseifeddine opened 5 months ago

jseifeddine commented 5 months ago

@adrienverge @tomaszkubacki

Thank you for this software and doc ❤️

I followed this method-one---short-version---pass-routes-by-pppd-ipparam

just one comment,

I made a change to pppd-ipparam in /opt/homebrew/etc/openfortivpn/openfortivpn/config

From:

pppd-ipparam=100.100.100.82

To:

pppd-ipparam=100.100.100.80

Problem

it seems to be caching that somewhere ?

restarted, stopped, started,

it's still showing the old route in netstat -rn

➜  ~ netstat -rn | grep 100.100.100.
100.100.100.82      link#20            UHWIig               ppp0       
➜  ~ brew list --versions|grep forti
openfortivpn 1.22.1

➜  ~ sw_vers
ProductName:        macOS
ProductVersion:     14.5
BuildVersion:       23F79

Maybe an issue with brew service, but i doubt that, as its pointing to the config file

==> /bin/launchctl list homebrew.mxcl.openfortivpn
{
    "StandardOutPath" = "/opt/homebrew/var/log/openfortivpn.log";
    "LimitLoadToSessionType" = "System";
    "StandardErrorPath" = "/opt/homebrew/var/log/openfortivpn.log";
    "Label" = "homebrew.mxcl.openfortivpn";
    "OnDemand" = false;
    "LastExitStatus" = 0;
    "PID" = 51693;
    "Program" = "/opt/homebrew/opt/openfortivpn/bin/openfortivpn";
    "ProgramArguments" = (
        "/opt/homebrew/opt/openfortivpn/bin/openfortivpn";
        "-c";
        "/opt/homebrew/etc/openfortivpn/openfortivpn/config";
    );
};