1

My system disk failed catastrophically. I've replaced and mostly restored the OS on a new disk but all I have for my iptables is the output from iptables -L. Is there a way to automatically recreate the rules.v4 from this text? I've installed iptables-persistent. This is the only iptables I've ever created.

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            
4

0

You must log in to answer this question.

Browse other questions tagged .