Meu disco do sistema falhou catastroficamente. Eu substituí e principalmente restaurei o sistema operacional em um novo disco, mas tudo que eu tenho para o meu iptables é a saída de iptables -L
. Existe uma maneira de recriar automaticamente o rules.v4
deste texto? Eu instalei iptables-persistent
. Este é o único iptables que eu já criei.
TIA Nate
sudo iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:4960
ACCEPT tcp -- anywhere anywhere tcp dpts:4955:4956
ACCEPT udp -- anywhere anywhere udp dpt:4958
ACCEPT udp -- anywhere anywhere udp dpt:domain
ACCEPT icmp -- anywhere anywhere icmp fragmentation-needed
ACCEPT icmp -- anywhere anywhere limit: avg 10/sec burst 5
DROP all -- anywhere anywhere
Chain FORWARD (policy DROP)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain LOGNDROP (0 references)
target prot opt source destination
LOG tcp -- anywhere anywhere limit: avg 5/min burst 5 LOG level debug prefix "Denied TCP: "
LOG udp -- anywhere anywhere limit: avg 5/min burst 5 LOG level debug prefix "Denied UDP: "
LOG icmp -- anywhere anywhere limit: avg 5/min burst 5 LOG level debug prefix "Denied ICMP: "
DROP all -- anywhere anywhere