Firewall Commands


Firewall

ufw enable
It will turn on the firewall

enable

ufw disable
It will turn off the firewall

disable.png

ufw default allow
It will allow all connections by default

default allow.png

ufw default deny
It will drop all connections by default

default deny

ufw status
It will show current rules

status

ufw allow port
It will show allow traffic on port

allow port

ufw deny port
It will show port block

deny port

ufw deny from ip
It will allow ip block

deny from ip

ufw allow from ip
It will deny ip block

allow ip.png

iptables -F
It will flush iptables

flush

iptables -L
It will display iptables output

listing

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s