Debian: Enable port in firewall - how it works
To enable a port in the firewall in Linux Debian, only a few clicks are required. We'll tell you exactly how this works in this practical tip.
Release port in Debian firewall - so it'll work
- First open the console as an administrator in Debian Linux.
- To enable ports in the firewall, use the "iptables -A" command.
- An example: If you want to enable UDP port 33333 in the firewall, use the command "iptables -A INPUT -p udp --dport 33333 -j ACCEPT".
- For a TCP port, exchange the "udp" for a "tcp" and confirm with [Enter].
- If you want to release another port, you simply have to exchange the "33333" for another port.
In the next practical tip, learn how to create a backup in Debian.