Solved

Linux to Linux PPP

Posted on 1998-07-16
2
310 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
2 Comments
 
LVL 3

Accepted Solution

by:
marcelofr earned 150 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help instaling linux on vmware 36 85
php54-php-imap for redhat enterprise linux 7.2 1 85
dns master and slave in linux 2 69
Linux Hanging with disable Error Output 4 83
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…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

808 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