Advertisement
Hasaple

evencoolerdog

Dec 13th, 2016
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.44 KB | None | 0 0
  1. interfaces {
  2. ethernet eth0 {
  3. address dhcp
  4. description Internet
  5. dhcpv6-pd {
  6. pd 0 {
  7. interface eth1 {
  8. host-address ::1
  9. prefix-id :0
  10. service dhcpv6-stateless ### dhcpv6-stateless instead of slaac
  11. }
  12. prefix-length 64
  13. }
  14. rapid-commit enable
  15. }
  16. duplex auto
  17. firewall {
  18. in {
  19. ipv6-name WANv6_IN
  20. name WAN_IN
  21. }
  22. local {
  23. ipv6-name WANv6_LOCAL
  24. name WAN_LOCAL
  25. }
  26. }
  27. speed auto
  28. }
  29. ethernet eth1 {
  30. address 10.0.0.1/24
  31. address fe80::1/64 ### I added this in to make sure we always get this link-local (non-routable) address for this interface.
  32. description Local
  33. duplex auto
  34. ipv6 {
  35. dup-addr-detect-transmits 1
  36. router-advert {
  37. cur-hop-limit 64
  38. link-mtu 0
  39. managed-flag false ### We want this false because we like false flag ops- are not managing addresses
  40. max-interval 600
  41. name-server 2620:0:ccc::2 ### This is put out in the Router Advertisement, but windows won't pick it up (opendns)
  42. other-config-flag true ### We want this true because we want to give out more configuration options (DNS)
  43. prefix ::/64 {
  44. autonomous-flag true
  45. on-link-flag true
  46. valid-lifetime 2592000
  47. }
  48. reachable-time 0
  49. retrans-timer 0
  50. send-advert true
  51. }
  52. }
  53. speed auto
  54. }
  55. ### RIP ETH2 ###
  56.  
  57. service {
  58. ### OTHER SERVICES ###
  59. dhcpv6-server {
  60. shared-network-name INTERNAL { ### You can name this whatever you want
  61. subnet fe80::1/128 { ### This is a workaround to a bug or something. Usually you'd want to put in the subnet you're managing, like 2601:a1a1:b2b2:beef::/64. Also, if your ISP decides to give you a different /64 network then you'd have to change this config too, ugh. Keep it link-local for simple networks.
  62. name-server 2001:4860:4860::8888 ### Google's IPv6 DNS address, this is the information that is given to clients
  63. }
  64. }
  65. }
  66.  
  67. ### MORE SERVICES AND THINGS ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement