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.
/mjt
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org