PPP Modul

PPP Modul

Post by Daedal » Thu, 08 Jan 2004 19:43:06



i want to set up a vpn server with pptpd on my linux box
this requires that the ppp.o modul must be loaded
But ive only a ppp_generic.o in my module directory
CONFIG_PPP=m <-- .config
Im using the 2.4.22 Kernel and PPP as modul :-)
i dont want to buildin PPP because i need it only for one time
So what im doing wrong?

Greetz

Fabio Di Lorenzo

 
 
 

PPP Modul

Post by Clifford Kit » Thu, 08 Jan 2004 22:48:19



> i want to set up a vpn server with pptpd on my linux box
> this requires that the ppp.o modul must be loaded
> But ive only a ppp_generic.o in my module directory
> CONFIG_PPP=m <-- .config
> Im using the 2.4.22 Kernel and PPP as modul :-)
> i dont want to buildin PPP because i need it only for one time
> So what im doing wrong?

Probabily neglecting to compile or use the PPP asynchronous module
in addition to the generic module:

PPP support for async serial ports
CONFIG_PPP_ASYNC

For such things as VPNs pppd uses a pseudo-tty and you need this module
as well as the generic one.

--

PPP-Q&A links, downloads:                      http://ckite.no-ip.net/
/* I gave up on politics when no matter who I voted for, I regretted it.
 *    -- Pepper...and Salt, WSJ */

 
 
 

PPP Modul

Post by Daedal » Fri, 09 Jan 2004 06:47:04




> > i want to set up a vpn server with pptpd on my linux box
> > this requires that the ppp.o modul must be loaded
> > But ive only a ppp_generic.o in my module directory
> > CONFIG_PPP=m <-- .config
> > Im using the 2.4.22 Kernel and PPP as modul :-)
> > i dont want to buildin PPP because i need it only for one time
> > So what im doing wrong?

> Probabily neglecting to compile or use the PPP asynchronous module
> in addition to the generic module:

> PPP support for async serial ports
> CONFIG_PPP_ASYNC

> For such things as VPNs pppd uses a pseudo-tty and you need this module
> as well as the generic one.

ive also compiled the other ppp modules
lsmod shows(after modprobe them):
ppp_synctty             5824   0  (unused)
ppp_async               7328   0  (unused)
ppp_generic            16324   0  (autoclean) [ppp_synctty ppp_async]
slhc                    4896   0  (autoclean) [ppp_generic]
via-rhine              12360   1
mii                     2256   0  [via-rhine]

but it still doesnt function

Syslog shows the follow:
Jan  7 22:26:56 sokrates pptpd[9767]: MGR: Launching
/usr/sbin/pptpctrl to handle client
Jan  7 22:26:56 sokrates pptpd[9767]: CTRL: local address =
192.168.1.1
Jan  7 22:26:56 sokrates pptpd[9767]: CTRL: remote address =
192.168.1.51
Jan  7 22:26:56 sokrates pptpd[9767]: CTRL: pppd speed = 115200
Jan  7 22:26:56 sokrates pptpd[9767]: CTRL: pppd options file =
/etc/ppp/pptpd-options
Jan  7 22:26:56 sokrates pptpd[9767]: CTRL: Client 192.168.1.21
control connection started
Jan  7 22:26:56 sokrates pptpd[9767]: CTRL: Received PPTP Control
Message (type: 1)
Jan  7 22:26:56 sokrates pptpd[9767]: CTRL: Made a START CTRL CONN
RPLY packet
Jan  7 22:26:56 sokrates pptpd[9767]: CTRL: I wrote 156 bytes to the
client.
Jan  7 22:26:56 sokrates pptpd[9767]: CTRL: Sent packet to client
Jan  7 22:26:56 sokrates pptpd[9767]: CTRL: Received PPTP Control
Message (type: 7)
Jan  7 22:26:56 sokrates pptpd[9767]: CTRL: Set parameters to 1525
maxbps, 64 window size
Jan  7 22:26:56 sokrates pptpd[9767]: CTRL: Made a OUT CALL RPLY
packet
Jan  7 22:26:56 sokrates pptpd[9767]: CTRL: Starting call (launching
pppd, opening GRE)
Jan  7 22:26:56 sokrates pptpd[9767]: CTRL: pty_fd = 5
Jan  7 22:26:56 sokrates pptpd[9767]: CTRL: tty_fd = 6
Jan  7 22:26:56 sokrates pptpd[9767]: CTRL: I wrote 32 bytes to the
client.
Jan  7 22:26:56 sokrates pptpd[9767]: CTRL: Sent packet to client
Jan  7 22:26:56 sokrates pptpd[9768]: CTRL (PPPD Launcher): Connection
speed = 115200
Jan  7 22:26:56 sokrates pptpd[9768]: CTRL (PPPD Launcher): local
address = 192.168.1.1
Jan  7 22:26:56 sokrates pptpd[9768]: CTRL (PPPD Launcher): remote
address = 192.168.1.51
Jan  7 22:26:56 sokrates pppd[9768]: This system lacks kernel support
for PPP.  This could be because the PPP kernel module could not be
loaded, or because PPP was not included in the kernel configuration.
If PPP was included as a module, try `/sbin/modprobe -v ppp'.  If that
fails, check that ppp.o exists in /lib/modules/`uname -r`/net. See
README.linux file in the ppp distribution for more details.
Jan  7 22:26:56 sokrates pptpd[9767]: CTRL: Received PPTP Control
Message (type: 15)
Jan  7 22:26:56 sokrates pptpd[9767]: CTRL: Got a SET LINK INFO packet
with standard ACCMs
Jan  7 22:26:56 sokrates pptpd[9767]: GRE:
read(fd=5,buffer=804ec60,len=8196) from PTY failed: status = -1 error
= Input/output error
Jan  7 22:26:56 sokrates pptpd[9767]: CTRL: PTY read or GRE write
failed (pty,gre)=(5,6)
Jan  7 22:26:56 sokrates pptpd[9767]: CTRL: Closing child BCrelay with
pid 0
Jan  7 22:26:56 sokrates pptpd[9767]: CTRL: Closing child ppp with pid
9768
Jan  7 22:26:56 sokrates pptpd[9767]: CTRL: Client 192.168.1.21
control connection finished
Jan  7 22:26:56 sokrates pptpd[9767]: CTRL: Exiting now
Jan  7 22:26:56 sokrates pptpd[661]: MGR: Reaped child 9767

just for information
im using debian

 
 
 

PPP Modul

Post by Clifford Kit » Fri, 09 Jan 2004 10:17:38



> ive also compiled the other ppp modules
> lsmod shows(after modprobe them):
> ppp_synctty             5824   0  (unused)
> ppp_async               7328   0  (unused)
> ppp_generic            16324   0  (autoclean) [ppp_synctty ppp_async]
> slhc                    4896   0  (autoclean) [ppp_generic]
> via-rhine              12360   1
> mii                     2256   0  [via-rhine]
> but it still doesnt function

Okay.

Quote:> Syslog shows the follow:

...

Quote:> Jan  7 22:26:56 sokrates pppd[9768]: This system lacks kernel support
> for PPP.  This could be because the PPP kernel module could not be
> loaded, or because PPP was not included in the kernel configuration.
> If PPP was included as a module, try `/sbin/modprobe -v ppp'.  If that
> fails, check that ppp.o exists in /lib/modules/`uname -r`/net. See
> README.linux file in the ppp distribution for more details.
> Jan  7 22:26:56 sokrates pptpd[9767]: CTRL: Received PPTP Control
> Message (type: 15)
> Jan  7 22:26:56 sokrates pptpd[9767]: CTRL: Got a SET LINK INFO packet
> with standard ACCMs
> Jan  7 22:26:56 sokrates pptpd[9767]: GRE:
> read(fd=5,buffer=804ec60,len=8196) from PTY failed: status = -1 error
> = Input/output error
> Jan  7 22:26:56 sokrates pptpd[9767]: CTRL: PTY read or GRE write
> failed (pty,gre)=(5,6)

Jan  7 22:26:56 sokrates pptpd[9767]: CTRL: Closing child BCrelay with
pid 0
Jan  7 22:26:56 sokrates pptpd[9767]: CTRL: Closing child ppp with pid
9768
Jan  7 22:26:56 sokrates pptpd[9767]: CTRL: Client 192.168.1.21
control connection finished
Jan  7 22:26:56 sokrates pptpd[9767]: CTRL: Exiting now
Jan  7 22:26:56 sokrates pptpd[661]: MGR: Reaped child 9767

This says pptpd couldn't read from or write a GRE packet to the pseudo-tty
(PTY) for whatever reason.  This is from an old pptpd FAQ:

7.3.5.  Get "pptpd[24120]: GRE: read(fd=5,buffer=804d9c0,len=8196) from
             PTY failed: status = -1 error = Input/output error"
            "pptpd[24120]: CTRL: PTY read or GRE write failed (pty,gre)=(5,6)"
            "pptpd[24120]: CTRL: Client 12.72.37.31 control connection finished
"
        errors in your log file when the pptpd program is running on a machine
        behind a masq'ed firewall.

        Solution:  Apply the ip_masq_vpn.patch patch file to kernel.
            Also, look at Linux VPN Masquerade HOWTO: Patching and configuring
            kernel for VPN Masquerade support for details.
        ftp://ftp.rubyriver.com/pub/jhardin/masquerade/ip_masq_vpn.html
        ftp://ftp.rubyriver.com/pub/jhardin/masquerade/VPN-howto/VPN-Masquerade
.html

Sorry, but I've never used pptpd or any PPTP based daemon and this is
the best answer I have to offer.

--

PPP-Q&A links, downloads:                      http://ckite.no-ip.net/
/* Better is the enemy of good enough. */

 
 
 

1. PPP and PPP and PPP and PPP and PPP and HEADACHE

I made a trick .. instead of using chat to connect PPP like was in the
books
(that for me doesn't work) I used dip (it's the one that is supposed to be
used with SLIP connections) .. I make a script for dip so it connects using
PPP, and everything goes fine till I connect... After I connect the host
where i'm connected is Okay and everything seems to be Okay. but when I do
I simple ping to my own IP (not localhost but my assigned fixed IP) it says
unable to reach host.. I think the hardest thing to setup in linux is PPP
:( .. geee...

I have the Slackware 3.0 stuff... and I feel like i'm a newbie.. :(

Is out there any better FAQs or How-TOs for the PPP connections ???

bye !

--
 _    ____ ____          _____________________________
| |  |    |  __|         Luis Aranguren Carvajal    
| |  | || | |            http://www.ven.net/~pizzaman




|____|_||_|____|         _____________________________    

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.7.1

mQBNAzHYS48AAAECAKI2RDdBeMWbSz0HNYp3IyOJMRJDmXFhQbeztv1XAwHt6Lyz
hz2yoYIX0kn0EoNwWm183hAJ7ag3hfPXnSANPgEABRG0JEx1aXMgQXJhbmd1cmVu
IEMuIDxwaXp6YW1hbkB2ZW4ubmV0Pg==
=IOzU
-----END PGP PUBLIC KEY BLOCK-----

2. Fips unable to utilize all the free space that's there

3. Why making netfilter moduls fails in 2.4.0 kernel

4. Where can I find ppp2.2.2b for Linux?

5. PAM modul for Lotus Notes?

6. Help! Setup bombs making Boot Disk

7. Kernel Modul

8. Installation Problems with Slackware 2.2.0 & Goldstar gcd-540 cd-rom

9. Missing modul for Realtek Ethernet device

10. fs-modul

11. firewall-modul

12. Apache-Modul: sharing config-data between requests

13. device versus modul