Skip to contentSkip to conversation

Promisc routing

LARTC Sumit Pandya 4 participants 5 messages Aug 28, 2004 – Aug 30, 2004

lore
Share & tools
lore
#0 lore raw
Quoted 11 lines

From: "Roy" <[email protected]>

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?

Probably you need only a kernel patched with ebtables/br-nf and use
iptables extensions ROUTE, TTL/ttl, TOS/tos, MARK/mark, multiport, mport, etc.
All the best,
-- Sumit

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 8 lines · Sumit Pandya
Quoted 8 lines

From: "Roy" <[email protected]>

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.

Quoted 7 lines
Quoted 3 lines

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

Probably you need only a kernel patched with ebtables/br-nf and use
iptables extensions ROUTE, TTL/ttl, TOS/tos, MARK/mark, multiport, mport, etc.

See http://ebtables.sourceforge.net/examples.html#easy "Making a brouter" and "Using the redirect target".

cheers,
Bart

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#2 lore raw
In reply to Sumit Pandya

Thanks,

but I I already found iptables promic chain patch. Probably it will by a bit simpler to use, and will less space. ( need this for LinuxAP which ROM is only 1MB)

Probably I will install ebtables on my server.

By default linux aready have about as many limitations as windows.

----- Original Message -----
From: "Bart De Schuymer" <[email protected]>
To: "Sumit Pandya" <[email protected]>; <[email protected]>
Cc: <[email protected]>
Sent: Saturday, August 28, 2004 12:12 PM
Subject: Re: [LARTC] RE: Promisc routing

Quoted 27 lines · Sumit Pandya
Quoted 3 lines
Quoted 3 lines

From: '"'Roy'"' <[email protected]>

I want to set interface to promisc mode and do all routing

with iptables.

Quoted 1 line
Quoted 1 line

Is it somehow possible? as I see now kernel do not pass

everything to

Quoted 3 lines
Quoted 3 lines

ipables.

Basicaly I want to ignore ethernet addess and use only ip

for routing.

Quoted 2 lines
Quoted 2 lines

I suppose this may require writting special kernel driver

or it

Quoted 4 lines
Quoted 2 lines

is possible
in other way?

Probably you need only a kernel patched with ebtables/br-nf

and use

Quoted 1 line

iptables extensions ROUTE, TTL/ttl, TOS/tos, MARK/mark,

multiport, mport,

Quoted 1 line

etc.

See http://ebtables.sourceforge.net/examples.html#easy '"'Making a brouter'"' and
'"'Using the redirect target'"'.

Quoted 7 lines

cheers,
Bart

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#3 lore raw
In reply to Sumit Pandya

Still I don't understand what are you trying to do - promisc mode is only useful for bridging/sniffing - just enable ip_forward, and that's all...

Dmitry

Quoted 60 lines · Roy

Thanks,

but I I already found iptables promic chain patch. Probably it will by a bit simpler to use, and will less space. ( need this for LinuxAP which ROM is only 1MB)

Probably I will install ebtables on my server.

By default linux aready have about as many limitations as windows.

----- Original Message -----
From: "Bart De Schuymer" <[email protected]>
To: "Sumit Pandya" <[email protected]>; <[email protected]>
Cc: <[email protected]>
Sent: Saturday, August 28, 2004 12:12 PM
Subject: Re: [LARTC] RE: Promisc routing

Quoted 41 lines · Sumit Pandya
Quoted 3 lines
Quoted 3 lines

From: '"'Roy'"' <[email protected]>

I want to set interface to promisc mode and do all routing

with iptables.

Quoted 1 line
Quoted 1 line

Is it somehow possible? as I see now kernel do not pass

everything to

Quoted 3 lines
Quoted 3 lines

ipables.

Basicaly I want to ignore ethernet addess and use only ip

for routing.

Quoted 1 line
Quoted 1 line

I suppose this may require writting special kernel driver

or it

Quoted 4 lines
Quoted 2 lines

is possible
in other way?

Probably you need only a kernel patched with ebtables/br-nf

and use

Quoted 1 line

iptables extensions ROUTE, TTL/ttl, TOS/tos, MARK/mark,

multiport, mport,

Quoted 1 line

etc.

See http://ebtables.sourceforge.net/examples.html#easy '"'Making a brouter'"' and
'"'Using the redirect target'"'.

cheers,
Bart

Quoted 7 lines
Quoted 3 lines

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#4 lore raw
In reply to Sumit Pandya

I actualy want to make remote wlan sniffing-monitoring device I will use linuxAP and redirect everything it captures to the main server. also I can use this to use ap without even associating with it.

On ethernet it is not so much usefull, because of switches. I dont know it they allow to have same mac on more than one port

----- Original Message -----
From: "Dmitry Golubev" <[email protected]>
To: <[email protected]>
Sent: Monday, August 30, 2004 3:40 PM
Subject: Re: [LARTC] RE: Promisc routing

Quoted 84 lines

Still I don't understand what are you trying to do - promisc mode is only
useful for bridging/sniffing - just enable ip_forward, and that's all...

Dmitry

Quoted 4 lines · Roy

Thanks,

but I I already found iptables promic chain patch. Probably it will by a bit simpler to use, and will less

space.

Quoted 5 lines

( need this for LinuxAP which ROM is only 1MB)

Probably I will install ebtables on my server.

By default linux aready have about as many limitations as

windows.

Quoted 5 lines

----- Original Message -----
From: '"'Bart De Schuymer'"'

<[email protected]>

Quoted 1 line

To: '"'Sumit Pandya'"' <[email protected]>;

<[email protected]>

Quoted 5 lines

Cc: <[email protected]>
Sent: Saturday, August 28, 2004 12:12 PM
Subject: Re: [LARTC] RE: Promisc routing

Quoted 1 line

On Saturday 28 August 2004 09:16, Sumit Pandya

Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line

From: ''"''Roy''"''

<[email protected]>

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

I want to set interface to promisc mode and do

all routing

Quoted 4 lines
Quoted 4 lines

with iptables.

Quoted 1 line
Quoted 1 line

Is it somehow possible? as I see now kernel do

not pass

Quoted 6 lines
Quoted 6 lines

everything to

Quoted 3 lines
Quoted 3 lines

ipables.

Basicaly I want to ignore ethernet addess and

use only ip

Quoted 4 lines
Quoted 4 lines

for routing.

Quoted 1 line
Quoted 1 line

I suppose this may require writting special

kernel driver

Quoted 7 lines
Quoted 7 lines

or it

Quoted 4 lines
Quoted 2 lines

is possible
in other way?

Probably you need only a kernel patched with

ebtables/br-nf

Quoted 4 lines
Quoted 4 lines

and use

Quoted 1 line

iptables extensions ROUTE, TTL/ttl, TOS/tos,

MARK/mark,

Quoted 6 lines
Quoted 6 lines

multiport, mport,

Quoted 1 line

etc.

See http://ebtables.sourceforge.net/examples.html#easy ''"''Making

a

Quoted 10 lines
Quoted 9 lines

brouter''"'' and
''"''Using the redirect target''"''.

cheers,
Bart

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Quoted 7 lines
Quoted 3 lines

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/