ginger
ginger copied to clipboard
firewall zones configuration for the network interfaces
Listing the firewall zones and give end user option of configuring the firewall zone to the network interface would be good to have feature.
Zone management:
Also, a new concept of zone appears : all network interfaces can be located in the same default zone or divided into different ones according to the levels of trust defined.
To get the default zone, type:
firewall-cmd --get-default-zone
public
To get the list of zones where you’ve got network interfaces assigned to, type:
firewall-cmd --get-active-zones
public interfaces: eth0
To get the list of all the available zones, type:
firewall-cmd --get-zones
block dmz drop external home internal public trusted work
To get all the details about the public zone, type:
firewall-cmd --zone=public --list-all
public (default, active) interfaces: eth0 sources: services: dhcpv6-client ssh ports: masquerade: no forward-ports: icmp-blocks: rich rules:
At first glance firewall-cmd isnt't available for Ubuntu, so this feature would be fedora/rhel only
Make sure to implement the is_feature_available API properly. Actually we should've done that with the cfginterfaces model already ... Em 03/01/2016 8:42 AM, "Chandra Shekhar Reddy" [email protected] escreveu:
Listing the firewall zones and give end user option of configuring the firewall zone to the network interface would be good to have feature
Zone management:
Also, a new concept of zone appears : all network interfaces can be located in the same default zone or divided into different ones according to the levels of trust defined
To get the default zone, type: firewall-cmd --get-default-zone
public
To get the list of zones where you’ve got network interfaces assigned to, type: firewall-cmd --get-active-zones
public interfaces: eth0
To get the list of all the available zones, type: firewall-cmd --get-zones
block dmz drop external home internal public trusted work
To get all the details about the public zone, type: firewall-cmd --zone=public --list-all
public (default, active) interfaces: eth0 sources: services: dhcpv6-client ssh ports: masquerade: no forward-ports: icmp-blocks: rich rules:
— Reply to this email directly or view it on GitHub https://github.com/kimchi-project/ginger/issues/107.
I'll have a crack at this when I have the chance.
If anyone is in a rush for this let me know and I'll reassign the issue