Last active
September 10, 2021 15:51
-
-
Save liantian-cn/3dbc84e580340c23769f to your computer and use it in GitHub Desktop.
Help
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@do:~# iptables -nvL --line-numbers | |
Chain INPUT (policy ACCEPT 0 packets, 0 bytes) | |
num pkts bytes target prot opt in out source destination | |
1 270 39545 ACCEPT all -- lo * 127.0.0.0/8 127.0.0.0/8 | |
2 0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0 | |
3 8055 3839K ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED | |
4 3 132 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:22 | |
5 0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80 | |
6 0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:443 | |
7 161 7052 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:23 | |
8 61 5315 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:23 | |
9 0 0 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:500 | |
10 0 0 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:4500 | |
11 0 0 ACCEPT udp -- eth0 * 60.195.252.107 0.0.0.0/0 udp dpt:161 | |
12 0 0 ACCEPT udp -- eth0 * 60.195.252.110 0.0.0.0/0 udp dpt:161 | |
13 106 4664 DROP all -- eth0 * 0.0.0.0/0 0.0.0.0/0 | |
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes) | |
num pkts bytes target prot opt in out source destination | |
1 0 0 ACCEPT all -- * * 10.0.0.0/24 0.0.0.0/0 | |
Chain OUTPUT (policy ACCEPT 211 packets, 11524 bytes) | |
num pkts bytes target prot opt in out source destination |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment