Protect your slice
apt-get install shorewall shorewall-common
copy example files for one-interface for editing
sudo cp /usr/share/doc/shorewall-common/examples/one-interface/* .
add below lines before end of file
ACCEPT net fw tcp 9315
ACCEPT net fw tcp 80
shorewall.conf file to make it start on boot
Now edit file
Look for the “startup” parameter and change it from 0 to 1. This is to prevent startup with default configuration.
Last run a check on configuration
You should see
shorewall configuration verified at the end
Last step start shorewall
invoke-rc.d shorewall start you should see
Starting "Shorewall firewall": done.
If you want to check logs they are saved at
You could also output your configuration by
iptables -L, I have yet to learn how to read it though.
A lot of people use nmap to scan ports to ensure security.