![]() To restart CSF simply type below command and watch the results. Iptables -I INPUT -s 1.2.3.4 -p tcp -m state -state NEW -m tcp -dport 3306 -j ACCEPTĬreate an file /etc/csf/csfpost.sh and add the iptables rules, which you want to apply after CSF add its own rules to firewall. csfpost.sh – To run external commands after csf configures iptablesĬreate a file /etc/csf/csfpre.sh and add the iptables rules, which you want to execute before CSF applied own rules.csfpre.sh – To run external commands before csf configures iptables.You can add following rules to pre or post script For example you want to open port 3306 ( Default MySQL ) to specific ip. CSF provides pre and post scripts, where pre is executed before and post is executed after applying the rules by the CSF firewall.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |