First of Creat new file
touch filename.sh
and edit follwing Steps
Use the following command to bind the mac address with IP address;
/sbin/iptables -A INPUT -i eth0 -s 192.168.1.1 -p all -m mac --mac-source ff:ff:ff:ff:ff:ff -j
ACCEPT
At the end of all mac and IP enteries insert the following line in your script file;
/sbin/iptables -A INPUT -i eth0 -j DROP
To run script just type "sh /filename.sh"
-or-
if you want to run this script at startup use this command once;
echo "sh /filename.sh" >> /etc/rc.local
MAC Allow With Bind Ip
MAC Allow With Bind Ip
M.Zeeshan
Salam.
You can use the script made by Farrukh Bhai, it is much easire.
I have personally used it, it works great.
You can use the script made by Farrukh Bhai, it is much easire.
I have personally used it, it works great.
Kind Regards
Mudasir Mirza (RHCE)
(+971)55-1045754
http://www.crystalnetworks.org
http://www.diglinux.com
Mudasir Mirza (RHCE)
(+971)55-1045754
http://www.crystalnetworks.org
http://www.diglinux.com