The sc_iptables
package installs rules to secure IPv4 and block IPv6 communications. Add-ons must be installed separately using their respective installation file.
-
Download files from this repository directly with git or via https.
git clone https://github.com/cybiohub/sc_iptables.git
-
Deploy the executable of the
install.sh
script.chmod 500 ./sc_iptables/install.sh ./sc_iptables/install.sh
-
Configure the IPv4 rules configuration file.
vim /etc/iptables/40-iptables.conf
Note
Don't forget to set the 'isConfigured' parameter to 'true', otherwise the script will not be apply. This is for security purposes for your environment.
-
Reboot to apply, or manually run the script to perform the check first.
/usr/share/netfilter-persistent/plugins.d/40-iptables
-
Voilà! Enjoy!