All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Promisc routing
@ 2004-08-27 19:32 Roy
  2004-08-27 20:01 ` Raúl Alexis Betancort Santana
  2004-08-28  0:11 ` Andrew Ross
  0 siblings, 2 replies; 3+ messages in thread
From: Roy @ 2004-08-27 19:32 UTC (permalink / raw)
  To: lartc

HI,

I want to set interface to promisc mode and do all routing with iptables.
Is it somehow possible? as I see now kernel do not pass everything to
ipables.

Basicaly I want to ignore ethernet addess and use only ip for routing.

I suppose this may require writting special kernel driver or it is possible
in other way?

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

* Re: [LARTC] Promisc routing
  2004-08-27 19:32 [LARTC] Promisc routing Roy
@ 2004-08-27 20:01 ` Raúl Alexis Betancort Santana
  2004-08-28  0:11 ` Andrew Ross
  1 sibling, 0 replies; 3+ messages in thread
From: Raúl Alexis Betancort Santana @ 2004-08-27 20:01 UTC (permalink / raw)
  To: lartc

El Viernes 27 Agosto 2004 20:32, Roy escribió:
> HI,
>
> I want to set interface to promisc mode and do all routing with iptables.
> Is it somehow possible? as I see now kernel do not pass everything to
> ipables.
>
> Basicaly I want to ignore ethernet addess and use only ip for routing.
>
> I suppose this may require writting special kernel driver or it is possible
> in other way?

What are you trying to do?, what you have said is not posible, first because 
TCP/IP are not physical-layer protocols, that means that speaking about 
ethernet cards, you could not ignore ethernet adress.
You have to take into account on with ISO Network layer level you are 
speaking.
By the way .. what do you want to do?

Best regards
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

* Re: [LARTC] Promisc routing
  2004-08-27 19:32 [LARTC] Promisc routing Roy
  2004-08-27 20:01 ` Raúl Alexis Betancort Santana
@ 2004-08-28  0:11 ` Andrew Ross
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Ross @ 2004-08-28  0:11 UTC (permalink / raw)
  To: lartc

On Sat, 2004-08-28 at 05:32, Roy wrote:
> I want to set interface to promisc mode and do all routing with iptables.

You don't need to set an interface in promisc mode to do routing. You
need the clients to have you configured as a router (easily acheived via
dhcp).

Routing isn't actually done with netfilter, although the routed packets
are available for filtering.

> Is it somehow possible?

Is it possible to use netfilter to make a routing decision? I suppose it
_might_ be (using the MARK target and iproute2), but it would be overly
convulted, esp compared to doing it "the normal way".

> I see now kernel do not pass everything to ipables.

I think you'll find that netfilter _does_ see all packets it's supposed
to see - it's just a matter of what chains they pass through.

Routed packets will pass through the FORWARD chains. Of course, this
won't happen unless you have configured your machine as a router, and
you have clients actually using it as a router (see above).

> Basicaly I want to ignore ethernet addess and use only ip for routing.

Um, that's what routing is (at least, in my understanding). You're
talking about a Layer 3 router, which makes routing decisions based on
IP addreses/subnets.

Cheers

Andrew

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

end of thread, other threads:[~2004-08-28  0:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-27 19:32 [LARTC] Promisc routing Roy
2004-08-27 20:01 ` Raúl Alexis Betancort Santana
2004-08-28  0:11 ` Andrew Ross

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.