firewall-cmd rules conversion
Posted: 2015/12/08 17:31:11
Hi; sorry for my bad english (spanish and french help are welcome!)
On my school we have and old Centos 5.8 with a system to prevent not allowed to the wireless, wich is dhcp server. This system was created by the old manager, never more working here. It creates a list of fixed ip associated to an mac-adress; if no match, no connection! Great job! This system creates a lot of iptables rules like this one, using an script:
$IPTABLES -A INPUT -m mac --mac-source c4:17:fe:b3:ae:75 -s 192.168.2.247 -i $ETH_WIFI -j ACCEPT
Question1: how to recreate this rules with firewall-cmd?
And if possible, is there another system to make te same control?
Thanks a lot.
PS: I am not an expert, as you can suppose. Thank you.
On my school we have and old Centos 5.8 with a system to prevent not allowed to the wireless, wich is dhcp server. This system was created by the old manager, never more working here. It creates a list of fixed ip associated to an mac-adress; if no match, no connection! Great job! This system creates a lot of iptables rules like this one, using an script:
$IPTABLES -A INPUT -m mac --mac-source c4:17:fe:b3:ae:75 -s 192.168.2.247 -i $ETH_WIFI -j ACCEPT
Question1: how to recreate this rules with firewall-cmd?
And if possible, is there another system to make te same control?
Thanks a lot.
PS: I am not an expert, as you can suppose. Thank you.