This is a discussion on [OT] PPP interface names within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Bit OT as the subject line says, but might be interesting... Back story: ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Bit OT as the subject line says, but might be interesting... Back story: Just got myself a nice little Sony Clie SJ22 + bluetooth card. And of course I want to browse the web with it. After a bit of poking about I manage to get the Bluez linux system running and make a working PPP link between the Clie and my main box. The packets flow and I can browse the web, great. The problem: I use a dial up internet connection, so that too has a PPP interface, traditionally ppp0. I also have a simple firewall script which expects the dial up connection to be on ppp0. But wait! If I connect the Clie to the PC whilst the dial up is down, it gets assigned ppp0, problem. So what do I do? Change the firewall to block by IP addy? Isn't that less secure? I've looked to see if I can force assignment of i/f name through pppd but haven't seen anything, might be looking in the wrong places. Any ideas? Blumf -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/JG5qMid3IcxolsoRArrMAJ91ynjCotW24cfHUfzmvJMdQgDHjA Cggf+E 5wbwOaUoU/nUomXkrTz5vuk= =/xYK -----END PGP SIGNATURE----- |
| ||||
| /dev/rob0 wrote: > In article <bg1qo9$tgs$1@newsg1.svr.pol.co.uk>, Blumf wrote: >> I use a dial up internet connection, so that too has a PPP interface, >> traditionally ppp0. I also have a simple firewall script which expects >> the dial up connection to be on ppp0. But wait! If I connect the Clie to >> the PC whilst the dial up is down, it gets assigned ppp0, problem. >> >> So what do I do? Change the firewall to block by IP addy? Isn't that less > > No, don't do that. Your Clie PPP interface always has the same P-t-P > peer, right? > PEER=clie.ppp.peer.IP > if [ "`ifconfig ppp0 | grep P-t-P:$PEER`" ] ; then > EXTIF=ppp1 > else > EXTIF=ppp0 > fi > Pretty simple. HTH. Thats okay I guess, it requires the firewall script to be run each time a PPP link goes up or down (/etc/ppp/ip-[up|down] I suppose) That 'feels' a bit clunky to me. I'll give it a try though. Thanks Scott |