2

I want to automatically add my eth0 to be part of internal zone in firewalld.

How to achieve this during provisioning?

2

You should edit your /etc/sysconfig/network-scripts/ifcfg-eth0 then append the following line at the bottom of your file:

zone=your_internal_zone

How to set or change a zone for a connection

The zone is stored into the ifcfg of the connection with the ZONE= option. If the option is missing or empty, the default zone set in firewalld is used.

If the connection is controlled by NetworkManager, you can also use nm-connection-editor to change the zone.

Then restart the services:

sudo systemctl restart network.service
sudo systemctl restart firewalld.service
  • 1
    Thanks......GAD3R....this seems working for me also got cleared my doubt. – Rajnish Kumar Soni Mar 8 '17 at 12:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.