Control Web Panel
Security => CSF Firewall => Topic started by: banane on April 08, 2015, 09:33:12 AM
-
I've added few iptables rules with
iptables -A
etc
now when from the CSF Firewall page I click on Firewall Restart button... the web page crash, I mean the webpanel gets unresponsive for few minutes (tested with multiples browsers) and if I issue the command service iptables status
I see it running but without the custom rules settled before
then if I give the command service iptables restart
I got back the custom rules and the page "List iptables rules" on CWP working again
is that normail or a bug?
CWP version 0.9.8.4
-
manually added something to iptables will flush that rule on restart of csf.
-
manually added something to iptables will flush that rule on restart of csf.
doh! so I have to learn CSF..
I guess I'll put those rules on "Firewall post configuration" because I little big complex,
example:
Chain POSTROUTING 1 MASQUERADE all -- 10.8.0.0/24 0.0.0.0/0
-
umh,csf doesn't accept
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
Error:[iptables v1.4.7: Invalid target name `MASQUERADE]
-
got it!
I opened /usr/local/csf/bin/csfpost.sh with vim and the option :e ++ff=unix and deleted ^M at the end of each line
now csf is appling the iptables rules correctly