Hello out there. I have to admit I am a newbie with firewalls so I decided to try out shorewall as my interface to iptables. I created a set of rules that allow various services, SSH, Web, SMTP, etc... Once I type shorewall start it loads and then when I try to access my site, I am unable to connect. So I then go into LISH and do a shorewall stop. I get the notice that it is stopped (to screen and in /var/log/messages). Ok, here is where it gets goofy. Now when I try to contact my website I still cannot contact it. So I do a ps -ef and see that shorewall nor iptables are running. I do a restart of apache and still nothing. The only way I am able to get back online is to issue a reboot via the Linode members site.
Ok, here is the set of firewall rules I have in play:
Code:
ACCEPT net loc icmp 8
ACCEPT net loc tcp 20
ACCEPT net loc tcp 21
ACCEPT net loc tcp 22
ACCEPT net loc tcp 25
ACCEPT net loc tcp 53
ACCEPT net loc udp 53
ACCEPT net loc tcp 80
ACCEPT net loc tcp 110
ACCEPT net loc tcp 143
ACCEPT net loc tcp 443
ACCEPT net loc tcp 465
ACCEPT net loc tcp 993
ACCEPT net loc tcp 995
ACCEPT net loc tcp 79
ACCEPT net loc tcp 2525
Interfaces:
Code:
loc eth0 detect norfc1918,nobogons,blacklist,nosmurfs
Network zones:
Code:
net Net Internet
loc Local Local networks
dmz DMZ Demilitarized zone
Hosts:
Blank
Errors recorded to /var/log/messages when the above rules were enabled:
Code:
Jan 7 11:02:42 metrowebworks kernel: Shorewall:all2all:REJECT:IN=eth0 OUT= MAC=fe:fd:43:12:5c:79:00:04:dd:e0:23:02:08:00 SRC=160.79.56.5 DST=67.18.92.121 LEN=52 TOS=0x00 PREC=0x00 TTL=54 ID=9010 DF PROTO=TCP SPT=1972 DPT=80 WINDOW=5840 RES=0x00 SYN URGP=0
Jan 7 11:17:02 metrowebworks kernel: Shorewall:all2all:REJECT:IN=eth0 OUT= MAC=fe:fd:43:12:5c:79:00:04:dd:e0:23:02:08:00 SRC=160.79.56.5 DST=67.18.92.121 LEN=48 TOS=0x00 PREC=0x00 TTL=117 ID=47809 DF PROTO=TCP SPT=56273 DPT=79 WINDOW=64240 RES=0x00 SYN URGP=0