Iptables Question

Waqas Toor waqasnasirtoor at gmail.com
Fri Jun 1 04:43:40 UTC 2007


Hello Ubuntuers,

i have written a script to setup a firewall for me

the script is
====================================
#! /bin/bash

#blocking every thing

/sbin/iptables -A INPUT -p all -j DROP
/sbin/iptables -A FORWARD -p all -j DROP

#allowing only my MACs

for MAC in `cat ./macclist`
do
        /sbin/iptables -A INPUT -m mac --mac-source $MAC -p all -j ACCEPT
        /sbin/iptables -A INPUT -m mac --mac-source $MAC -j ACCEPT
done



================================

now the problem is that dhcp wont assign the ips to those Macs that i
have allowed from the list ....
do i have to check the OUTPUT chain as welll ???

point out where i am wrong ??

Thanks
-- 
Waqas Toor
member of Ubuntu Pakistani Team
waqas at ubuntu-pk.org
http://www.ubuntu-pk.org

Linux *is* user friendly. It's just selective about who its friends are.
In a world without walls and fences, who needs windows and Gates ?

http://waqastoor.weblog.pk
(Registered Linux user #424056)
ref link http://counter.li.org/




More information about the ubuntu-users mailing list