?
Solved

Linux to Linux PPP

Posted on 1998-07-16
2
Medium Priority
?
324 Views
Last Modified: 2010-03-18
Anyone out there know how to establish a PPP link between two Redhat 5.0 boxes.  I have a server co-located at my ISP's site and another server at a remote site.  I want the server at the remote site to dial into the server at my ISP's location and establish a 24 X 7 PPP connection.  I'm using modems at both ends.

I've gotten to the point where I can dial-in to the server at my ISP from the remote system using mincom without
any problems.  PPPD is running on both servers but, I can't seem to authenticate a login and establish a PPP
connection.  I need to know specifically what files I need to modify and what scripts are needed to establish the PPP link.  The remote Redhat 5.0 system is attached to a LAN,  and the users on the LAN need to have
internet access for email, web browsing etc.
0
Comment
Question by:mspraggins
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
marcelofr earned 600 total points
ID: 1585174
You have solved the hard part...

In the client side:

1) Compile a kernel with ppp and firewalling support

2) in Xwindows, in control-panel, network configuration, configure a ppp conection. If you have fixed ip numbers, write them, if you don't. ppp will negotiate them. Tell it to set the default ruote.

3) If you want to connect on demand, tell it not to connect on boot, get diald* (from ftp.redhat.com/contrib) and install them, and check the configuration file /etc/sysconfig/dialdcfg.

4) You must check ip forwarding box in routes configuration dialog.

5)Add the following TWO lines to /etc/rc.d/rc.sysinit:

echo 1 > /proc/sys/net/ipv4/ip_dynaddr
/usr/sbin/ipfwadm -F -a masq -S ip_of_your_internal_net/netmask -D 0/0

6) point your internal clients default route to the linux box...

In your ISP box:

1) make an small script starting pppd. Have a look at the man. You need to specify local and remote ips...

2) add an account giving it the newly created script. If it's an unprivileged one, you'll need a setuid pppd.

Enjoy.

Some considerations: Unless you have any problems, in both sides user /dev/ttyS*, not /dev/cua* or /dev/modem. Read the man of all commands involved. Ask if you I didn't make myself clear.

Good Luck,

-- Marcelo
0
 

Author Comment

by:mspraggins
ID: 1585175
Thanks for the detailed answer.  You have filled in the holes to my proble with the scripts and files needing creation and modification!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question