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 04-23-2005, 02:19 AM   #1
izrunas
LQ Newbie
 
Registered: Apr 2005
Location: Waynesboro VA
Posts: 1

Rep: Reputation: 0
Question NAT / BIND / Proxy / IPTables???


I have researched an researched and googled myself into a frenzy, but I am not yet finding a reasonable solution to my problem. Any advice would be most helpful!

I have been told by my ISP that I must cut back to a single, static IP address although I have six servers I run right now.

I've found a good article about how to set up web servers behind a single IP, but I'd like something more "broad" because I need more than just a bunch of port 80 redirecting.

Is there such a thing as a "domain forwarding NAT server"? In my ideal world, I would run a NAT server on the single IP that knows how to forward "any" traffic for a particular domain name to a particular internal IP address.

I'm running three Apache web servers, two Lotus Domino servers, a RealServer and a mail server.

Can anyone point me in the right direction?

Thank you in advance for any advice!
 
Old 04-24-2005, 01:53 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well a domain name, and IP traffic are at totally different layers, so there's little way to relate the two areas. There are a number of ways to get something functional from your situation, but not what you actually descibe AFAIK. Not least because this traffic most liley won't contain a reference to the domain anyway. HTTP traffic will, but that's only implicit in the data structures of HTTP. Most traffic is resolved purely by IP once DNS resolves the domain.

the Apache part is dead easy. use mod_proxy on one server (nominate a primary server, or start a low power dedicated proxy installation) to redirect http traffic to the internal sites. you don't even need apache to do a basic version of this... http://mail.python.org/pipermail/pyt...ne/168957.html this appears to do the trick, and can easily be slotted onto an existing firewall box, based on ipcop (i use this) or SmoothWall etc...

Realserver and Mail... if these are single instances, just use a firewall box (ipcop / SW) to forward those ports to the right machine. again, not what you want.. but effectively the same.

Lotus though... i know nothing abuot Lotus notes servers, but to get past it, i'd only be able to suggest using different external port numbers (again - ipcop / SW). This does of course leave the issue of migrate all Notes users of one of the domains to the new port number. Alternatively if you know where this traffic is coming from per domain (maybe it's two different companies using static external IP's??) then you can set up routing on a single port per client IP. Also, having just made this up - don't count on it, maybe there are third parties who can host your domain and proxy the requests back to you via alternative port numbers?

Last edited by acid_kewpie; 04-24-2005 at 03:35 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
Proxy behind NAT Tihi Linux - Networking 1 03-11-2005 03:01 PM
BIND and /etc/hosts + NAT kilou Linux - Networking 0 07-13-2004 07:02 PM
Help With Bind,squid,nat And Proxy debloxie Linux - Networking 0 01-20-2004 05:43 AM
Help With Bind,squid,nat And Proxy debloxie Linux - Networking 1 01-19-2004 05:40 PM
I Need Help With Bind,squid,nat & Proxy debloxie Linux - Networking 0 01-19-2004 08:27 AM

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

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