Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Dec 1997 12:21:50 -0200
From:      Ricardo AG Almeida <ricardag@ag.com.br>
To:        questions@FreeBSD.ORG
Subject:   pppd question
Message-ID:  <3.0.32.19971221122142.00973a70@ptero.ag.com.br>

next in thread | raw e-mail | index | archive | help
Hi,

I own some FreeBSD boxes, and one of them have 3 leased lines connecting
remote machines via ppp. I had set up pppd in /etc/ttys (cuaa2
"/usr/sbin/pppd -detach 57600" dial up on, for instance), and it's working
fine.

But now I have to set up firewall rules, to deny specifics services to some
of these remote machines. I had successfully compiled a new kernel, with
the firewall options, and applied the rules. That also works fine.

The problem i'm facing is that when the machine boots up, the remote boxes
connects into the pppN interfaces in a "first come, first served" basis.
So, the first remote box that connects grabs the ppp0, the second ppp1 and
so on. Clearly, that's a mess with ipfw rules like:

   ipfw add 1001 deny tcp from 10.0.123.0/24 to any 21 via ppp0

since I can't grant that the 10.0.123 net is always connected via ppp0.

Is there any way to force pppd use a specific interface (pppN)? In other
words, I wish that the cuaa2 line always uses the ppp0 interface, the cuaa3
uses the ppp1, in a way that the connect order doesn't matter. Is it possible?



Best regards,

   Ricardo A G Almeida
   AG SISTEMAS
   http://www.ag.com.br



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.32.19971221122142.00973a70>