I am running Fedora 19 x86_64. I performed the following:
# firewall-cmd --get-active-zones public interfaces: p7p1 p2p1 # firewall-cmd --permanent --zone=internal --change-interface=p7p1 # firewall-cmd --get-active-zones public interfaces: p7p1 p2p1 # firewall-cmd --zone=internal --change-interface=p7p1 # firewall-cmd --get-active-zones internal interfaces: p7p1 public interfaces: p2p1
After rebooting the machine, my zones are back to how it was before.
# firewall-cmd --get-active-zones public interfaces: p7p1 p2p1
How do I make my interface permanently assigned to the internal zone via command line?
Regards, j
# firewall-cmd --get-active-zones public interfaces: p7p1 p2p1 # firewall-cmd --permanent --zone=internal --change-interface=p7p1
The man page doesn't refer to --change be acceptable with --permanent
Just tested this on my laptop ...
firewall-cmd --permanent --zone=internal --add-interface=wlp3s0 systemctl restart firewalld.service
The man page for firewall-cmd states that actions with the --permanent argument are not applied immediately but rather only after a service restart or reboot.
After the above firewall-cmd --get-active-zones showed my wireless in the expected zone.
On Wed, Jul 10, 2013 at 11:51 AM, James Hogarth james.hogarth@gmail.comwrote:
# firewall-cmd --get-active-zones
public interfaces: p7p1 p2p1 # firewall-cmd --permanent --zone=internal --change-interface=p7p1
The man page doesn't refer to --change be acceptable with --permanent
Just tested this on my laptop ...
firewall-cmd --permanent --zone=internal --add-interface=wlp3s0 systemctl restart firewalld.service
The man page for firewall-cmd states that actions with the --permanent argument are not applied immediately but rather only after a service restart or reboot.
After the above firewall-cmd --get-active-zones showed my wireless in the expected zone.
-- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Thank you. That worked.
regards, j