Skip to contentSkip to conversation

Filtering PPPoE

DISCUSSION Aleksandar Milivojevic 2 participants 2 messages Aug 8, 2006 – Aug 9, 2006 netfilter

lore
Share & tools
lore
#0 lore raw

Hi,

I'm attempting to place transparent firewall (on a Linux host configured as bridge) between ADSL modem and some servers. The servers and ADSL modem "speak" PPPoE.

Simplified diagram looks like this:

  +------+     +--------+     +---------+
  |ADSL  |     |bridge/ |     |server(s)|
  |modem |-----|firewall|-----|         |
  +------+     +--------+     +---------+

The problem I have is that Netfilter does not see PPPoE packets on the bridge. Similar thing on the server host(s), Netfilter (if server is Linux host) doesn't see PPPoE, it just sees IP packets as they come out of virtual PPP interface. I can't place the firewall onto the servers, and the servers must have external IP addresses assigned to them. I can't change the toplogy and move PPPoE endpoint infront of the servers (and/or use NAT).

Is there any way of filtering IP traffic that is encapsulated inside PPPoE on the bridge host? I found some HOWTOs describing how to do it with OpenBSD based bridge. However, I'm unfamiliar with OpenBSD, and would like to set this up using Linux solution if possible.

Signature · 2 lines
See Ya' later, alligator!
http://www.8-P.ca/
#1 lore raw
Quoted 8 lines · Aleksandar Milivojevic

Hi,

I'm attempting to place transparent firewall (on a Linux host configured as bridge) between ADSL modem and some servers. The servers and ADSL modem "speak" PPPoE.

Simplified diagram looks like this:

Quoted 7 lines
  +------+     +--------+     +---------+
  |ADSL  |     |bridge/ |     |server(s)|
  |modem |-----|firewall|-----|         |
  +------+     +--------+     +---------+

The problem I have is that Netfilter does not see PPPoE packets on the bridge.

Did you switch ADSL modem to bridge mode?

network topology
`````````````````

     ----------------            ------------                   LAN
   (                  )  Phone  |            |                Machines
  (  Big Bad Internet  )--------| ADSL Modem |
   (                  )   Line  |            |    100-Base-T
     ----------------            ------------       Switch     -----
                                       |               -------|     |
                             Public IP | X_WORLD      |        -----
                                       |              |        -----
                                 -------------        |     --|     |
                                |  ppp0/eth2  |      ---   |   -----
                                |             |     | \ |--    -----
           X_LOCAL2       <-----|eth1     eth0|-----|/ /|-----|     |
           192.168.2.0/24       |             |     | \ |--    -----
           100-Base-T           |  Firewall   |      ---   |   -----
           (spare localnet)      -------------        |     --|     |
                                                      |        -----
                                                      |        -----
                                                       -------|     |
                                               X_LOCAL         -----
                                               192.168.1.0/24

Though I don't port-forward to DMZ servers -- that's the spare localnet that I've not got around to using.

Grant.