Skip to content

Adding --pppd-keepalive option.#802

Open
FinboySlick wants to merge 2 commits into
adrienverge:masterfrom
FinboySlick:lcp_echo_interval
Open

Adding --pppd-keepalive option.#802
FinboySlick wants to merge 2 commits into
adrienverge:masterfrom
FinboySlick:lcp_echo_interval

Conversation

@FinboySlick
Copy link
Copy Markdown

In reference to #92 where lcp-echo-interval would still be useful. Figured if I'm going to ask for a feature, I might as well do some of the work.

@DimitriPapadopoulos
Copy link
Copy Markdown
Collaborator

Would we need to consider other LCP parameters? This works with pppd on Linux but I cannot find anything similar in ppp on FreeBSD. Do you have any clue?

@FinboySlick
Copy link
Copy Markdown
Author

Honestly, my initial approach would have been to enable any pppd option via a generic --pppd-opt= type of parameter, but I wasn't familiar enough with the code/intent to take into account the design and security implications (and it was very late).

As such, this patch is just to solve an immediate problem. That being said, I think there would be value in making openfortivpn 'independent' of other config files. Since the only way to do that as far as pppd is concerned is the command line, a '--pppd-opt=' type of solution is worth considering.

@luzik
Copy link
Copy Markdown

luzik commented Apr 20, 2022

Can we move such a keepalive packet into upper layer ? ICMP broadcast into new interface or something similar ? I believe that tunnel just need any packet to keep tunnel alive.

@DimitriPapadopoulos
Copy link
Copy Markdown
Collaborator

DimitriPapadopoulos commented Apr 20, 2022

I think FortiClient handles dead peer detection that at the PPP level, see for example https://gitlab.com/openconnect/openconnect/-/commit/e1eac267 - but perhaps in upper layers too.

@mrbaseman
Copy link
Copy Markdown
Collaborator

Is this still an issue? There have been changes to pppd (which broke some things in openfortivpn, too, e.g. in v1.21.0 we have introduced a compatibility feature to deal with pppd versions older than 2.5.0).

To make it clear: those changes, that I'm aware of, have no relation with keepalive, I'm just asking if this PR is still relevant for current versions of pppd, simply because I did not closely follow changes there.

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

Successfully merging this pull request may close these issues.

5 participants