[ previous ] [ next ] [ threads ]
 
 From:  Twig <twig at gwi dot net>
 To:  m0n0wall at lists dot m0n0 dot ch
 Subject:  PPPoE Half-Bridging
 Date:  Fri, 12 Nov 2004 19:49:59 -0500
Starting work trying to get PPPoE half bridging working.  Given 
netgraph is already used for PPPoE, that seems like the logical tool.  
Unfortunatly I've not been able to wrap my head around netgraph 
completely yet.

I've got ngctl loaded on my test box and that functions.  I've got the 
following output:

$ /usr/sbin/ngctl list
There are 11 total nodes:
   Name: ngctl4016    Type: socket  ID: 00000080   Num hooks: 0
   Name: <unnamed>    Type: socket  ID: 0000007f   Num hooks: 0
   Name: <unnamed>    Type: pppoe   ID: 0000000b   Num hooks: 2
   Name: <unnamed>    Type: vjc     ID: 00000009   Num hooks: 4
   Name: <unnamed>    Type: bpf     ID: 00000008   Num hooks: 3
   Name: mpd983-pppoe Type: ppp     ID: 00000007   Num hooks: 7
   Name: ng0          Type: iface   ID: 00000006   Num hooks: 1
   Name: <unnamed>    Type: socket  ID: 00000005   Num hooks: 2
   Name: ep0          Type: ether   ID: 00000003   Num hooks: 0
   Name: xl1          Type: ether   ID: 00000002   Num hooks: 1
   Name: xl0          Type: ether   ID: 00000001   Num hooks: 0

$ /usr/sbin/ngctl show mpd983-pppoe:
   Name: mpd983-pppoe    Type: ppp      ID: 00000007   Num hooks: 6
   Local hook    Peer name  Peer type   Peer ID   Peer hook
   ----------    ---------  ---------   -------   ---------
   vjc_vjip      <unnamed>  vjc         00000009  vjip
   vjc_vjuncomp  <unnamed>  vjc         00000009  vjuncomp
   vjc_vjcomp    <unnamed>  vjc         00000009  vjcomp
   vjc_ip        <unnamed>  vjc         00000009  ip
   inet          <unnamed>  bpf         00000008  ppp
   bypass        <unnamed>  socket      00000005  bypass

ep0 is my opt1 interface, xl1 my WAN... if I'm reading the netgraph 
info correctly there should be a simple syntax to connect the inet hook 
of ep0 to the inet hook of mpd938-pppoe and everything should just 
'work.'

Does this sound like I'm on the right path?

Joshua Coombs