1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
$ ufw status numbered
Status: active
To Action From
-- ------ ----
[ 1] 22222/tcp ALLOW IN Anywhere # ssh port
[ 2] 80/tcp ALLOW IN Anywhere # http port
[ 3] 443/tcp ALLOW IN Anywhere # https port
[ 4] 80/tcp (v6) ALLOW IN Anywhere (v6) # http port
[ 5] 443/tcp (v6) ALLOW IN Anywhere (v6) # https port
$ ufw insert 2 deny from 121.224.96.12/32 to any port 80 comment "test"
$ ufw status
Status: active
To Action From
-- ------ ----
22222/tcp ALLOW Anywhere # ssh port
80 DENY 121.224.96.12 # test
80/tcp ALLOW Anywhere # http port
443/tcp ALLOW Anywhere # https port
80/tcp (v6) ALLOW Anywhere (v6) # http port
443/tcp (v6) ALLOW Anywhere (v6) # https port
|