Link to home
Start Free TrialLog in
Avatar of ggets
ggets

asked on

Connect to ISP using /etc/ppp/ppp-on

Hi All...

I am trying to use the ppp-on script to connect to my ISP. When I run the script, it establishes a serial connection, then attempts to connect ppp0 to /dev/tyys0.

the next message in the log is

Peer not authorized to use remote address 196.2.56.2

This is the IP address of my ISP

What is wrong?
Avatar of MFCRich
MFCRich

Do you use the accept-remote-ip option for pppd? You should.
Avatar of ggets

ASKER

I am a newbie at linux - where do i set that up?
You can give this option on the command line of pppd but it is more convenient to put it in one of pppd's configuration files. There are a number of file in the directory /etc/ppp that allow you to costumize your ppp connections. Put a line that says 'accept-remote-ip' in the file /etc/ppp/options. This means that your machine will accept your ISP's machine claimed IP address.

For the full poop on pppd you should read the man page on pppd (Type man 8 pppd). If your a newbie to the unix-type world it may look a bit "geeky" but I strongly recommend learning how to use these manual pages since there is a wealth of information for all aspects of your system.

On the pppd man page you will probably see all kinds of options you might like to use to tweak your connection but in practice only a minority of these options are used. Feel free to experiment though cause there is nothing like trying things out to help you learn a new system and Linux will let you try just about anything. Its quite a blast.

Also you said that ppp0 connects to ttyS0. Are you sure this is correct? If you are using a serial mouse it is most likely on ttyS0 and your modem would be ttyS1. If you hear your modem dialing then you are alright on this matter.

If you wonder wether or not your ppp connection has worked you can type 'ifconfig' after you connect. This will show you the state of all your active interfaces. You should (almost)always see an interface called 'lo' and one called 'ppp0' if you are connected. You may also see 'eth0' if you are on an ethernet network.

ggets,
You have a few old opened questions that I would like very much if you would take care of in the next 72 hours.  Unfortunatley, if you do not take care of them within 1 week, I am obligated to ask administration to review your account.  I am providing a handy list for you to get to your questions.  Thanks for your cooperation.  If you need help with finalizing any of these questions, drop a note here and I'm happy to help.

https://www.experts-exchange.com/questions/20329270/ISAPI-Filter-fails-when-i-use-database.html
https://www.experts-exchange.com/questions/20269882/XML-Mapper.html
https://www.experts-exchange.com/questions/20227857/ERROR-Running-word-automation-object-in-ASP-Page.html
https://www.experts-exchange.com/questions/20159286/No-Refresh-Please.html
https://www.experts-exchange.com/questions/20090247/Connect-to-ISP-using-etc-ppp-ppp-on.html

SpideyMod
Community Support Moderator @Experts Exchange
Avatar of ggets

ASKER

Hi SpidyMod,

Most of these question were posted just before I was 'shipped' to the Uk and therefor most are not relevant at the moment.

Can you delete this one as I never got the chance to try it out.

Thanks
A request for deletion has been made in the above statement.  Experts, you have 72 hour to object.  In the meantime, I will solicit the help from another moderator who may be familiar with this and see if the answer appears to be correct.  If it does, then I will award the points.  If an objection is made, I will take that into consideration when I finalize.  If another moderator cannot determine if it is correct or incorrect and there are no objections, I will PAQ with a refund.

SpideyMod
Community Support Moderator @Experts Exchange
ASKER CERTIFIED SOLUTION
Avatar of SpideyMod
SpideyMod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial