Advertisement
nikademus

l2tp over ipsec OpenBSD for android/ios clients

Feb 19th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. # cat /etc/ipsec.conf
  2. ike passive esp transport \
  3. proto udp from external.ip.add.ress to any port l2tp \
  4. main auth "hmac-sha1" enc "aes" group modp1024 \
  5. quick auth "hmac-sha1" enc "aes" group modp1024 \
  6. psk "mysuperstrongkey"
  7.  
  8. # cat /etc/npppd/npppd.conf
  9. authentication LOCAL type local {
  10. users-file "/etc/npppd/npppd-users"
  11. }
  12. tunnel L2TP protocol l2tp {
  13. listen on 0.0.0.0
  14. listen on ::
  15. }
  16.  
  17. ipcp IPCP {
  18. pool-address 192.168.1.2-192.168.1.254
  19. dns-servers 8.8.8.8
  20. }
  21.  
  22. interface pppx0 address 192.168.1.1 ipcp IPCP
  23. bind tunnel from L2TP authenticated by LOCAL to pppx0
  24.  
  25. # echo "net.pipex.enable=1" >> /etc/sysctl.conf
  26.  
  27. # cat /etc/npppd/npppd-users
  28. user1:\
  29. :password=superstrongpass:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement