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 - 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 11-18-2003, 11:13 AM   #1
shirtboy
LQ Newbie
 
Registered: Oct 2003
Location: Chelmsford, MA
Distribution: Mandrake 9.1, Redhat 9.0
Posts: 7

Rep: Reputation: 0
Arrow Directly connecting RH9 box to ISP (cable), then off to a router to rest of lan?


I've been toying around with Linux for about two months now. I've read some books, some articles online, this board numerous times, etc. etc. But now I want to try something else.

I want to run a web server off my RH9 computer, and after installing Apache, I quickly realized typing my IP would forward to my Linksys Router (BEFW1154 - Wireless router w/ 4 port switch).

Now I'm trying to figure out if I can run the cable connection to my RH9 box, then out to my router, then out to the rest of my network (one XP wired computer, one XP wireless, one Win98SE wired, and one Mandrake wired). I've already established a Samba connection to the rest of the network with both my Linux computers, so I hope that means they would still work under this new configuration. Right now the cable line goes right to the router then off to the rest of the network.

I have already installed another ethernet card in my RH9 box, bringing the total to 2.. So I figure I could have eth0 connect to my private LAN, and eth1 going to the cable modem. But before I do all this rewiring and calling my cable company to change MAC addresses in their files, I was just wondering if that is all possible, and still retain wireless capabilities. Also, I'm not positive what to use, from what I've read IP tables are good, so a push in the right direction would be appreciated.

Thanks!
 
Old 11-18-2003, 11:31 AM   #2
slightcrazed
Member
 
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789

Rep: Reputation: 30
Does your router do port forwarding? If it does, then this is the easiest way to server web pages from a system that is being NAT'd. Just tell your router to forward port 80 to the IP addy of your RH 9 box, and then you can access the page using the external IP addy of the router.

If your router doesn't do port-forwarding, then you'll need to tell the RH box to be a router. It can route all packets (excluding port 80 of course) to teh internal network via the router, whch can then do NAT for the rest of the network.

slight
 
Old 11-18-2003, 12:32 PM   #3
shirtboy
LQ Newbie
 
Registered: Oct 2003
Location: Chelmsford, MA
Distribution: Mandrake 9.1, Redhat 9.0
Posts: 7

Original Poster
Rep: Reputation: 0
I don't know why I couldn't think of that. It does indeed support port forwarding, and I didn't even think of that! Thank you so much for saving me much needed time and hassle.

I love how the most obvious answers are always oblivious to me.
 
Old 11-18-2003, 01:06 PM   #4
slightcrazed
Member
 
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789

Rep: Reputation: 30
Welcome. Glad I could help.



slight
 
Old 11-18-2003, 01:43 PM   #5
mwanaumed
LQ Newbie
 
Registered: Nov 2003
Location: Kenya
Distribution: Mandarake, Slackware
Posts: 5

Rep: Reputation: 0
I have a similar-different situation. My proxy & gateway is RH9, LAN is 192.168.1.X on eth0, cable is ppp0 primarily for uploads, & downlinks is through pentaval0 (dvb). Now working with squid is a slow solution relative to internet gateway solution. it works with squid but i want to take advantage of the fast internet connectivity as that experienced at the server which goes via gateway instead of squid.

How do i represent pentaval0, ppp0, eth0 in iptables so that my LAN ups its speed? In other words, so that i circum~navigate proxying ...?

Thanxs!
 
Old 11-18-2003, 05:25 PM   #6
shirtboy
LQ Newbie
 
Registered: Oct 2003
Location: Chelmsford, MA
Distribution: Mandrake 9.1, Redhat 9.0
Posts: 7

Original Poster
Rep: Reputation: 0
Now that I think about it, is it possible to set my computer to a static IP so I don't have to worry about reassigning it to the router? I know I use DHCP normally but I switch computers in my room all the time so I don't want this computer ( the RH9 one) changing IP's on me. Thanks!
 
Old 11-18-2003, 08:36 PM   #7
slightcrazed
Member
 
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789

Rep: Reputation: 30
Yeah.... that shouldn't be a problem, although I don't think you would have to worry about the IPs changing, even with DHCP. DHCP leases on a small network rarely if ever change.

slight
 
Old 11-18-2003, 10:27 PM   #8
shirtboy
LQ Newbie
 
Registered: Oct 2003
Location: Chelmsford, MA
Distribution: Mandrake 9.1, Redhat 9.0
Posts: 7

Original Poster
Rep: Reputation: 0
Well, thanks alot for the help. Now I just have to figure out how to get Apache running again, so that'll be a whole new days work. Thanks alot!
 
  


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
LAN with router and cable modem moonmoth Linux - Networking 1 07-15-2005 07:25 PM
routing two isp connection to lan using linux box tisson Linux - Networking 2 09-08-2004 08:39 PM
Connecting Windows XP laptop to Redhat Box vis Parallel cable RickyM Linux - Networking 4 05-07-2004 08:01 AM
Trouble connecting my RH9 box to cable modem ikuomanero Linux - Networking 5 04-17-2004 12:41 AM
Connecting Linux box to Internet through Windowx XP box over LAN pcd007 Linux - Networking 1 03-14-2004 09:02 AM

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

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