Advertisement
Guest User

Untitled

a guest
May 26th, 2018
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. wget https://raw.githubusercontent.com/code302/Debian-with-LBC/master/Debian/Softether-x64.sh
  2.  
  3.  
  4. bash Softether-x64.sh
  5. installing na yan then next eto lagay mo
  6.  
  7. apt-get install dnsmasq
  8.  
  9. nano /etc/dnsmasq.conf
  10. interface=tap_soft
  11. dhcp-range=tap_soft,192.168.7.50,192.168.7.60,12h
  12. dhcp-option=tap_soft,3,192.168.7.1
  13. port=5353
  14. dhcp-option=option:dns-server,80.80.80.80,80.80.81.81
  15.  
  16. echo 'net.ipv4.ip_forward = 1' > /etc/sysctl.d/ipv4_forwarding.conf
  17. sysctl --system
  18. iptables -t nat -A POSTROUTING -s 192.168.7.0/24 -j SNAT --to-source (VPS IP)
  19. apt-get install iptables-persistent -y
  20.  
  21. /etc/init.d/vpnserver restart && /etc/init.d/dnsmasq restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement