All of lore.kernel.org
 help / color / mirror / Atom feed
* DHCP and conntrack?
@ 2002-06-07 17:00 James Garrison
  2002-06-07 17:38 ` sshore
  0 siblings, 1 reply; 4+ messages in thread
From: James Garrison @ 2002-06-07 17:00 UTC (permalink / raw)
  To: netfilter

Does connection tracking understand incoming DHCP responses as
being related to recent outgoing broadcast DHCP requests?  In other
words,  if I configure iptables to allow outgoing DHCP broadcast
requests, do I have to explicitly open up a hole for the returning
response, or will conntrack do it for me with RELATED?

-- 
James Garrison                                Athens Group, Inc.
mailto:jhg@athensgroup.com                    5608 Parkcrest Dr
http://www.athensgroup.com                    Austin, TX 78731
PGP: RSA=0x92E90A3B DH/DSS=0x498D331C         (512) 345-0600 x150




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

* Re: DHCP and conntrack?
  2002-06-07 17:00 DHCP and conntrack? James Garrison
@ 2002-06-07 17:38 ` sshore
  2002-06-07 17:43   ` James Garrison
  2002-06-07 19:36   ` Ramin Alidousti
  0 siblings, 2 replies; 4+ messages in thread
From: sshore @ 2002-06-07 17:38 UTC (permalink / raw)
  To: James Garrison; +Cc: netfilter

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

On Fri, Jun 07, 2002 at 12:00:19PM -0500, James Garrison wrote:
> Does connection tracking understand incoming DHCP responses as
> being related to recent outgoing broadcast DHCP requests?  In other
> words,  if I configure iptables to allow outgoing DHCP broadcast
> requests, do I have to explicitly open up a hole for the returning
> response, or will conntrack do it for me with RELATED?

Since dhcp requests go out on port 68, and responses come back on port 67, 
connection tracking will not relate them. you'll need to explicitly open 
up a hole for the returning response.

-- 
Scottie Shore <sshore@escape.ca>
"You haven't gamed until you've circle-strafed while barrel rolling."
  - Blair on the Logitech Cyberman II

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

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

* Re: DHCP and conntrack?
  2002-06-07 17:38 ` sshore
@ 2002-06-07 17:43   ` James Garrison
  2002-06-07 19:36   ` Ramin Alidousti
  1 sibling, 0 replies; 4+ messages in thread
From: James Garrison @ 2002-06-07 17:43 UTC (permalink / raw)
  Cc: netfilter

So what you're saying is that there's no "ip_conntrack_dhcp" function
builtin, analogous to ip_conntrack_ftp, that would maintain the
relationship in spite of the different port numbers, right?

sshore@escape.ca wrote:
> Since dhcp requests go out on port 68, and responses come back on port 67, 
> connection tracking will not relate them. you'll need to explicitly open 
> up a hole for the returning response.

-- 
James Garrison                                Athens Group, Inc.
mailto:jhg@athensgroup.com                    5608 Parkcrest Dr
http://www.athensgroup.com                    Austin, TX 78731
PGP: RSA=0x92E90A3B DH/DSS=0x498D331C         (512) 345-0600 x150




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

* Re: DHCP and conntrack?
  2002-06-07 17:38 ` sshore
  2002-06-07 17:43   ` James Garrison
@ 2002-06-07 19:36   ` Ramin Alidousti
  1 sibling, 0 replies; 4+ messages in thread
From: Ramin Alidousti @ 2002-06-07 19:36 UTC (permalink / raw)
  To: sshore; +Cc: James Garrison, netfilter

On Fri, Jun 07, 2002 at 12:38:35PM -0500, sshore@escape.ca wrote:

> On Fri, Jun 07, 2002 at 12:00:19PM -0500, James Garrison wrote:
> > Does connection tracking understand incoming DHCP responses as
> > being related to recent outgoing broadcast DHCP requests?  In other
> > words,  if I configure iptables to allow outgoing DHCP broadcast
> > requests, do I have to explicitly open up a hole for the returning
> > response, or will conntrack do it for me with RELATED?
> 
> Since dhcp requests go out on port 68, and responses come back on port 67, 
> connection tracking will not relate them.

It's like you say, http traffic is not being tracked because the
outgoing packets go out on port 8 and the incoming packets come in
on port whatever like 1025. So, no, that's not the reason. The
reason could be this:

15:26:43.933324 vlan6 B 0.0.0.0.bootpc > 255.255.255.255.bootps: xid:0xdefebd43
15:26:43.981708 vlan6 > 10.0.6.1.bootps > 255.255.255.255.bootpc: xid:0xdefebd43

As you can see there is no "regular" src.port/dst.port relationship
here for the general conntrack module to catch this.

I hope that some guru someday will add this intelligence to the
code :-)

Ramin

> you'll need to explicitly open 
> up a hole for the returning response.
> 
> -- 
> Scottie Shore <sshore@escape.ca>
> "You haven't gamed until you've circle-strafed while barrel rolling."
>   - Blair on the Logitech Cyberman II




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

end of thread, other threads:[~2002-06-07 19:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-07 17:00 DHCP and conntrack? James Garrison
2002-06-07 17:38 ` sshore
2002-06-07 17:43   ` James Garrison
2002-06-07 19:36   ` Ramin Alidousti

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.