Skip to contentSkip to conversation

firewalling PPPOE stream without terminating it

DISCUSSION Chris Friesen 2 participants 4 messages Sep 12, 2003 – Sep 15, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

I've got a PPPOE DSL line coming into my house, and I and my roommates each terminate our own connection and get our own dynamic IP address.

With the recent bunch of viruses/worms, a couple of us were thinking about setting up a box as a transparent firewalling bridge. The only tricky bit is that we don't want to terminate the PPPOE connection at that box, since that would then force us to do NAT/ipmasq.

Does anyone know of any way to filter the contents of a tunnelled packet (PPPOE in particular) using standard tools like ebtables/iptables?

The other possibility I had considered was a netfilter module that tied into the ebtables hooks and knew how to look inside the PPPOE packet, but then I wouldn't get the userspace interface from ebtables/iptables.

Chris

Signature · 4 lines
Chris Friesen                    | MailStop: 043/33/F10
Nortel Networks                  | work: (613) 765-0557
3500 Carling Avenue              | fax:  (613) 765-2986
Nepean, ON K2H 8E9 Canada        | email: [email protected]
#1 lore raw

Hi Chris!

Quoted 2 lines · Chris Friesen

I've got a PPPOE DSL line coming into my house, and I and my roommates each terminate our own connection and get our own dynamic IP address.

So how is this question related to either
1) network development ([email protected])
2) linux-kernel development ([email protected])

I would like to ask you this question at an apropriate mailinglist ([email protected], or the lartc mailinglist [since the assumption that you would need to do NAT in case you terminate the two dsl lines is invalid an can be solved using policy routing + connmark]).

Quoted 1 line

Chris Friesen | MailStop: 043/33/F10

Signature · 3 lines
- Harald Welte <[email protected]>               http://www.gnumonks.org/
============================================================================
Programming is like sex: One mistake and you have to support it your lifetime
#2 lore raw
Quoted 5 lines · Harald Welte

So how is this question related to either 1) network development ([email protected])
2) linux-kernel development ([email protected])

I would like to ask you this question at an apropriate mailinglist ([email protected], or the lartc mailinglist

Sorry, my bad.

Thread continued on other list as suggested.

Chris

Signature · 4 lines
Chris Friesen                    | MailStop: 043/33/F10
Nortel Networks                  | work: (613) 765-0557
3500 Carling Avenue              | fax:  (613) 765-2986
Nepean, ON K2H 8E9 Canada        | email: [email protected]
#3 lore raw
In reply to Harald Welte

Harald Welte wrote:

For those just joining, I'm trying to put a box between my DSL modem and my ethernet switch to enable me to filter up to 5 PPPoE streams. Harald suggested I move the discussion to the proper lists.

Quoted 4 lines

I would like to ask you this question at an apropriate mailinglist ([email protected], or the lartc mailinglist [since the assumption that you would need to do NAT in case you terminate the two dsl lines is invalid an can be solved using policy routing + connmark]).

Okay, so you're suggesting terminating all the connections on the new box and then using policy routing to forward the packets on to the appropriate address(es) on the internal side? And since the PPPoE headers have been removed, I could then use standard iptables to do the filtering?

Chris

Signature · 8 lines
Chris Friesen                    | MailStop: 043/33/F10
Nortel Networks                  | work: (613) 765-0557
3500 Carling Avenue              | fax:  (613) 765-2986
Nepean, ON K2H 8E9 Canada        | email: [email protected]

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