1st of all, You sould also check in rc.local, it there are some rulles in there for the firewall, or maybe the rulles are in the default config file on firewall.
2nd, try do modify the rulles in iptables from safe mode.
I`ve maked my own firewall, like example: Firewall.sh, with chmod +x Firewall.sh, so I can execute it, posted the rulles of firewall there, and added in rc.local.
The begining of my firewall lookes like this:
Code:
### Remove all previous rules, and delete any user defined chains ###
iptables -X
iptables -F
iptables -t nat -X
iptables -t nat -F
iptables -t mangle -X
iptables -t mangle -F
Code:
#### Set the default policies to drop ###
iptables -P INPUT DROP
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
The rest of rulles what I`ve didn`t posted, are the rulles for accept/deny ports, ip`s, etc.