* MAC Block for the DHCP via iptables
@ 2003-11-17 16:35 Chandana Bandara
2003-11-17 17:02 ` Antony Stone
0 siblings, 1 reply; 5+ messages in thread
From: Chandana Bandara @ 2003-11-17 16:35 UTC (permalink / raw)
To: Netfilter; +Cc: Antony Stone
[-- Attachment #1: Type: text/plain, Size: 440 bytes --]
Hi Mr.Antony & ALL ,
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT DROP.........only with those policies ,
should block the all incomming , outgoing from the machine ?????
This firewall running in my DHCP machne , but when a test with my DHCP clients ..........those machone has taken ips. but this can't happen .....isit ? if i correct where can be tbe problem ?
pls ..............guide me
thank u all
[-- Attachment #2: Type: text/html, Size: 1177 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: MAC Block for the DHCP via iptables
2003-11-17 16:35 MAC Block for the DHCP via iptables Chandana Bandara
@ 2003-11-17 17:02 ` Antony Stone
2003-11-17 17:42 ` Jeffrey Laramie
0 siblings, 1 reply; 5+ messages in thread
From: Antony Stone @ 2003-11-17 17:02 UTC (permalink / raw)
To: Netfilter
On Monday 17 November 2003 4:35 pm, Chandana Bandara wrote:
> Hi Mr.Antony & ALL ,
>
> iptables -P INPUT DROP
> iptables -P FORWARD DROP
> iptables -P OUTPUT DROP.........only with those policies ,
> should block the all incomming , outgoing from the machine ?????
Assuming you have flushed the rules as well, with:
iptables -F INPUT
iptables -F FORWARD
iptables -F OUTPUT
then no IP traffic will be allowed into, out of, or through, the machine.
> This firewall running in my DHCP machne , but when a test with my DHCP
> clients ..........those machone has taken ips. but this can't happen
> .....isit ? if i correct where can be tbe problem ? pls ..............guide
> me
It is important to bear in mind that DHCP is a protocol used for giving IP
addresses to clients which don't currently have them, therefore the traffic
involved in client requests and server responses will not have normal IP
addresses as you might expect, simply because the (client) machines in
question don't have IP addresses until the protocol is complete.
A quick inspection with a protocol analyser such as ethereal will easily show
you what I mean here.
However, once the clients do have IP addresses, the above rules will
certainly prevent them from communicating with, or through, the netfilter box.
If you want to block the ethernet traffic involved in communicating the DHCP
packets in the first place you might like to investigate ebtables at
http://ebtables.sf.net instead of iptables, as this is more appropriate to
this purpose.
Regards,
Antony.
--
Success is a lousy teacher. It seduces smart people into thinking they
can't lose.
- William H Gates III
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: MAC Block for the DHCP via iptables
2003-11-17 17:02 ` Antony Stone
@ 2003-11-17 17:42 ` Jeffrey Laramie
2003-11-17 17:57 ` Antony Stone
0 siblings, 1 reply; 5+ messages in thread
From: Jeffrey Laramie @ 2003-11-17 17:42 UTC (permalink / raw)
To: Netfilter
Antony Stone wrote:
>On Monday 17 November 2003 4:35 pm, Chandana Bandara wrote:
>
>
>
>>Hi Mr.Antony & ALL ,
>>
>>iptables -P INPUT DROP
>>iptables -P FORWARD DROP
>>iptables -P OUTPUT DROP.........only with those policies ,
>>should block the all incomming , outgoing from the machine ?????
>>
>>
>
>Assuming you have flushed the rules as well, with:
>
>iptables -F INPUT
>iptables -F FORWARD
>iptables -F OUTPUT
>
>then no IP traffic will be allowed into, out of, or through, the machine.
>
>
>
Chandana, Antony is making a theoretical point here. Your loopback interface uses the OUTPUT chain and dropping every OUTPUT packet could cause some unexpected problems. I wouldn't recommend doing this. If you ever really wanted to block *all* traffic just unplug the network card(s). It's a lot easier and 100% secure. I hope Mr. Curleybaces reads this too or he could be in for a big surprise :-)
Jeff
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: MAC Block for the DHCP via iptables
2003-11-17 17:42 ` Jeffrey Laramie
@ 2003-11-17 17:57 ` Antony Stone
2003-11-17 18:17 ` Jeffrey Laramie
0 siblings, 1 reply; 5+ messages in thread
From: Antony Stone @ 2003-11-17 17:57 UTC (permalink / raw)
To: Netfilter
On Monday 17 November 2003 5:42 pm, Jeffrey Laramie wrote:
> Antony Stone wrote:
> >
> >iptables -P INPUT DROP
> >iptables -P FORWARD DROP
> >iptables -P OUTPUT DROP
> >
> >iptables -F INPUT
> >iptables -F FORWARD
> >iptables -F OUTPUT
> >
> >then no IP traffic will be allowed into, out of, or through, the machine.
>
> Chandana, Antony is making a theoretical point here. Your loopback
> interface uses the OUTPUT chain and dropping every OUTPUT packet could
> cause some unexpected problems. I wouldn't recommend doing this. If you
> ever really wanted to block *all* traffic just unplug the network card(s).
Very well said, Jeffrey :)
Netfilter rules should never be implemented without understanding what they
do, and "blocking all traffic" is an unlikely condition for a working
machine. Apart from anything else, what use is a machine that can't talk or
listen :) ?
Antony.
--
Because it completely breaks the way people normally read things.
Why is top-posting bad?
It means writing your reply above whatever you're replying to.
What does top-post mean?
Please don't top-post in email replies.
Please reply to the list;
please don't CC me.
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: MAC Block for the DHCP via iptables
2003-11-17 17:57 ` Antony Stone
@ 2003-11-17 18:17 ` Jeffrey Laramie
0 siblings, 0 replies; 5+ messages in thread
From: Jeffrey Laramie @ 2003-11-17 18:17 UTC (permalink / raw)
To: Netfilter
Antony Stone wrote:
>On Monday 17 November 2003 5:42 pm, Jeffrey Laramie wrote:
>
>
>
>>Antony Stone wrote:
>>
>>
>>>iptables -P INPUT DROP
>>>iptables -P FORWARD DROP
>>>iptables -P OUTPUT DROP
>>>
>>>iptables -F INPUT
>>>iptables -F FORWARD
>>>iptables -F OUTPUT
>>>
>>>then no IP traffic will be allowed into, out of, or through, the machine.
>>>
>>>
>>Chandana, Antony is making a theoretical point here. Your loopback
>>interface uses the OUTPUT chain and dropping every OUTPUT packet could
>>cause some unexpected problems. I wouldn't recommend doing this. If you
>>ever really wanted to block *all* traffic just unplug the network card(s).
>>
>>
>
>Very well said, Jeffrey :)
>
>Netfilter rules should never be implemented without understanding what they
>do, and "blocking all traffic" is an unlikely condition for a working
>machine. Apart from anything else, what use is a machine that can't talk or
>listen :) ?
>
>
On this side of the pond we call them "paper weights" :p
Jeff
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-11-17 18:17 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-17 16:35 MAC Block for the DHCP via iptables Chandana Bandara
2003-11-17 17:02 ` Antony Stone
2003-11-17 17:42 ` Jeffrey Laramie
2003-11-17 17:57 ` Antony Stone
2003-11-17 18:17 ` Jeffrey Laramie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox