Unix Technical Forum

[OT] PPP interface names

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: ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 10:10 AM
Blumf
 
Posts: n/a
Default [OT] PPP interface names

-----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-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-18-2008, 10:10 AM
Blumf
 
Posts: n/a
Default Re: [OT] PPP interface names

/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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:43 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com