FreeKB - firewalld firewall-cmd - IP address masquerade
firewalld firewall-cmd - IP address masquerade

Home > Search


If you are not familar with firewalld and the firewall-cmd, check out our Getting Started article.

The --add-masquerade option can be used to turn on IP address masquerade.

firewall-cmd --add-masquerade --permanent
firewall-cmd --reload

 

Or --remove-masquerade to turn off IP address masquerade.

firewall-cmd --remove-masquerade --permanent
firewall-cmd --reload

 

firewall-cmd --list-all will show if masquerade is on or off.

~]# firewall-cmd --list-all
public
  target: default
  icmp-block-inversion: no
  interfaces: eth0
  sources:
  services:
  ports:
  protocols:
  masquerade: no
  forward-ports:
  sourceports:
  icmp-blocks:
  rich rules:


Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter 0b204 in the box below so that we can be sure you are a human.




Comments