# firewall-cmd --zone=external --list-services ssh As you can see, the only service allowed in the external zone is ssh. To make a persistent modification to a zone we must use the --permanent option: # firewall-cmd --permanent --zone=external --add-service=samba. Permanent modifications will need a firewall reload to become effective.
Does Linux have a firewall? The Linux kernel includes the Netfilter subsystem , which is used to manipulate or decide the fate of network traffic headed into or through your server. All modern Linux firewall solutions use this system for packet filtering. To allow traffic from your own system (the localhost ), add the input string by entering the following: sudo iptables -A INPUT -i lo -j ACCEPT. This command configures the firewall to accept traffic for the localhost (lo) interface (-i). From now on, everything that comes from your system will pass through your firewall. s1lE. 97 361 196 385 494 212 384 167 205