LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 01-22-2008, 05:25 AM   #46
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53

You can get kppp source and make it show where it fails. Did you start kppp from a terminal?
 
Old 01-22-2008, 06:04 AM   #47
svar
Member
 
Registered: Jul 2003
Posts: 352

Original Poster
Rep: Reputation: 30
Yes, I did start kpp from the terminal. I am not sure what you mean get kppp source. kppp is an executable that is build via slackbuils of installpkg or whatever(in my case with the Slack installation), but
I could have build it from a tarball -all one would need is to make sure
all dependences are right, if I understand-and probably that it does not conflict with anything else. So how do you get it to show where it fails??
 
Old 01-22-2008, 11:40 AM   #48
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
I suppose it should be rather easy to add message boxes to kppp to check where it fails.
 
Old 01-22-2008, 08:31 PM   #49
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
Originally Posted by svar View Post
Ctrl-a and q do not seem to work(others say Ctrl-a and z, I think I tried all conceivable combinations of a, q and z)
Ctrl-a followed by q (which leads to a "leave without reset?" dialog) has always worked for me. But I have never tried it while the other side was talking PPP. Ctrl-a followed by z should give a menu of all of your options, including "q".

Quote:
Your suggestion is simple -give up on kppp,
try pppsetup instead
but I feel I must be close, sinc eI can connect.
That was because I don't have the experience to help you with kppp. If somebody else can, great!

Quote:
The other thing is how about wvdial? Any experience with that?
I have dealt with the wvdial configuration. The actual invocation of it was from a distro supplied ifup-ppp script.

What they did was along the lines of:

Code:
pppd <bunch of options> connect "/usr/bin/wvdial --remotename ${DEVICE} --chat ${WVDIALSECT}"
Looking up the option --chat in the wvdial man page suggests there is a more common way to use it where wvdial calls pppd.
 
Old 01-23-2008, 01:42 AM   #50
svar
Member
 
Registered: Jul 2003
Posts: 352

Original Poster
Rep: Reputation: 30
Alien, can you either specify how exactly does one add message boxes or point me to some link-I just don't know how to do this.
blackhole, thanks, I'll try both. If I'm not mistaken though, slack 12 does not include pppd
 
Old 01-23-2008, 02:18 AM   #51
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
Originally Posted by svar View Post
If I'm not mistaken though, slack 12 does not include pppd
I thought pppd was at the core of all dial-up, including kppp and ppp-go.
 
Old 01-23-2008, 04:34 AM   #52
svar
Member
 
Registered: Jul 2003
Posts: 352

Original Poster
Rep: Reputation: 30
I thought so too. Actually this is what I remember, I should recheck.
 
Old 02-23-2008, 01:37 PM   #53
nekkutta
LQ Newbie
 
Registered: Feb 2008
Distribution: Slackware 12
Posts: 22

Rep: Reputation: 15
Unhappy got modem to connect, unfortunately pppd doesn't like me

I am a bit of a linux newbie, so please be gentle.
I have been using slackware 10.2 on a machine in the basement as a samba file server, picked up 12.0 over at my friend's house and loaded it on a 13GB drive on the primary desktop in the house (full install) got everything up and running, picked up the martian modem driver for my LT winmodem built it and loaded the modem helper app into my rc.local installing the modem to /dev/modem with the ownership of root:users.

then went to play with kppp, seemed to have the same problem as ppl had before with kppp, where it would just hang, I had to enter almost all of the modem AT commands into the modem commands section then it worked. SO I thought...

it would seem I am having issues with pppd, nothing I send to the dialup seems to get there... if I type route in a terminal window before I connect it comes up with the usual entries; ie the router on my network being the defaul gateway, and the loopback route.
although if I run route after using kppp to dialup, route hangs without showing anything but the first line (colum names) and I have to Ctrl-c to get back to bash

Log files state something along the lines of Unable to change default gateway 192.168.1.1 and unable to resolve address to use for ARP proxy

anyone got any ideas??

nekkutta
 
Old 02-24-2008, 03:39 AM   #54
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
Originally Posted by nekkutta View Post
it would seem I am having issues with pppd, nothing I send to the dialup seems to get there... if I type route in a terminal window before I connect it comes up with the usual entries; ie the router on my network being the defaul gateway, and the loopback route.
although if I run route after using kppp to dialup, route hangs without showing anything but the first line (colum names) and I have to Ctrl-c to get back to bash

Log files state something along the lines of Unable to change default gateway 192.168.1.1 and unable to resolve address to use for ARP proxy
First, the route command hanging ... By default, route attempts to reverse DNS addresses. This can cause it to appear to hang, particularly if it can't get to a DNS server. Using the -n (numerical address) option suppresses the reverse DNS lookup. I usually use the -n option just to speed things up except for the rare cases where I need reverse DNS.

For your dial-up connection to work, the default route needs to be to the other end of the PPP connection. Usually pppd will set this up for you. But IIRC, pppd will refuse to replace an existing default route. (Double check that in the man page if you like.) So for the default route to get set up by pppd, something needs to get rid of the old one before calling pppd. You might see if kppp has the ability to call scripts before connecting and after shutting down, and write a simple script to remove and restore the default route for your router. Or ... maybe you don't need a default route for the router if you don't access anything through it beyond the LAN.

I have no idea about the ARP proxy. Hopefully that issue will go away when you get the default route straightened out. :

EDIT: Clarification and correction: After having had a chance to review the man page , it appears pppd needs the defaultroute option to set the default route. (But I think most distros include this by default for dialup.) And newer versions of pppd have a replacedefaultroute option which I think is self explanatory.

Last edited by blackhole54; 02-24-2008 at 10:52 PM.
 
Old 02-24-2008, 07:19 AM   #55
nekkutta
LQ Newbie
 
Registered: Feb 2008
Distribution: Slackware 12
Posts: 22

Rep: Reputation: 15
Blackhole, you are the man (or woman... sorry don't know) I will definately give that a try, yeah kppp and pppd has connect and disconnect scripts, so I will look at exactly where each of those run through the syslog debug, should be easy enough doing an echo to the syslog facility in each script.

yeah, my router only handles dhcpd for my lan, trust me, if I had broadband I wouldn't be having to deal with this ppp junk, but my only option is satellite and I'm not paying $100 a month for that high latency BS connection So I am also going to look at where the default route gets set, I'm sure it has to do with the dhcp client, so looks like I see some man pages in my future.

Thanks again!
nekkutta
 
Old 02-24-2008, 10:45 PM   #56
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
Originally Posted by nekkutta View Post
yeah, my router only handles dhcpd for my lan, trust me, if I had broadband I wouldn't be having to deal with this ppp junk, but my only option is satellite and I'm not paying $100 a month for that high latency BS connection So I am also going to look at where the default route gets set, I'm sure it has to do with the dhcp client, so looks like I see some man pages in my future.
I have just edited my last post. The replacedefaultroute might be a useful pppd option for you. I am not sure it restores the original default route on exit, but it sounds like that doesn't matter for your setup. Another option would be to manually configure the ethernet interface on this one machine and don't give it a default route. (Make sure the IP address you assign doesn't conflict with what the router hands out to the other machines.) You may want to give it a static IP address anyway if you want other machines to use it for an Internet gateway. (You don't want your gateway suddenly changing IP address on you!)

If you use either of these options, I don't think you need to worry about adding scripts to kppp.
 
Old 02-26-2008, 10:46 AM   #57
nekkutta
LQ Newbie
 
Registered: Feb 2008
Distribution: Slackware 12
Posts: 22

Rep: Reputation: 15
found

well I found the gateway issue for the LAN's dhcp, I just threw this line in my rc.d/rc.inet1.conf: DHCP_KEEPGW[0]="yes"

I also had to add the IP of the gateway to the kppp account configuration and check the replace default gateway checkbox. and I was online! thanks for the help, I like using Slackware, but b/c its such a core Linux distro, there's really not many 'wizards' but that's fine with me, at least now I know how to use the route command I really need to get a handle on the iptables now, no need leaving my system wide open, although I'm not always connected, its not a huge priority.

Again, I give my thanks!
nekkutta
 
  


Reply

Tags
modem


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
xorg issue in slack 11 mm0204 Slackware 7 03-29-2007 11:35 AM
Slack 11, mouse issue itsjustme Slackware 5 10-09-2006 10:57 PM
Slack 10.1 with 2.6.12 pcmcia issue byondrch Slackware 3 08-23-2005 08:21 PM
Slack 10.1 -- Mouse issue / X11 issue Pozican Linux - General 4 04-19-2005 04:44 AM
cpu issue w/ slack 9.0 RIgimp75 Slackware 8 06-16-2003 10:14 PM


All times are GMT -5. The time now is 03:32 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration