install_openvpn.sh 243 B

12345
  1. #!/bin/bash
  2. sudo apt-get install openvpn -y
  3. sudo iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE
  4. sudo iptables -A FORWARD -i tun0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
  5. sudo iptables -A FORWARD -i wlan0 -o tun0 -j ACCEPT