root localhost phpMyAdmin iptables -vnL --line-numbers Chain INPUT pol

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
[root@localhost phpMyAdmin]# iptables -vnL --line-numbers
Chain INPUT (policy ACCEPT 18859 packets, 1405K bytes)
num pkts bytes target prot opt in out source destination
1 96 236K ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
2 7935 8450K ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
3 1 52 ACCEPT tcp -- * * 10.0.4.0/24 0.0.0.0/0 tcp dpt:22
4 0 0 ACCEPT tcp -- * * 213.8.172.68 0.0.0.0/0 tcp dpt:22
5 0 0 ACCEPT tcp -- * * 213.8.172.69 0.0.0.0/0 tcp dpt:22
6 0 0 ACCEPT tcp -- * * 213.8.104.59 0.0.0.0/0 tcp dpt:22
7 123 8189 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
num pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 1607 packets, 225K bytes)
num pkts bytes target prot opt in out source destination
1 96 236K ACCEPT all -- * lo 0.0.0.0/0 0.0.0.0/0
2 7270 1637K ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
3 0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp spt:80
4 10455 3099K ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp spt:22
5 0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0
[root@localhost phpMyAdmin]# iptables -A INPUT -j DROP