Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pppoe and CHAP
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
ThePsychotic2k
n00b
n00b


Joined: 16 Jun 2004
Posts: 56
Location: Bristol

PostPosted: Wed Oct 12, 2005 10:47 am    Post subject: pppoe and CHAP Reply with quote

Hi,

My laptop has a working wlan card which I use normally with WEP and unenrypted, the only problem is that I also want to be able to use it within Uni.
As far as I know to connect to the "nomadic" service around Uni I have to connect via PPPoE to get an IP address and a connection and then connect via PPtP to get a full working connection.

I'm am still stuck trying to get the PPPoE bit to work. I think half my problem is that there seems to be so many different ways to set up PPPoE. To connect I have been told via admin staff that I have to connect using CHAP. Even though I have:
Code:
refuse-eap
refuse-pap
require-mschap-v2

in my /etc/ppp/options-pppoe it was still trying to connect via PAP.

In a desperate attempt I deleted an old /etc/ppp/pap-secrets that used to be used for a dail-up connection. Now it trys to connect via EAP when I issue adsl-start.

To further complicate that matter I have read that you can set /etc/conf.d/net to something like this:
Code:
config_wlan0=("adsl")
adsl_user_wlan0="df3804"

Does that still read settings from /etc/ppp/pppoe.conf and /etc/ppp/options-pppoe?

I am now completely stuck, I could REALLY do with some help. Even if there is just someone who is not too sure but has an idea please let me know, I'm willing to try anything.


Here are the config files that are relevent (in my opinion):

/etc/ppp/pppoe.conf (done via adsl-setup):
Code:
ETH='wlan0'
USER='df3804'
DEMAND=no
#DEMAND=300
DNSTYPE=NOCHANGE
PEERDNS=no
DNS1=
DNS2=
DEFAULTROUTE=yes
CONNECT_TIMEOUT=30
CONNECT_POLL=2
ACNAME=
SERVICENAME=
PING="."
PIDFILE="/var/run/$CF_BASE-adsl.pid"
SYNCHRONOUS=no
CLAMPMSS=1412
#CLAMPMSS=no
LCP_INTERVAL=20
LCP_FAILURE=3
PPPOE_TIMEOUT=80
FIREWALL=NONE
LINUX_PLUGIN=
PPPOE_EXTRA=""
# PPPOE_EXTRA="-f 3c12:3c13 -S ISP"
PPPD_EXTRA=""
# OVERRIDE_PPPD_COMMAND="pppd call dsl"
# RETRY_ON_FAILURE=no


/etc/ppp/options-pppoe
Code:
noipdefault
hide-password
defaultroute
persist
lock
refuse-eap
refuse-pap
require-mschap-v2


(This one I'm not too sure if I have the format right)...
/etc/ppp/chap-secrets
Code:
df3804 * my_pass



I hope someone out there can put me straight on how this pppoe stuff works and how to get it to use CHAP.


Dan.
_________________
#387403
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Thu Oct 13, 2005 4:33 am    Post subject: Reply with quote

Try deleting or renaming /etc/ppp/srp-secrets (if it exists, that is). It's used for EAP authentication. Also, with require-mschap-v2, you are asking them to provide you with authentication, which obviously won't happen. Oh, yeah, try setting your pppoe options in pppoe.conf by placing them in the PPPD_EXTRA variable.

Thomas S. Howard
Back to top
View user's profile Send private message
ThePsychotic2k
n00b
n00b


Joined: 16 Jun 2004
Posts: 56
Location: Bristol

PostPosted: Thu Oct 13, 2005 7:42 am    Post subject: Reply with quote

Cheers for the ideas. It turned out in the end that it was looking for the options in /etc/ppp/options, not /etc/ppp/options-pppoe. So I just added the require and refuse lines to that file instead and it connects.

The next step is to get a pptp connection. Should be easy I just don't know how (search box here I come)

Dan
_________________
#387403
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Thu Oct 13, 2005 7:46 am    Post subject: Reply with quote

Cool. Glad I couldn't help.

Thomas S. Howard
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