LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-07-2004, 09:48 AM   #1
mrtwice
Member
 
Registered: Feb 2002
Distribution: xubuntu 8.10
Posts: 225

Rep: Reputation: 31
pppd (modem) connection on firewall / gateway


I am going to be using a slackware 9.1 box for an internet gateway/firewall to our dial-up ISP.

So far, I have got pppd working correctly using pppsetup. I start it with ppp-start and stop it with ppp-stop. Now, I want to set it up to start at boot and then reconnect if it loses the connection or if the initial connection didn't make it for some reason (i.e. line busy etc.). I would also like to know if there is a way to make pppd get the DNS servers IPs automatically, pppsetup made me put them in, but when I use windows, it gets them automatically.

I know that I could just put ppp-start in my rc.local file to get the connection turned on at startup, but that doesn't seem like the best way of doing it.

Also, I am going to be using jay's firewall to make my IPTABLES rules. Is there anything I am going to need to consider because my external IP address will be changing or because the ppp0 interface may be appearing and disappearing as connections come up or go down? Anything else that might be different as compared to a box with two ethernet cards acting as a firewall?

Thanks in advance.
 
Old 01-09-2004, 05:27 AM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Don't know about the Slack init.d system, never seen one,
but there are scripts to bring the interface up at boot time.
They will refer to a config file which holds the dns auto, default route and other options you are looking for.

As for the firewall, you need to be using MASQUERADE instead of SNAT rules.
As I remember, Jay's script will do this automatically coz the modem is on a ppp~ interface which is usually a masqueraded interface.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pppd problem with idle connection g0ng Linux - Networking 1 08-04-2005 07:31 AM
pppd keeps terminating connection gkiagia Linux - Networking 9 06-15-2005 12:07 PM
pppd, gateway, nu? wheelsg Linux - Networking 0 02-17-2004 03:12 PM
IPFW Firewall pppd based ROTWEiLER *BSD 2 07-01-2003 02:44 AM
PPPd connection trouble dbeard Linux - Networking 0 02-12-2001 09:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration