Skip to content

Instantly share code, notes, and snippets.

@realmiketalbot
Created September 30, 2020 04:30
Show Gist options
  • Save realmiketalbot/f9a6eb947be2c78f76375c5f143377fb to your computer and use it in GitHub Desktop.
Save realmiketalbot/f9a6eb947be2c78f76375c5f143377fb to your computer and use it in GitHub Desktop.
Initialize ppp for Dell SonicWALL NetExtender client
#!/bin/sh
# Dell SonicWALL NetExtender client initialization
# You should place the netExtender excutable under:
# /usr/sbin/netExtender
rm -f /etc/ppp/sslvpn.pid
rm -f /etc/ppp/sslvpn.pid2
rm -f /etc/ppp/sslvpn.clientip
rm -f /etc/ppp/ip-down.d/sslvpnroutecleanup
rm -f /etc/ppp/ip-up.d/sslvpnroute
rm -f /etc/ppp/ipv6-down.d/sslvpnroutecleanup6
rm -f /etc/ppp/ipv6-down.d/sslvpnroute6cleanup
rm -f /etc/ppp/ipv6-up.d/sslvpnroute6
rm -f /etc/ppp/peers/sslvpn
touch /etc/ppp/sslvpn.pid
touch /etc/ppp/sslvpn.pid2
touch /etc/ppp/sslvpn.clientip
touch /etc/ppp/ip-down.d/sslvpnroutecleanup
touch /etc/ppp/ip-up.d/sslvpnroute
touch /etc/ppp/ipv6-down.d/sslvpnroutecleanup6
touch /etc/ppp/ipv6-down.d/sslvpnroute6cleanup
touch /etc/ppp/ipv6-up.d/sslvpnroute6
echo 'ktune\nlocal\nnoipdefault\nnoccp\nnoauth\nnovj\nnopcomp\nnoaccomp' > /etc/ppp/peers/sslvpn
chmod a+x /usr/sbin/pppd
chmod a+rx /etc/ppp
chmod -R a+r /etc/ppp/peers
chmod 666 /etc/ppp/sslvpn.clientip
chmod 007 /etc/ppp/sslvpn.pid
chmod 007 /etc/ppp/sslvpn.pid2
chmod 757 /etc/ppp/ip-down.d/sslvpnroutecleanup
chmod 757 /etc/ppp/ipv6-down.d/sslvpnroutecleanup6
chmod 757 /etc/ppp/ipv6-down.d/sslvpnroute6cleanup
chmod 757 /etc/ppp/ip-up.d/sslvpnroute
chmod a+x,a+r /etc/ppp/peers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment