Guest User

Untitled

a guest
Oct 21st, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. ip -6 neigh add proxy MY_PUBLIC_IPv6:2000::1 dev eth0
  2. ip -6 neigh add proxy MY_PUBLIC_IPv6:2000::1000 dev eth0
  3.  
  4. sysctl -w net.ipv6.conf.all.forwarding=1
  5. sysctl -w net.ipv6.conf.all.proxy_ndp=1
  6.  
  7. ip6tables -I FORWARD 1 -s MY_PUBLIC_IPv6:2000::/67 -i tun0 -o eth0 -m state --state NEW -j ACCEPT
  8. ip6tables -I FORWARD 2 -d MY_PUBLIC_IPv6:2000::/67 -i eth0 -o tun0 -m state --state NEW -j ACCEPT
  9. ip6tables -I FORWARD 3 -m state --state RELATED,ESTABLISHED -j ACCEPT
  10.  
  11. proto tcp6-server
  12. mode server
  13. tls-server
  14. ifconfig 10.1.1.1 10.1.1.30
  15. ifconfig-pool 10.1.1.2 10.1.1.100
  16. tun-ipv6
  17. push tun-ipv6
  18. ifconfig-ipv6 MY_PUBLIC_IPv6:2000::1 MY_PUBLIC_IPv6:2000::100
  19.  
  20. push "route 10.1.1.0 255.255.255.0"
  21. push "route-ipv6 MY_PUBLIC_IPv6:2000::1/67"
  22. push "route-ipv6 2000::/3"
  23.  
  24. push "setenv ipv6dns 2001:4860:4860::8888"
  25.  
  26. interface tun0
  27. {
  28. AdvSendAdvert on;
  29. prefix MY_PUBLIC_IPv6:2000::/67
  30. {
  31. };
  32. };
Add Comment
Please, Sign In to add comment