Skip to content

Instantly share code, notes, and snippets.

@nferch
Created May 28, 2018 16:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nferch/5005415825dbfa73eaef3c17b2668379 to your computer and use it in GitHub Desktop.
Save nferch/5005415825dbfa73eaef3c17b2668379 to your computer and use it in GitHub Desktop.
--- a/etc/ppp/ppp.conf.example
+++ b/etc/ppp/ppp.conf.example
@@ -3,11 +3,10 @@
# https://github.com/freebsd/freebsd-base-graphics/blob/master/share/examples/ppp/ppp.conf.sample
vpn-client:
- set device vpnhost.example.com:443
set dial
set speed 38400
set mru 1354
set login
- set ifaddr 192.0.2.2 192.0.2.1 255.255.255.0
+ set timeout 0
disable deflate pred1
deny deflate pred1
diff --git a/src/tunnel.c b/src/tunnel.c
index 46c3143..543d976 100644
--- a/src/tunnel.c
+++ b/src/tunnel.c
@@ -167,7 +167,7 @@ static int pppd_run(struct tunnel *tunnel)
*/
const char *v[] = {
ppp_path,
- "-background"
+ "-direct"
};
for (unsigned i = 0; i < sizeof v/sizeof v[0]; i++)
ofv_append_varr(&pppd_args, v[i]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment