[--permanent] [--zone=zone] [--permanent] [--policy=policy] --add-forward-port=port=portid[-portid]:proto=protocol[:toport=portid[-portid]][:toaddr=address[/mask]] [--timeout=timeval] Add the IPv4 forward port. This option can be specified multiple times. If a timeout is suppl...
[--permanent] [--zone=zone] --add-forward-port=port=portid[-portid]:proto=protocol[:toport=portid[-portid]][:toaddr=address[/mask]] [--timeout=seconds] Add the IPv4 forward port for zone. If zone is omitted, default zone will be used. This option can be specified multiple times...
herong$ sudo firewall-cmd --zone=public --add-port=8080/tcp herong$ sudo firewall-cmd --runtime-to-permanent 6. Add a new rule to open all ports for a given IP address. herong$ sudo firewall-cmd --zone=public --add-source=192.168.1.11 herong$ sudo firewall-cmd --runtime-to-per...
Add conduit through firewall for incoming connections. (Configuration mode.) conduit global_ip port[-port] protocol ip_address [netmask] global_ip The IP address from the global pool to associate this conduit with. port Destination port number into which connections are permitted on the ...
3.2. Open a Port Using firewall-cmd To open a port in the firewall, we can use the firewall-cmd command with the –add-port option. Let’s open the TCP port 21 in the public zone using the firewall-cmd command: $ firewall-cmd --permanent --zone=public --add-port=21/tcp succe...
[--permanent] [--zone=zone] [--permanent] [--policy=policy] --add-forward-port=port=portid[-portid]:proto=protocol[:toport=portid[-portid]][:toaddr=address[/mask]] [--timeout=timeval] Add the IPv4 forward port. This option can be specified multiple times. If a timeout is suppl...