5 comments so far
Hey there.
A great quick-start guide.
I think however there’s a slight mistake:
In the lines you say to add to /etc/shorewall/rules,
net fw tcp 22
net fw tcp 80
should read:
ACCEPT net fw tcp 22
ACCEPT net fw tcp 80
I’m not sure if that’s actually correct, but that’s what I understood from the man pages / other sources, and it worked for me. Without the changes I get this error after following your instructions:
(in /var/log/shorewall-init.log)
Compiling/etc/shorewall/rules …
ERROR: Invalid Action in rule “net fw tcp 22″
(running ubuntu server, fiesty fawn)
Thanks once again for the guide =)
~
Blue
Hey again. Finally finished setting up my own shorewall, and thought I’d my thoughts on bits I found annoying/tricky:
Shorewall will not reply to pings by default. To make it reply, add the following to your rules file:
Ping/ACCEPT net $FW
You can also add services by name, instead of port, eg:
ACCEPT net $FW tcp microsoft-ds
ACCEPT net $FW tcp mysql
ACCEPT net $FW tcp netbios-ssn
ACCEPT net $FW tcp ftp
…although of course this will just add the default ports, not intelligently find the ones you are listening on.
Excellent getting started guide
Shorewall also ships with a number of macros. In the rules file, you can do the same as above, with the following:
SSH/ACCEPT net $FW
Web/ACCEPT net $FW
Ping/ACCEPT net $FW
See ‘/usr/share/shorewall/’ for a list of all macros.







[...] tutorial at Debianhelp on the installation and setting of it. A more relevant tutorial is here and there for those who are running a Xen [...]