Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 370
  • Last Modified:

Linux Dial in question

Hello All, Well I have been trying to set-up a Linux dial in server. I think I have everything configured properly, but it seems like the remote is not getting an IP. I am using mgetty, and it runs fine. On remote system (Win ME) I can I use the "open dialog window" option to log into linux shell, and execute ppp ( it does this automatically via AutoPPP). My logs show that it is connected. When I use "w" command it shows the user is logged in. My ppp log shows a connection on ppp0. At this point I really don't know what to expect but when I press continue on remote computer it hangs on "verifying username and password". I figure it is not establishing IP conectivity as remote does not get an ip and neither does modem on linux box, not sure if thats the next step in process. I guess my question is what do I do next?

Thnx in advance!

GR
0
GR999
Asked:
GR999
  • 5
  • 2
1 Solution
 
heskyttbergCommented:
Hi!

I'm not sure how to set the IP for your remote linux ppp modem. But in order for the Win ME to get an IP you need to setup DHCP server on the linux server.

Regards
/Hans - Erik Skyttberg
0
 
GR999Author Commented:
Ok I set up DHCP, my eth1 can pick up a address via DHCP, so it is working. I am still getting an error of ICPC: Timeout sending config request, when I try to dial in from Win ME computer. I am capable of dialing out on both Win ME and Linux. I don't what ICPC error means. User gets authenticated but hangs after that. Anymore clues?

Thanx,
GR
0
 
GR999Author Commented:
This is what I get from my log:


pppd 2.4.1 started by a_ppp, uid 0
Mar 1 06:01:39 Jimmy pppd[895]: Using interface ppp0
Mar 1 06:01:39 Jimmy pppd[895]: Connect: ppp0 <--> /dev/ttyS4
Mar 1 06:01:42 Jimmy pppd[895]: user foster logged in
Mar 1 06:01:50 Jimmy pppd[1057]: pppd 2.4.1 started by a_ppp, uid 0
Mar 1 06:02:42 Jimmy pppd[895]: IPCP: timeout sending Config-Requests
Mar 1 06:02:42 Jimmy pppd[895]: Connection terminated.


0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
heskyttbergCommented:
Hi!

Did you remember to tell dhcpd daemon to send out on ppp0 too ?

If you do like this:
ps -ef | grep dhcp

You should see something like:
/sbin/dhcpcd -n eth0

In order for ppp0 to get IP, you need to add:
/sbin/dhcpcd -n ppp0

I think you should also put ppp0 and eth0 on diffrent subnets so you can route traffic through too your local LAN when dialing in you need that.

If you are using redhat this can be done in:
/etc/sysconfig/dhcpd

Just set DHCPDARGS=-n ppp0
Or maybe DHCPDARGS=-n ppp

I'm a little onto deep water here, cause on my Linux box I have no /dev/ppp0 device I only have /dev/ppp.

I haven't dug too deep into this area yet, I was going to build an smart answering machine, but my current modem dosen't support voice so I need to get another one.

Well anyway....

I hope any of this info helps.

Regards
/Hans - Erik Skyttberg

0
 
GR999Author Commented:
Ok this is not working. This maybe a dumb question, but how do I assign an IP address to my linux modem. The linux modem does not even get an ip. When I see the connection established on ppp0, I ifconfig and it shows its not up. I tried using the commnads u gave for the dhcp server but since ppp0 is never up until a connection is made I cannot assign an ip to it. Even when I am able to assign an ip to the modem, it doesn't take. When I do dial-out on the modem I can see it passes the local:remote ip's, as setup in the /etc/ppp/options, just not when a dial-in is initiated.

GR
0
 
GR999Author Commented:
Well Hans I got it too work. Ended up being a issue with CBCP within pppd. I upgrade ppp to a higer version and fixed it. I appreciate your help. Good luck with the answering machine, sounds neat.

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=55367

GR
0
 
GR999Author Commented:
Although I found the fix myself, I appreciate your effort.

Thx,
GR
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 5
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now