Wi-Fi Firewall via iptables

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:

Common Commands

To clear all existing rules:

iptables -F

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



Para obter informações mais completas sobre otimizações do compilador, consulte nosso aviso de otimização.