1 – Install radvd
1 |
sudo apt-get install radvd |
2 – Configure radvd [/etc/radvd.conf]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
interface p4p1 { AdvSendAdvert on; AdvLinkMTU 1280; MaxRtrAdvInterval 300; prefix fcfc::/64 { AdvOnLink on; AdvAutonomous on; AdvRouterAddr on; }; route fdfd::/64 { }; }; |
3 – Configure Network interfaces [/etc/network/interfaces]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto p4p1 iface p4p1 inet static address 10.0.1.220 netmask 255.255.255.0 gateway 10.0.1.1 dns-nameservers 8.8.8.8 # IPv6 - radvd auto p4p1 allow-hotplug p4p1 iface p4p1 inet6 static address fcfc::1 netmask 64 |
4 – Configure SysCtl [/etc/sysctl.conf]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# See http://lwn.net/Articles/277146/ # Note: This may impact IPv6 TCP sessions too #net.ipv4.tcp_syncookies=1 # Uncomment the next line to enable packet forwarding for IPv4 #net.ipv4.ip_forward=1 # Uncomment the next line to enable packet forwarding for IPv6 # Enabling this option disables Stateless Address Autoconfiguration # based on Router Advertisements for this host net.ipv6.conf.all.forwarding=1 ################################################################### # Additional settings - these settings can improve the network # security of the host and prevent against some network attacks # including spoofing attacks and man in the middle attacks through # redirection. Some network environments, however, require that these # settings are disabled so review and enable them as needed. # # Do not accept ICMP redirects (prevent MITM attacks) #net.ipv4.conf.all.accept_redirects = 0 #net.ipv6.conf.all.accept_redirects = 0 # _or_ # Accept ICMP redirects only for gateways listed in our default # gateway list (enabled by default) # net.ipv4.conf.all.secure_redirects = 1 # # Do not send ICMP redirects (we are not a router) #net.ipv4.conf.all.send_redirects = 0 # # Do not accept IP source route packets (we are not a router) #net.ipv4.conf.all.accept_source_route = 0 #net.ipv6.conf.all.accept_source_route = 0 # # Log Martian Packets #net.ipv4.conf.all.log_martians = 1 # |