On Sun, 11 Oct 2009, Michael Tokarev wrote:

> James Andrewartha wrote:
> > On Sat, 10 Oct 2009, Michael Tokarev wrote:
> > 
> > > James Andrewartha wrote:
> > > 
> > > > I want to run a PPPoE client on a server that also runs a PPTP daemon
> > > > (poptop).
> > > > For firewalling reasons, I need to rename the ppp interface used by the
> > > > PPPoE
> > > > connection so it doesn't match ppp+ which is used for matching the PPTP
> > > > connections. However, when using udev to rename the interface, pppd then
> > > > can't
> > > > find the interface any more and dies.
> > > The trivial solution to this, which everyone overlooks,
> > > is to actually specify unit number in ppp instead of
> > > trying to rename the interface.
> > > 
> > > use unit=100 for PPoE and write your firewall rules to refer to ppp100.
> > > That's all.
> > > 
> > > Yes it's not as elegant as giving some nice name like 'pppoe-wan', but
> > > it definitely works.
> > 
> > No, this doesn't work, as I want to firewall all the PPTP interfaces with
> > rules including 'ppp+' which will match ppp100.
> 
> In this case you may consider placing your PPPoE rule before the PPTP ones.
> 
> I understand it's all workarounds, easily doable but maybe not as elegant
> as possible.

In my case the workaround is to use a separate router running OpenWRT to 
manage the PPPoE connection. The fact that workarounds exist doesn't 
change the fact it's a valid bug, albeit one that's very difficult to fix 
given the current architecture of pppd.

-- 
# TRS-80              trs80(a)ucc.gu.uwa.edu.au #/ "Otherwise Bub here will do \
# UCC Wheel Member     http://trs80.ucc.asn.au/ #|  what squirrels do best     |
[ "There's nobody getting rich writing          ]|  -- Collect and hide your   |
[  software that I know of" -- Bill Gates, 1980 ]\  nuts." -- Acid Reflux #231 /




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to