LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-26-2001, 05:02 PM   #1
spadesmaster
LQ Newbie
 
Registered: Dec 2001
Posts: 8

Rep: Reputation: 0
Help: Want Linux Web server BEHIND NAT using port mapping


I want to run a Web server BEHIND a NAT firewall by mapping the public IP ports to the Linux server. Do I need to do anything special on the Linux side to make this work?

I have a single static IP for my ZyXEL DSL router that supports NAT + port mapping. I want to move our DNS + development Web server which currently has its own public IP over to our new network and use the port mapping to map everything over to the Linux box. This way I can use NAT for all our PCs and still run our DNS, Web, etc. by mapping them to our Linux server.

So, now for my question, I know how to map the ports on the ZyXEL router to point to my Linux server (which I have assigned 192.168.1.5 in my LAN). To enable the Linux machine as a NAT *client* (I only have a single LAN Ethernet coming into the Linux machine) do I have to do anything? Windows machines are automatic, but I doubt Linux is. I am currently running RedHat 6.1 and wondering if I need any extra modules, netconf settings, or if I just plug it in that it will work?

I am fairly certain that the port mappings will take care of the services and that the Linux box can handle requests getting routed from its public IP to its internal IP just fine. What I am not sure of is if the outbound connections will work fine (i.e. if Linux will detect the NAT gateway and use it like any other NAT PC would).

In case it matters, the services I would need are: DNS (several domains), Mail, WWW, Telnet (which we are phasing out), SSH, and FTP.

Blitzkrieg ('tanks in advance),
Christopher (chrisw@spamcop.net)
http://dq.com
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Cannot start Web Server on port 80 - Linux Mandrake 9.2 sptb Linux - Newbie 4 06-14-2005 03:34 PM
mapping to a windows share and using files for a web server rstoutmna Linux - Networking 0 12-20-2004 11:47 AM
Apache 2 web server behind NAT router rober Fedora 4 12-15-2004 08:07 AM
cant access web server behind NAT/firewall vermaamitabh Linux - Security 3 11-10-2004 12:43 PM
Forward port port 80 to lan web server dulaus Linux - Networking 9 10-04-2002 04:45 AM

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

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