How to Write iptables Rules for IPv6 - Linux.com

PHOTO EMBED

Sat Apr 23 2022 11:20:46 GMT+0000 (Coordinated Universal Time)

Saved by @xiaomian

First, see if you already have any rules:

$ sudo ip6tables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination 
 Save
This shows there are no existing rules. If you already have some rules, clear them with this command:

$ sudo ip6tables -F
content_copyCOPY

https://www.linux.com/topic/networking/iptables-rules-ipv6/