Wednesday, August 9, 2023

How to usage UFW delete some rule by number and insert deny rule first level Ubuntu 18.04

  • แสดง index ของ rule

$ sudo ufw status numbered

[1] ...

[2]...

[3]...

...

  • สั่งลบ rule ตาม index

$ sudo ufw delete 3

  • แทรก rule deny some port

$ sudo ufw insert 1 deny 8834

Related

  • https://juuier.blogspot.com/2013/03/how-to-for-ufw-script-configures.html