The ufw is a front-end of Iptables, and the gufw offers a GUI for the ufw.
The instuction below shows how to install and tweak the ufw in Kali.
/* Installation: */
# apt-get update
# apt-get install gufw
/* For the first time using: */
# ufw status verbose
Status: inactive
# vi /etc/ufw/policies.rules
------------------------------ ---------
#!/bin/sh
ufw allow proto tcp from 192.168.1.35 to 192.168.1.38 port 25
ufw allow proto tcp from 192.168.1.189 to 192.168.1.38 port 25
ufw allow in from 192.168.172.222 comment 'Alex PC'
ufw allow ssh
ufw deny in on eth0
ufw allow out on eth0
:wq
------------------------------ ---------
/* Bear in mind that the rules within the policies file would be executed from the top to the bottom. */
# chmod 744 /etc/ufw/policies.rules
# /etc/ufw/policies.rules
# ufw enable
/* For automatical startup: */
# systemctl enable ufw.service
/* For seeing more detail: */
# ufw status verbose
No comments:
Post a Comment