Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

adsl connecting problems (ppp)

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
corsair
Retired Dev
Retired Dev
Posts: 451
Joined: Mon Oct 06, 2003 5:58 pm
Location: Aachen, Germany

adsl connecting problems (ppp)

  • Quote

Post by corsair » Tue Jan 29, 2008 8:01 pm

Hello,

I'm trying to replace my cisco router with a gentoo system. Unfortunately the DSL connection won't connect...

Code: Select all

Jan 29 19:44:01 [pppd] Plugin passwordfd.so loaded.
Jan 29 19:44:01 [pppd] Plugin rp-pppoe.so loaded.
Jan 29 19:44:01 [pppd] RP-PPPoE plugin version 3.3 compiled against pppd 2.4.4
Jan 29 19:45:01 [pppd] pppd 2.4.4 started by root, uid 0
Jan 29 19:45:01 [pppd] PPP session is 11325
Jan 29 19:45:01 [pppd] Using interface ppp0
Jan 29 19:45:01 [pppd] Connect: ppp0 <--> eth1
Jan 29 19:45:01 [/etc/init.d/net.ppp0] WARNING: net.ppp0 has started, but is inactive
Jan 29 19:45:04 [pppd] LCP terminated by peer
Jan 29 19:45:07 [pppd] Connection terminated.
Jan 29 19:45:07 [pppd] Modem hangup
Jan 29 19:45:10 [pppd] PPP session is 14906
Jan 29 19:45:10 [pppd] Using interface ppp0
Jan 29 19:45:10 [pppd] Connect: ppp0 <--> eth1
Jan 29 19:45:13 [pppd] LCP terminated by peer
Jan 29 19:45:16 [pppd] Connection terminated.
Jan 29 19:45:16 [pppd] Modem hangup
Jan 29 19:45:19 [pppd] PPP session is 6738
Jan 29 19:45:19 [pppd] Using interface ppp0
Jan 29 19:45:19 [pppd] Connect: ppp0 <--> eth1
Jan 29 19:45:23 [pppd] LCP terminated by peer
Jan 29 19:45:25 [pppd] Terminating on signal 15
Jan 29 19:45:26 [pppd] Connection terminated.
Jan 29 19:45:26 [pppd] Modem hangup
Jan 29 19:45:26 [pppd] Exit.
And I'm not sure, what I'm doing wrong... ^^ Heck, this is the first time I'm setting up a connection other than ethernet in linux. ;-)

Here is the config:

Code: Select all

# /etc/conf.d/net
config_eth0=( "192.168.0.1/24" )

config_eth1=( null )

config_ppp0=( "ppp" )
link_ppp0="eth1"
plugins_ppp0=( "pppoe" )
username_ppp0="xxxxxxxxxxx@alice-dsl.de"
password_ppp0=
pppd_ppp0=(
        "debug"
        "noauth"
        "defaultroute"
        "usepeerdns"
        "holdoff 3"
        "child-timeout 60"
        "lcp-echo-interval 15"
        "lcp-echo-failure 3"
        noaccomp noccp nobsdcomp nodeflate nopcomp novj novjccomp
)

depend_ppp0() {
        need net.eth1
}
As you can see my provider is Alice DSL (Germany).. dunno if this has anything to do with it.

-corsair
Top
mrness
Retired Dev
Retired Dev
User avatar
Posts: 375
Joined: Tue Feb 17, 2004 9:41 pm
Location: bucharest.ro

  • Quote

Post by mrness » Wed Jan 30, 2008 9:48 am

Configure your syslog daemon to save anything and post here the resulted logs.
Top
corsair
Retired Dev
Retired Dev
Posts: 451
Joined: Mon Oct 06, 2003 5:58 pm
Location: Aachen, Germany

  • Quote

Post by corsair » Wed Jan 30, 2008 1:52 pm

thanks for the note.

I ran pppd from commandline with the nodetach option and figured out that the password is 'wrong'. The password does not get passed correct. I'm using baselayout 2, so there seems to be problems with it.

Though I figured out a working config: I've changed from using the password_ppp0 to "password xxxxx" in pppd_ppp0.

Code: Select all

# /etc/conf.d/net
config_eth0=( "192.168.0.1/24" )

config_eth1=( null )

config_ppp0=( "ppp" )
link_ppp0="eth1"
plugins_ppp0=( "pppoe" )
username_ppp0="xxxxxxxxxxx@alice-dsl.de"
#password_ppp0="xxxxxxxx"
pppd_ppp0=(
	#"noauth"
	"defaultroute"
	"usepeerdns"
	"holdoff 3"
	"child-timeout 60"
	"lcp-echo-interval 15"
	"lcp-echo-failure 3"
	"password xxxxxxxx"
	noaccomp noccp nobsdcomp nodeflate nopcomp novj novjccomp
)

depend_ppp0() {
	need net.eth1
}
it's not save to set the password option, because you can see the password in ps output, but it's working for the moment.

I'll open a bugreport against baselayout soon.

-markus
Top
mrness
Retired Dev
Retired Dev
User avatar
Posts: 375
Joined: Tue Feb 17, 2004 9:41 pm
Location: bucharest.ro

  • Quote

Post by mrness » Wed Jan 30, 2008 1:57 pm

corsair wrote:it's not save to set the password option, because you can see the password in ps output, but it's working for the moment.
No, you will not. echo is an internal *sh command and, as such, do not appear on ps output.
Top
corsair
Retired Dev
Retired Dev
Posts: 451
Joined: Mon Oct 06, 2003 5:58 pm
Location: Aachen, Germany

  • Quote

Post by corsair » Wed Jan 30, 2008 4:09 pm

sorry, I meant the password option of pppd, not the password_ppp0 option.

I read the following line in /lib/rc/net/pppd.sh:

Code: Select all

printf "%s" "${password}" | eval start-stop-daemon --start --exec /usr/sbin/pppd --pidfile "/var/run/ppp-${IFACE}.pid" -- "${opts}" >/dev/null
But this doesn't seem to work for me. I tried the follwoing command, which should be the one run by rc manually and it doesn't seem to work (replaced printf with echo):

Code: Select all

$ echo "xxxxxxxx" | /usr/sbin/pppd unit 0 user xxxxxxxxxxx@alice-dsl.de remotename ppp0 linkname ppp0 nodetach defaultroute usepeerdns holdoff 3 child-timeout 60 lcp-echo-interval 15 lcp-echo-failure 3 noaccomp noccp nobsdcomp nodeflate nopcomp novj novjccomp plugin passwordfd.so passwordfd 0 defaultmetric 4004 maxfail 0 persist connect true plugin rp-pppoe.so eth1
Plugin passwordfd.so loaded.
Plugin rp-pppoe.so loaded.
RP-PPPoE plugin version 3.3 compiled against pppd 2.4.4
Using interface ppp0
Connect: ppp0 <--> eth1
Remote message: Request Denied
PAP authentication failed
Connection terminated.
Using interface ppp0
Connect: ppp0 <--> eth1
Remote message: Request Denied
PAP authentication failed
Connection terminated.
Terminating on signal 2
Top
mrness
Retired Dev
Retired Dev
User avatar
Posts: 375
Joined: Tue Feb 17, 2004 9:41 pm
Location: bucharest.ro

  • Quote

Post by mrness » Wed Jan 30, 2008 5:20 pm

ah, I've checked with the stable version of baselayout.

see if [bug=203860]bug 203860[/bug] help you with this thing.

Edit later: uberlord says printf is interpreted as internal command in bash, so unless you are using busybox, there is nothing wrong in using printf instead echo.
Last edited by mrness on Fri Feb 15, 2008 6:29 am, edited 1 time in total.
Top
nokia
n00b
n00b
Posts: 12
Joined: Tue Aug 31, 2004 12:08 pm
Location: Norway

  • Quote

Post by nokia » Mon Feb 04, 2008 3:00 pm

Iv'e also had some quite irritation problems with my router the last few days after moving from the rp-ppoe package to ppp. I was reformatting the server and followed the gentoo "home router guide". At first everything seemed fine, but the users on my local net couldn't open certain web pages. I googled it and many people said that it could be the MTU value... After playing around with this value I came nowhere....

Finally i decided to give rp-pppoe a try. It worked as a charm, not problems at all. Just used pppoe-setup and away we go...
Top
mrness
Retired Dev
Retired Dev
User avatar
Posts: 375
Joined: Tue Feb 17, 2004 9:41 pm
Location: bucharest.ro

  • Quote

Post by mrness » Thu Feb 07, 2008 7:23 pm

nokia wrote:After playing around with this value I came nowhere....
That is because you didn't searched this forum properly. Time and time again I've posted here the solution to this problem, not to mention this quote from /etc/conf.d/net:
#WARNING: if MTU of the PPP interface is less than 1500 and you use this
#machine as a router, you should add the following rule to your firewall
#
#iptables -I FORWARD 1 -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
nokia wrote:Finally i decided to give rp-pppoe a try. It worked as a charm, not problems at all. Just used pppoe-setup and away we go...
Fine, just don't complain when rp-pppoe baselayout support will be finally removed.
Top
majoron
Apprentice
Apprentice
User avatar
Posts: 243
Joined: Wed Oct 12, 2005 2:02 pm
Location: Frankfurt

  • Quote

Post by majoron » Thu Aug 07, 2008 11:05 am

corsair wrote:thanks for the note.

I ran pppd from commandline with the nodetach option and figured out that the password is 'wrong'. The password does not get passed correct. I'm using baselayout 2, so there seems to be problems with it.

Though I figured out a working config: I've changed from using the password_ppp0 to "password xxxxx" in pppd_ppp0.

Code: Select all

# /etc/conf.d/net
config_eth0=( "192.168.0.1/24" )

config_eth1=( null )

config_ppp0=( "ppp" )
link_ppp0="eth1"
plugins_ppp0=( "pppoe" )
username_ppp0="xxxxxxxxxxx@alice-dsl.de"
#password_ppp0="xxxxxxxx"
pppd_ppp0=(
	#"noauth"
	"defaultroute"
	"usepeerdns"
	"holdoff 3"
	"child-timeout 60"
	"lcp-echo-interval 15"
	"lcp-echo-failure 3"
	"password xxxxxxxx"
	noaccomp noccp nobsdcomp nodeflate nopcomp novj novjccomp
)

depend_ppp0() {
	need net.eth1
}
it's not save to set the password option, because you can see the password in ps output, but it's working for the moment.

I'll open a bugreport against baselayout soon.

-markus
I'm having problems with the connection to alice-dsl too (here is the post).
I copied your configuration but it didn't work. What modem do you have?
Mine is a "Thomson SpeedTouch 350i".
Did you have to do something "special" before/after pppd configuration in order to get it working?

Regards
Computers are like air conditioners, they stop working properly if you open Windows
Top
Post Reply

9 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy