LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-19-2002, 11:32 AM   #1
wonderpun
Member
 
Registered: Aug 2002
Location: Geekland, Planet Earth
Distribution: Slackware 9.1
Posts: 323

Rep: Reputation: 30
Router


Hi there!
I thought I knew this but after spending a couple of hours reading the manuals I understood that it's not so easy. Could someone please help me? Here's the situation: There's a server/router with Linux Slackware 8.1 on it. And a network of 25 PC's with Windows XP's which must go out into the internet through the server/router. I want to configure the router so that it could connect to the DSL line and so that other PC's could go to the internet through the server. Can anyone suggest how can I configure the router so that it's IP in the Local Network would be 172.16.0.1 and the netmask would be 255.255.254.0 The other PC's would be 172.16.0.2 172.16.0.3 and etc. How can I do this? Ohh, and the DSL is using a dynamic IP. Thanks very much in advance!
 
Old 09-19-2002, 06:54 PM   #2
gway
LQ Newbie
 
Registered: Sep 2002
Distribution: Slackware
Posts: 24

Rep: Reputation: 15
Hi,
well, you first set the ADSL in Slackware, see the ADSL HOWTO for documentation on how to do that. Second, edit /etc/rc.d/rc.inet1 and set NETMASK to the netmask you want (you can also configure the IP in that same file).
Enable ip forwarding with

echo 1 > /proc/sys/net/ipv4/ip_forward

And configure your firewall to masquerade the internal lan. You do that with:

iptables -A FORWARD -o ppp+ -j MASQUERADE

which means, masquerade any packet going out thru any ppp<something> interface (where <something> may be 0, 1, etc..
I think you are done with that.

-- Gway
 
Old 09-20-2002, 09:32 AM   #3
wonderpun
Member
 
Registered: Aug 2002
Location: Geekland, Planet Earth
Distribution: Slackware 9.1
Posts: 323

Original Poster
Rep: Reputation: 30
Thank you very very very much.
 
Old 09-20-2002, 08:14 PM   #4
gway
LQ Newbie
 
Registered: Sep 2002
Distribution: Slackware
Posts: 24

Rep: Reputation: 15
C'mon, its been a pleasure !!

-- Gway
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Small Linux Router/firewall behind D-Link Hardware router dleidlein Linux - Networking 6 04-30-2007 05:12 AM
Linux Router & Netgear Wireless Router DMaCATO Linux - Wireless Networking 1 04-30-2004 09:16 AM
/etc/resolv.conf configuration when behind a router(not a linux router) rmanocha Linux - Networking 2 04-28-2004 01:52 AM
Mandrake Firewall/router networked to US Robotics 8000A router jrzplace Linux - Networking 0 11-17-2003 04:48 PM
ADSL Router + Linux Router + LAN = HELP!!! linuxlois Linux - General 2 09-16-2003 08:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:20 AM.

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