simple pptp auto reconnect

From NAT, 6 Years ago, written in Bash, viewed 501 times.
URL https://code.nat.moe/view/3d3853f8 Embed
Download Paste or View Raw
  1. #!/bin/bash
  2. # add this to cron to auto restart pptp client
  3.  
  4. PPTP_GW_ADDR='10.1.0.1'
  5. PPTP_PEER='some-peer'
  6.  
  7. (ifconfig | grep $PPTP_GW_ADDR) || /usr/bin/pon $PPTP_PEER

Reply to "simple pptp auto reconnect "

Here you can reply to the paste above

captcha