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: 335
  • Last Modified:

Linux to Linux PPP

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
mspraggins
Asked:
mspraggins
1 Solution
 
marcelofrCommented:
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
 
mspragginsAuthor Commented:
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

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

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