Page 1 of 1

HOWTO: ufw firewall

Posted: 16. Mar 2015, 17:21
by bobo
Installation:

Code: Select all

# spi -u && spi -i ufw
To activate it:

Code: Select all

# ufw enable
# ufw status
To avoid pinging from outside:

Code: Select all

# nano  /etc/ufw/before.rules
Leave it looking like this:

Code: Select all

# ok icmp codes
-A ufw-before-input -p icmp --icmp-type destination-unreachable -j DROP
-A ufw-before-input -p icmp --icmp-type source-quench -j DROP
-A ufw-before-input -p icmp --icmp-type time-exceeded -j DROP
-A ufw-before-input -p icmp --icmp-type parameter-problem -j DROP
-A ufw-before-input -p icmp --icmp-type echo-request -j DROP
Check it in http://www.grc.com
Click on ShielsUp > ShieldsUp (under Hot Spots > Proceed > All Service Ports

If all the ports are neon green you are in Stealth (you're invisible in the internet) the paragraph should say:

Code: Select all

Your system has achieved a perfect "TruStealth" rating. Not a single packet — solicited or otherwise — was received from your system as a result of our security probing tests. Your system ignored and refused to reply to repeated Pings (ICMP Echo Requests). From the standpoint of the passing probes of any hacker, this machine does not exist on the Internet. Some questionable personal security systems expose their users by attempting to "counter-probe the prober", thus revealing themselves. But your system wisely remained silent in every way. Very nice.

Re: HOWTO: ufw firewall

Posted: 23. Mar 2015, 23:51
by knome
On my home system I get the same ShieldsUp result without installing any software firewall. Does that mean my ISP's (BT) supplied modem router is doing a good job?

Re: HOWTO: ufw firewall

Posted: 24. Mar 2015, 02:39
by bobo
Make sure and call them up.