The platform supports iptables firewall. This service is automatically started at boot time and loads a set of default rules from /usr/share/iptables-settings/iptables.rules
The rules can be changed and saved to the configuration file via the commands shown below:
To clear all existing rules:
To drop all incoming traffic:
iptables -P INPUT DROP.
To allow incoming SSH connection:
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
To save the current set of rules:
iptables-save > /usr/share/iptables-settings/iptables.rules.
|Note: Saved rules will autoload during next boot|
To stop using iptables:
systemctl disable iptables