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 08-27-2001, 06:37 PM   #1
jiplen
LQ Newbie
 
Registered: Jun 2001
Distribution: rh 7.1
Posts: 14

Rep: Reputation: 0
routers


Hi everyone,
I was wondering, I'm considering making an old computer of mine a router in my college dorm room ( I want to have 2 computers running off the internet) 1 is a linux box, the other is a duel boot w/ windows, could someone run through how to set up the routing?

Thanks Jason

ps I'm using redhat 7.1
 
Old 08-28-2001, 07:58 PM   #2
tarballedtux
Member
 
Registered: Aug 2001
Location: Off the coast of Madadascar
Posts: 498

Rep: Reputation: 30
Routing

OK, I understand you have a 2 computers:

1) Linux
2) Linux, Windows (Dual-Boot)

I am assuming you want to use the stand-alone Linux box as the router. Here is the best answer i can give you:

Have ipchains configured for kernel(That is already done in most new (distros)

After you connect to the net on the linux box on any interface( ppp0, ethX), run these simple commands as root:

/sbin/ipchains -P forward DENY
/sbin/ipchains -A forward -i ppp0 -j MASQ
echo 1 > /proc/sys/net/ipv4/ip_forward

To set up the Windows box to use the net:

I am assuming you already have a network link between them that they both recognize. (i.e. ping each other)

Control Panel | Network | (Find the NIC) | Properties | Gateway | enter the ip addres of the Linux box Restart Windows


In this config the Win/Linux box uses the stand-alone Linux box as the gateway to thew net.

That would be the quick way of doing it. There way be details i left out. You can email me: drewkennerly@hotmail.com
 
Old 08-29-2001, 12:29 PM   #3
coopergr
LQ Newbie
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Red hat
Posts: 9

Rep: Reputation: 0
Cool

Have you tried the following :

www.linuxrouter.org

???

L8R.
 
Old 08-29-2001, 12:43 PM   #4
SensFan
Member
 
Registered: May 2001
Location: Toronto, Canada
Distribution: Slackware
Posts: 67

Rep: Reputation: 15
Interesting guide I found, it uses this http://www.freesco.org/

http://www.viperlair.com/guides/conn...fw/lnx_fw1.htm

if the link doesn't work go to www.viperlair.com and then the guides link.
 
Old 08-29-2001, 06:25 PM   #5
jiplen
LQ Newbie
 
Registered: Jun 2001
Distribution: rh 7.1
Posts: 14

Original Poster
Rep: Reputation: 0
Well, I want to have the router access the internet as a normal computer, is this possible or am I s.o.l.? The reason is I want to keep a linux box on 24 7 until it crashes, with a moderate load like setiathome. I was hoping to have it act as a router also. (So I wouldn't have to spend any money). Is this even possible?

Jason

ps thanks for the multitude of links
 
Old 09-02-2001, 07:45 AM   #6
Steave
Member
 
Registered: Jul 2001
Location: Braunschweig, Germany
Distribution: Suse 7.2
Posts: 184

Rep: Reputation: 30
Running any internet-related software on the router shuldn't be a problem. Your router is a normal computer connected to the internet. All it does is forwarding and masquerading some packets...

Have fun!
 
  


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
can i have more than 1 routers? dimgr Linux - Wireless Networking 19 11-21-2004 01:47 PM
Routers New2Lindows Linux - Hardware 5 08-16-2003 06:51 PM
routers ralisch General 16 07-18-2003 03:14 PM
routers help please? indy317 Linux - Networking 4 07-14-2003 01:11 PM
Routers... bac()n Linux - Newbie 3 03-28-2003 11:26 PM

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

All times are GMT -5. The time now is 11:54 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