mqnoy

L2PT VPN

Oct 26th, 2017
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.08 KB | None | 0 0
  1. [firewall]
  2. iptables -A INPUT -d 0/0 -p udp --dport 1701 -j ACCEPT
  3. iptables -A INPUT -d 0/0 -p tcp --dport 1701 -j ACCEPT
  4.  
  5.  
  6.  
  7.  
  8. [2.4.5/pppol2tp.so: cannot open shared object file: No such file or directory]
  9. https://bugs.centos.org/view.php?id=5832
  10.  
  11.  
  12. [referensi]
  13. https://linux.die.net/man/5/xl2tpd.conf
  14. https://linuxexplore.com/how-tos/l2tp-vpn-using-xl2tpd/
  15. https://bbs.archlinux.org/viewtopic.php?id=126843
  16. https://www.centos.org/forums/viewtopic.php?t=44091
  17.  
  18.  
  19. [TESTED]
  20. CENTOS 6 & DEBIAN 7
  21.  
  22. [example config]
  23. ;;--------------------
  24. ;;
  25. ;;--------------------
  26.  
  27. [global]
  28. ;listen-addr = 0.0.0.0
  29. ; force userspace = yes
  30. ;debug tunnel = yes
  31. ;ipsec saref = yes
  32.  
  33. ;;
  34. ;;[fix from : https://bugs.centos.org/view.php?id=5832]
  35. ;;
  36. force userspace = yes
  37.  
  38. [lns default]
  39. ip range = 172.99.1.2-172.99.1.253
  40. local ip = 172.99.1.1
  41. ; leave chap unspecified for maximum compatibility with windows, iOS, etc
  42. ;require pap = yes
  43. require chap = yes
  44. ;refuse pap = yes
  45. require authentication = yes
  46. name = l2VPN
  47. ppp debug = yes
  48. pppoptfile = /etc/xl2tpd/options.xl2tpd
  49. length bit = yes
Advertisement
Add Comment
Please, Sign In to add comment