LinuxQuestions.org
Help answer threads with 0 replies.
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 05-30-2004, 10:08 AM   #1
Norky
LQ Newbie
 
Registered: Jun 2003
Posts: 6

Rep: Reputation: 0
Redhat 9 Gateway


I have a box running RedHat 9. In it, it has my wifi card (connecting to router for internet) and the ethernet card that connects to my main Windows box.

I want to use the Linux box as a webserver as well as an internet gateway for my main box.

I have been looking at numerous different ways of creating a gateway, but am not sure which one to use. Because the Linux box will be used as a webserver and nothing much else, I want a way to set it to forward all ports to my main box except for the web port (80).

Which is the best method for doing this?
 
Old 05-30-2004, 12:34 PM   #2
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820

Rep: Reputation: 46
Iptables can do all of your port forwarding needs. You want to read the masquerading how-to, and the iptables how-to. It is not as hard as it sometimes seems. Below are two google searches to get you started. If you get stuck post the rule that is broken and we can help get it working.

http://www.google.com/search?q=Masqu...utf-8&oe=utf-8>
http://www.google.com/search?q=iptab...utf-8&oe=utf-8>

Last edited by Pcghost; 05-30-2004 at 12:35 PM.
 
Old 05-30-2004, 01:14 PM   #3
Norky
LQ Newbie
 
Registered: Jun 2003
Posts: 6

Original Poster
Rep: Reputation: 0
I've read through both those guides, but still don't have a clue



Perhaps someone could write me the script I need?

Incoming requests for port 80 to my WAN interface go to the Linux box (127.0.0.1?)
Incoming requests for every other port to my WAN interface go to 192.168.0.2

Also, once this is configured do I just put in my Linux box as the gateway IP in Windows or do I have to do anything else to make Linux share the connection?

Last edited by Norky; 05-30-2004 at 01:16 PM.
 
  


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
how to configure gateway on redhat 9??? ropunk Linux - Networking 2 07-07-2004 11:16 AM
setting up redhat 9 gateway? motiv8x Linux - Networking 2 09-17-2003 08:09 PM
RedHat 9.0 on a Gateway 1450 vogelm Red Hat 2 09-14-2003 04:39 PM
networking xp through redhat gateway linker Linux - Networking 1 07-17-2003 11:07 PM
RedHat 7.3 as Gateway/Firewall NegativeZERO Linux - Networking 6 12-02-2002 12:57 PM

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

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