sstpcでVPNトンネリングするシェルスクリプト
fuji44
例
#!/usr/bin/env bash
# Revoke previous sudo session
sudo -k
# Read UserName/Password
echo "VPN User (example username@vpn.hostname.example):"
read user
echo VPN Password:
read -s password
# Run Command
echo "enter password for sudo"
sudo sstpc --cert-warn --log-stdout --user $user --password $password "vpn.hostname.example" usepeerdns require-mschap-v2 refuse-eap noauth noipdefault defaultroute