Код за потвърждение: Избери целия код
iptables -vL
Chain INPUT (policy DROP 1645 packets, 208K bytes)
pkts bytes target prot opt in out source destination
2265 148K BLOCKHOSTS 0 -- any any anywhere anywhere
556K 35M ACCEPT 0 -- eth0 any anywhere anywhere state RELATED,ESTABLISHED
578K 58M ACCEPT 0 -- eth1 any anywhere anywhere
13163 1810K ACCEPT 0 -- lo any anywhere anywhere
0 0 DROP 0 -- eth0 any 192.168.0.0/24 anywhere
0 0 DROP 0 -- eth0 any loopback/8 anywhere
8 464 ACCEPT tcp -- any any anywhere anywhere tcp dpt:ftp flags:FIN,SYN,RST,ACK/SYN
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dpt:10001 flags:FIN,SYN,RST,ACK/SYN
40 2176 ACCEPT tcp -- any any anywhere anywhere tcp dpt:ssh flags:FIN,SYN,RST,ACK/SYN
1 44 ACCEPT tcp -- any any anywhere anywhere tcp dpt:telnet flags:FIN,SYN,RST,ACK/SYN
152 8936 ACCEPT tcp -- any any anywhere anywhere tcp dpt:smtp flags:FIN,SYN,RST,ACK/SYN
6 304 ACCEPT tcp -- any any anywhere anywhere tcp dpt:ssmtp flags:FIN,SYN,RST,ACK/SYN
836 42364 ACCEPT tcp -- any any anywhere anywhere tcp dpt:www flags:FIN,SYN,RST,ACK/SYN
12 704 ACCEPT tcp -- any any anywhere anywhere tcp dpt:auth flags:FIN,SYN,RST,ACK/SYN
56 2924 ACCEPT tcp -- any any anywhere anywhere tcp dpt:https flags:FIN,SYN,RST,ACK/SYN
1 44 ACCEPT tcp -- any any anywhere anywhere tcp dpt:imap2 flags:FIN,SYN,RST,ACK/SYN
1733 90108 ACCEPT tcp -- any any anywhere anywhere tcp dpt:imaps flags:FIN,SYN,RST,ACK/SYN
1 44 ACCEPT tcp -- any any anywhere anywhere tcp dpt:pop3 flags:FIN,SYN,RST,ACK/SYN
3 140 ACCEPT tcp -- any any anywhere anywhere tcp dpt:pop3s flags:FIN,SYN,RST,ACK/SYN
11 540 ACCEPT tcp -- any any anywhere anywhere tcp dpt:1234 flags:FIN,SYN,RST,ACK/SYN
4 200 ACCEPT tcp -- any any anywhere anywhere tcp dpt:1723 flags:FIN,SYN,RST,ACK/SYN
10 508 ACCEPT tcp -- any any anywhere anywhere tcp dpt:webmin flags:FIN,SYN,RST,ACK/SYN
4 256 ACCEPT tcp -- any any anywhere anywhere tcp dpt:10510 flags:FIN,SYN,RST,ACK/SYN
167K 16M DROP udp -- any any anywhere anywhere
57152 3273K DROP tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,ACK/SYN
Chain FORWARD (policy DROP 1267 packets, 73621 bytes)
pkts bytes target prot opt in out source destination
6888K 1259M ACCEPT 0 -- eth1 eth0 anywhere anywhere
9154K 9393M ACCEPT 0 -- eth0 eth1 anywhere anywhere state RELATED,ESTABLISHED
Chain OUTPUT (policy ACCEPT 1608K packets, 1813M bytes)
pkts bytes target prot opt in out source destination
Chain BLOCKHOSTS (1 references)
pkts bytes target prot opt in out source destination
2265 148K RETURN 0 -- any any anywhere anywhere
Код за потвърждение: Избери целия код
iptables -vL -t nat
Chain PREROUTING (policy ACCEPT 7761K packets, 632M bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 107K packets, 7351K bytes)
pkts bytes target prot opt in out source destination
43772 4308K SNAT 0 -- any eth0 192.168.0.0/24 anywhere to:77.70.5.130
0 0 SNAT 0 -- any any 10.0.0.0/24 anywhere to:77.70.5.130
Chain OUTPUT (policy ACCEPT 107K packets, 7347K bytes)
pkts bytes target prot opt in out source destination