Advertisement
miraip0ts

Openvpn-install TUT Simple

Mar 17th, 2019
1,292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. # VPN TUT #
  2.  
  3. updated openvpn for fixed vulns : https://github.com/angristan/openvpn-install/blob/master/openvpn-install.sh
  4. openvpn file : https://pastebin.com/raw/J3THPXsv # just wget it. wget https://pastebin.com/raw/J3THPXsv -O openvpn-install.sh ; chmod +x openvpn-install.sh ;
  5.  
  6. Step 1 put the openvpn Config on the server. Then chmod 777 openvpn-install.sh .
  7.  
  8. Step 2 run ./openvpn-install.sh
  9.  
  10. Step 3 ps ax|grep openvpn
  11.  
  12. Step 4 sysctl -p /etc/sysctl.conf
  13.  
  14. Step 5 iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
  15.  
  16. Step 5 turning off pings -
  17. ## turn off
  18. sysctl net.ipv4.icmp_echo_ignore_all=1
  19. ## turn back on
  20. sysctl net.ipv4.icmp_echo_ignore_all=0
  21.  
  22. An save sysctl -p
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement