Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
RP-PPPoE Server
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
TreGe
n00b
n00b


Joined: 26 Jun 2006
Posts: 3

PostPosted: Mon Jun 26, 2006 6:52 pm    Post subject: RP-PPPoE Server Reply with quote

Hi, I've been looking aroung for a while for a solution to the following issue:

I have been trying to set up a pppoe server (using rp-pppoe) to allow windows clients to connect to my linux server. Each time I end up with the followinf output in my log file:

Code:

using channel 107
Using interface ppp0
Connect: ppp0 <--> /dev/pts/90
sent [LCP ConfReq id=0x1 <mru 1490> <magic 0xb10c4b6>]
rcvd [LCP ConfReq id=0x1 <mru 1480> <magic 0x43b0703d> <callback CBCP>]
sent [LCP ConfRej id=0x1 <callback CBCP>]
sent [LCP ConfReq id=0x1 <mru 1490> <magic 0xb10c4b6>]
rcvd [LCP ConfReq id=0x2 <mru 1480> <magic 0x43b0703d> <callback CBCP>]
sent [LCP ConfRej id=0x2 <callback CBCP>]
sent [LCP ConfReq id=0x1 <mru 1490> <magic 0xb10c4b6>]
sent [LCP ConfReq id=0x1 <mru 1490> <magic 0xb10c4b6>]
rcvd [LCP ConfReq id=0x3 <mru 1480> <magic 0x43b0703d> <callback CBCP>]
sent [LCP ConfRej id=0x3 <callback CBCP>]
sent [LCP ConfReq id=0x1 <mru 1490> <magic 0xb10c4b6>]
sent [LCP ConfReq id=0x1 <mru 1490> <magic 0xb10c4b6>]
rcvd [LCP ConfReq id=0x4 <mru 1480> <magic 0x43b0703d> <callback CBCP>]
sent [LCP ConfRej id=0x4 <callback CBCP>]
sent [LCP ConfReq id=0x1 <mru 1490> <magic 0xb10c4b6>]
sent [LCP ConfReq id=0x1 <mru 1490> <magic 0xb10c4b6>]
rcvd [LCP ConfReq id=0x5 <mru 1480> <magic 0x43b0703d> <callback CBCP>]
sent [LCP ConfRej id=0x5 <callback CBCP>]
sent [LCP ConfReq id=0x1 <mru 1490> <magic 0xb10c4b6>]
sent [LCP ConfReq id=0x1 <mru 1490> <magic 0xb10c4b6>]
rcvd [LCP ConfReq id=0x6 <mru 1480> <magic 0x43b0703d> <callback CBCP>]
sent [LCP ConfRej id=0x6 <callback CBCP>]
sent [LCP ConfReq id=0x1 <mru 1490> <magic 0xb10c4b6>]
sent [LCP ConfReq id=0x1 <mru 1490> <magic 0xb10c4b6>]
rcvd [LCP ConfReq id=0x7 <mru 1480> <magic 0x43b0703d> <callback CBCP>]
sent [LCP ConfRej id=0x7 <callback CBCP>]
sent [LCP ConfReq id=0x1 <mru 1490> <magic 0xb10c4b6>]
sent [LCP ConfReq id=0x1 <mru 1490> <magic 0xb10c4b6>]
rcvd [LCP ConfReq id=0x8 <mru 1480> <magic 0x43b0703d> <callback CBCP>]
sent [LCP ConfRej id=0x8 <callback CBCP>]
sent [LCP ConfReq id=0x1 <mru 1490> <magic 0xb10c4b6>]
sent [LCP ConfReq id=0x1 <mru 1490> <magic 0xb10c4b6>]
rcvd [LCP ConfReq id=0x9 <mru 1480> <magic 0x43b0703d> <callback CBCP>]
sent [LCP ConfRej id=0x9 <callback CBCP>]
sent [LCP ConfReq id=0x1 <mru 1490> <magic 0xb10c4b6>]
sent [LCP ConfReq id=0x1 <mru 1490> <magic 0xb10c4b6>]
Terminating on signal 15
sent [LCP TermReq id=0x2 "User request"]
sent [LCP TermReq id=0x3 "User request"]
Connection terminated.
Modem hangup


my /etc/ppp/options file:

Code:

noipdefault
ipcp-accept-local
ipcp-accept-remote
debug
crtscts
lock
local
asyncmap 0
mru 1490
mtu 1490
nodetach
lcp-echo-interval 30
lcp-echo-failure 4
lcp-max-configure 60
lcp-restart 2
idle 600
noipx


my /etc/ppp/pppoe-server-options:

Code:

debug
noauth
logfile /var/log/pppoe-server.log


Anyone else have this problem, or, can anyone post a solution or a copy of their own working configuration?
Back to top
View user's profile Send private message
mrness
Retired Dev
Retired Dev


Joined: 17 Feb 2004
Posts: 375
Location: bucharest.ro

PostPosted: Tue Jun 27, 2006 5:05 am    Post subject: Reply with quote

The client want server to close the connection and issue a callback. This kind of setup have sense only for dialup.

Also, you shouldn't accept any local or remote IP addresses proposed by the client. The server is the one who set them. If you want to set a IP address per user, use {pap,chap}-secrets files.
Back to top
View user's profile Send private message
TreGe
n00b
n00b


Joined: 26 Jun 2006
Posts: 3

PostPosted: Tue Jun 27, 2006 1:48 pm    Post subject: Reply with quote

You can see then why I am so confused. I am using the latest copy of pppd and rp-pppoe from portage, but all of my windows clients demand CBCP on connection (which makes no sense in PPPoE). Am I missing something or is this a completely client-side bug?

And yes, I do plan to use pap/chap once I get this fixed.
Back to top
View user's profile Send private message
mrness
Retired Dev
Retired Dev


Joined: 17 Feb 2004
Posts: 375
Location: bucharest.ro

PostPosted: Tue Jun 27, 2006 2:46 pm    Post subject: Reply with quote

Maybe the client gets confused because the server doesn't require authentication.

This is my /etc/ppp/pppoe-server-options which I use to test PPPoE support before merging into the tree.
Code:
# PPP options for the PPPoE server
# LIC: GPL
require-pap
#noauth
#login
lcp-echo-interval 10
lcp-echo-failure 2

However, I test it using gentoo machines on the both ends of the pipe.

Also, if you want to use pppoe plugin + PPPoE kernel suport, like in this /etc/ppp/options example
Code:
lock
plugin rp-pppoe.so
debug
kdebug 1
default-asyncmap

,you better make sure pppoe module is loaded (modprobe pppoe) before starting pppoe-server. Of course, only if you compiled it as a module...
Back to top
View user's profile Send private message
TreGe
n00b
n00b


Joined: 26 Jun 2006
Posts: 3

PostPosted: Tue Jun 27, 2006 3:08 pm    Post subject: Reply with quote

After trying hundreds of other configurations I think it is a client-side problem. Is there any way to force support for CBCP? (I really hate microsoft-centric protocols)


Edit:
I have confirmed that the config works linux-to-linux, just not with the M$-style CBCP
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum