Hiya,
I'm using the iptables rules from the Linode library, and haven't needed to change anything so far.
Is there anything I need to do to use similar rules for IPv6 (and ip6tables)?
Code:
*filter
# Allow all loopback traffic and drop all traffic to 127/8 that doesn't use lo0.
-A INPUT -i lo -j ACCEPT
-A INPUT -d 127.0.0.0/8 -j DROP
# Accept all established inbound connections.
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
# Allow all outbound traffic.
-A OUTPUT -j ACCEPT
# Allow HTTP and HTTPS connections from anywhere.
# -A INPUT -p tcp --dport 80 -j ACCEPT
# -A INPUT -p tcp --dport 443 -j ACCEPT
# Allow SSH connections.
-A INPUT -p tcp -m state --state NEW --dport 22 -j ACCEPT
# Allow ICMP.
-A INPUT -p icmp -j ACCEPT
# Log iptables denied calls.
-A INPUT -m limit --limit 5/min -j LOG --log-prefix "iptables denied: " --log-level 7
# Drop all other inbound traffic - default deny unless explicitly allowed policy.
-A INPUT -j DROP
-A FORWARD -j DROP
COMMIT
From what I've read, it looks like I'd need to change 127.0.0.0/8 to ::1/128, and icmp to icmpv6.
Does that seem right, and is there anything I've missed?
Many thanks!