View Single Post
  #1   (View Single Post)  
Old 3rd June 2008
radcapricorn radcapricorn is offline
Port Guard
 
Join Date: Jun 2008
Posts: 15
Default pppd on FreeBSD 7.0-RELEASE

Hi to all!

I have a trouble setting up pppd connection on FreeBSD 7.0-RELEASE.
I'm using external USR 56k Faxmodem connected to COM1 (/dev/cuad0). While user-ppp works alright and I can connect to my ISP (both automatically and in interactive mode) and use its services, pppd fails posting this into log:

// chat script logs cut out...
Serial connection established.
Connected: ppp0 <--> cuad0
ioctl(PPPIOCSFLAGS): Inappropriate ioctl for device
Exit.

So it not just breaks the connection, but the daemon itself exits.

I've set up dial-on-demand (and it actually does dial and all, just drops out at the moment the modems had their handshake and PAP/CHAP authentication was about to start).

Setting/resetting setuid bit for pppd doesn't make any difference, as does not running as 'pure' root or user su'd to root.

Can anybody give some clues on how to manage this?

(initially I have posted this at bsd forums org but for obvious reasons I decided to move here :-) )

Thanks in advance for any advice.
Reply With Quote