Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Aug 2020 14:49:21 -0400
From:      Aryeh Friedman <aryeh.friedman@gmail.com>
To:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Best way to force net/pptpclient to stay connected?
Message-ID:  <CAGBxaX=gQfye%2BHs0DxCE-O5AegSbAU4mwpdCzHj92Nt_7x1kZw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
My hosting company is worse than useless after repeated attempts to make my
VPN connection to them never timeout/disconnect it does so randomly after a
few hours of being connected.  After a fair amount of research I have been
able to length this from a few mins to a few hours but I am out of ideas
now and short of writing reset on no ping shell script or the equiv and
having it run all the time is there any other tricks I can try.   Here is
my /etc/ppp.conf:

default:
 set log phase chat lcp ipcp ccp tun command
 set authname XXX
 set authkey XXX
 set timeout 0
 set mppe 128
 add 10.31.10.0/24 HISADDR
 enable lqr echo
# set lqrperiod 45
 set ifaddr 0 0
 nat enable yes

Here is command line I use to invoke it:

/usr/local/sbin/pptp --nobuffer --loglevel 2 [vpn server IP goes here] &

-- 
Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGBxaX=gQfye%2BHs0DxCE-O5AegSbAU4mwpdCzHj92Nt_7x1kZw>