Solved

Linux to Linux PPP

Posted on 1998-07-16
2
304 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

760 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now