All pastes #628385 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-07-21 06:24 UTC
rendered paste body
[mike@thiscomputer ~]$ su
Password:
[root@thiscomputer mike]# iptables -nvU
iptables v1.3.8: Unknown arg `-nvU'
Try `iptables -h' or 'iptables --help' for more information.
[root@thiscomputer mike]# iptables -nvL
Chain INPUT (policy ACCEPT 128 packets, 37516 bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain OUTPUT (policy ACCEPT 136 packets, 11408 bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain filter (0 references)
 pkts bytes target     prot opt in     out     source               destination
[root@thiscomputer mike]# iptables -P INPUT ACCEPT && iptables -P FORWARD ACCEPT && iptables -P OUTPUT ACCEPT && iptables -F && iptables -X
[root@thiscomputer mike]# iptables -nvL
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination
[root@thiscomputer mike]# iptables -N open
[root@thiscomputer mike]# iptables -N interfaces
[root@thiscomputer mike]# iptables -A INPUT -p icmp -j ACCEPT
[root@thiscomputer mike]# iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables: No chain/target/match by that name
[root@thiscomputer mike]# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     icmp --  anywhere             anywhere

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Chain interfaces (0 references)
target     prot opt source               destination

Chain open (0 references)
target     prot opt source               destination
[root@thiscomputer mike]#