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
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.
Has no one ever met such behaviour? I assume this has something to do with (user) rights, as the only code piece where PPPCSIOFLAGS are tested for if_ppp ioctl in system source issues a priv_check() call there (/usr/src/sys/dev/if_ppp.c). But in that case I don't get it why I get "inappropriate ioctl" message and not the message that has something to do with priviledges.
Please, if anyone has any guesses/opinions I'd be thankful to hear.
PS. Can I rebuild if_ppp only without rebuilding kernel/modules/world and if I can, how?
|Thread||Thread Starter||Forum||Replies||Last Post|
|PPPD issue.||Tom||NetBSD General||4||26th August 2009 03:59 PM|
|FreeBSD ACPI Power Management, 7.2-release||Mantazz||FreeBSD Ports and Packages||4||17th August 2009 09:08 PM|
|FreeBSD 7.2-RELEASE||vermaden||FreeBSD General||6||12th May 2009 08:33 PM|
|FreeBSD 7.1-RELEASE is out ... finally ;)||vermaden||FreeBSD General||20||6th January 2009 03:32 PM|
|FreeBSD 6.2-RELEASE > 7.0-RELEASE Upgrade||Marci||FreeBSD Installation and Upgrading||2||23rd July 2008 02:10 PM|