All of lore.kernel.org
 help / color / mirror / Atom feed
* DHCP /MAC
@ 2003-11-08 13:05 kannel sms
  2003-11-08 14:05 ` Antony Stone
  2003-11-08 14:44 ` Jeffrey Laramie
  0 siblings, 2 replies; 9+ messages in thread
From: kannel sms @ 2003-11-08 13:05 UTC (permalink / raw)
  To: netfilter


As u said i did all , but it will not reach my
requirement, because when i added that rule with a
specific MAC address , according to ur mail it will
allow  to get all the dhcp facilities . 
But other machines also doing samething . so seems to
be somewhere has a small problem , 

i will give u my tabless info

iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT DROP
#######################################################################################################################
iptables -A INPUT -i lo -m state --state NEW -j ACCEPT
iptables -A OUTPUT -o lo -m state --state NEW -j
ACCEPT

iptables -A INPUT -m state --state RELATED,ESTABLISHED
-j ACCEPT
iptables -A OUTPUT -m state --state
RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -m state --state
RELATED,ESTABLISHED -j ACCEPT
iptables -A OUTPUT -m state --state NEW -j ACCEPT
####################################################################################################################
iptables -N MACcheck
iptables -A MACcheck -m mac --mac-source
00.50.BA.50.36.25 -j ACCEPT
iptables -A MACcheck -j DROP

iptables -I INPUT -i eth0 -j MACcheck
######################################################################################################################
iptables -A INPUT -p udp -s 192.168.30.0/24 --dport 67
-i eth0 -m state --state NEW -m mac --mac-source
00:50:BA:50:36:25 -j
ACCEPT
iptables -A INPUT -p tcp -s 192.168.30.0/24 --dport 67
-i eth0 -m state --state NEW -m mac --mac-source
00:50:BA:50:36:25 -j
ACCEPT

iptables -A INPUT -p udp -s 192.168.30.0/24 --dport 68
-i eth0 -m state --state NEW -m mac --mac-source
00:50:BA:50:36:25 -j
ACCEPT
iptables -A INPUT -p tcp -s 192.168.30.0/24 --dport 68
-i eth0 -m state --state NEW -m mac --mac-source
00:50:BA:50:36:25 -j
ACCEPT


__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree


^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <20031108114309.82218.qmail@web60203.mail.yahoo.com>]
[parent not found: <20031108111214.61915.qmail@web60201.mail.yahoo.com>]
* DHCP /MAC
@ 2003-11-08 10:42 kannel sms
  2003-11-08 10:59 ` Antony Stone
  0 siblings, 1 reply; 9+ messages in thread
From: kannel sms @ 2003-11-08 10:42 UTC (permalink / raw)
  To: netfilter

[-- Attachment #1: Type: text/plain, Size: 2156 bytes --]

Dear Friends , 
 
i think u all can help me .
I have DHCP server . That is allow for dialup/Cable modem users . So that users use that certain modems . That all modems have MAC adderesses . Those modems providing by us . 
So those valid modems has known MAC addresses . If unknow modem connected to the modem that will be restyrict by the firewall .
 
Actually i want  to block unknown MACs and allow the other all known MACs .
 
I have did some configurations in iptables but it doesn't work . Currently i'm testing this concept in a LAN with 5 PCs . 
 

######################################################################################################################iptables -P INPUT DROPiptables -P FORWARD DROPiptables -P OUTPUT DROP#######################################################################################################################iptables -A INPUT -i lo -m state --state NEW -j ACCEPTiptables -A OUTPUT -o lo -m state --state NEW -j ACCEPTiptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPTiptables -A OUTPUT -m state --state RELATED,ESTABLISHED -j ACCEPTiptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPTiptables -A OUTPUT -m state --state NEW -j ACCEPT######################################################################################################################iptables -A INPUT -p udp -s 192.168.30.0/24 --dport 67 -i ! eth0 -m state --state NEW -m mac --mac-source 00:50:BA:50:36:25 -j ACCEPTiptables -A INPUT -p tcp -s 192.168.30.0/24 --dport 67 -i ! eth0 -m state --stat
 e NEW -m
 mac --mac-source 00:50:BA:50:36:25 -j ACCEPTiptables -A INPUT -p udp -s 192.168.30.0/24 --dport 68 -i ! eth0 -m state --state NEW -m mac --mac-source 00:50:BA:50:36:25 -j ACCEPTiptables -A INPUT -p tcp -s 192.168.30.0/24 --dport 68 -i ! eth0 -m state --state NEW -m mac --mac-source 00:50:BA:50:36:25 -j ACCEPT#####################################################################################################################pls help me .............where can be the problem 

 

 

thanx

 
 


---------------------------------
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard

[-- Attachment #2: Type: text/html, Size: 2434 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2003-11-08 14:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-08 13:05 DHCP /MAC kannel sms
2003-11-08 14:05 ` Antony Stone
2003-11-08 14:44 ` Jeffrey Laramie
     [not found] <20031108114309.82218.qmail@web60203.mail.yahoo.com>
2003-11-08 12:14 ` Antony Stone
     [not found] <20031108111214.61915.qmail@web60201.mail.yahoo.com>
2003-11-08 11:29 ` Antony Stone
2003-11-08 12:09   ` Rob Sterenborg
2003-11-08 13:14     ` kannel sms
  -- strict thread matches above, loose matches on Subject: below --
2003-11-08 10:42 kannel sms
2003-11-08 10:59 ` Antony Stone

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.