If you run into the error “No shorewall compiler installed” (for instance using shorewall check) then there is a quick fix for this.
The fix is to install shorewall-perl (using “apt-get install shorewall-perl”).
Then you should be set.
If you run into the error “No shorewall compiler installed” (for instance using shorewall check) then there is a quick fix for this.
The fix is to install shorewall-perl (using “apt-get install shorewall-perl”).
Then you should be set.
By definition shorewall is not a firewall, it is a way to (more) easily configure iptables to work as a firewall.
#ZONE TYPE OPTIONS IN OPTIONS OUT OPTIONS
fw firewall
net ipv4
vpn ipv4 |
#ZONE INTERFACE BROADCAST OPTIONS
net eth0 detect tcpflags,blacklist,dhcp
vpn tun0 - |
#SOURCE DEST POLICY LOG LEVEL LIMIT:BURST
fw net ACCEPT
vpn net ACCEPT
vpn fw ACCEPT
fw vpn ACCEPT
net all DROP info
all all DROP info |
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGINAL RATE USER/ # PORT(S) PORT(S) DEST LIMIT GROUP ACCEPT net fw tcp 22 # ssh ACCEPT net fw tcp 80 # web |
# prevent startup with default configuration # set the following varible to 1 in order to allow Shorewall to start startup=1 |
If you later decide to update rules, zones etc run “$ /etc/init.d/shorewall restart” to load the changes.