All quoted items come from my Hurricane Electric Tunnel Details page.
relevant lines in /etc/network/interfaces
auto he-ipv6
iface he-ipv6 inet6 v4tunnel
endpoint <"Server IPv4 address">
address <"Client IPv6 address">
netmask 64
up ip -6 route add default dev he-ipv6
down ip -6 route del default dev he-ipv6
relevant lines of ifconfig eth1
inet6 addr:<First Address of "Routed /64">/64
relevant lines of /etc/sysctl.conf
net.ipv6.conf.all.forwarding = 1
net.ipv6.conf.default.forwarding = 1
net.ipv6.conf.eth1.forwarding = 1
net.ipv6.conf.he-ipv6.forwarding = 1
net.ipv6.conf.all.forwarding = 1
I think I can take some lines out of that to secure it up a bit and I will try commenting them out one by one rebooting and try my connection out to make sure everything works but I'd like if someone could offer a little help here if possible. because it requires testing with rebooting server first and then the client and then ipv6 test. Which is a long and tedious process (the double rebooting bit to make sure configurations took).
relevant lines of /etc/radvd
interface eth1
{
AdvSendAdvert on;
AdvHomeAgentFlag off;
MinRtrAdvInterval 30;
MaxRtrAdvInterval 100;
prefix <"Routed /64">
{
AdvOnLink on;
AdvAutonomous on;
};
};
everything seems to be working as it should. But now I want to lock it down but not break it.
my iptables look as follows for ipv4
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- <internal ip scope/internal ip netmask bits> 0.0.0.0/0
ACCEPT all -- 127.0.0.1 0.0.0.0/0
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
DROP all -- 0.0.0.0/0 0.0.0.0/0
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
applying the ipv6 equiv seems to break radvd
ie when ip6tables looks like so
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all <"Routed /64"> ::/0
ACCEPT all ::1/128 ::/0
ACCEPT all ::/0 ::/0 state RELATED,ESTABLISHED
DROP all ::/128 ::/0
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
so I need to slack off my ip6tables a bit. I'd like recommendations.
Maybe opening up ipv6 on the eth1 interface and leaving the rest locked down?
How do others have their ip6tables to lock it down?