Networking Forums

Networking Forums > Computer Networking > Linux Networking > PPP Modul

Reply
 
 
Daedalus
Guest
Posts: n/a

 
      01-07-2004, 09:43 AM
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
 
Reply With Quote
 
 
 
 
Clifford Kite
Guest
Posts: n/a

 
      01-07-2004, 12:48 PM
Daedalus <(E-Mail Removed)> wrote:
> 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.

--
Clifford Kite Email: "echo xvgr_yvahk-(E-Mail Removed)|rot13"
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 */
 
Reply With Quote
 
Daedalus
Guest
Posts: n/a

 
      01-07-2004, 08:47 PM
Clifford Kite <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> Daedalus <(E-Mail Removed)> wrote:
> > 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
 
Reply With Quote
 
Clifford Kite
Guest
Posts: n/a

 
      01-08-2004, 12:17 AM
Daedalus <(E-Mail Removed)> wrote:
> 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.

> Syslog shows the follow:

....

> 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/..._masq_vpn.html
ftp://ftp.rubyriver.com/pub/jhardin/...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.

--
Clifford Kite Email: "echo xvgr_yvahk-(E-Mail Removed)|rot13"
PPP-Q&A links, downloads: http://ckite.no-ip.net/
/* Better is the enemy of good enough. */
 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IPsec Modul in SuSe 9.1 fehlt Toni Erdmann Linux Networking 0 09-22-2004 07:49 AM



1 2 3 4 5 6 7 8 9 10 11