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 03-05-2010, 04:13 PM   #1
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
multiple public ip one server


forgive if this has been asked before but say i have a commercial ISP connection with 5 IP addresses available and i want the following configuration
note when i say domain group i am refering to a group of top level domains (not subdomains) owned by the same entity (company) with their A records pointed at the same public IP
for a single server
Code:
domain group 1 -> x.x.x.1 \
domain group 2 -> x.x.x.2  \
domain group 3 -> x.x.x.3   > y.y.y.1
domain group 4 -> x.x.x.4  /
domain group 5 -> x.x.x.5 /
or
for a server farm
Code:
domain group 1 -> x.x.x.1 \__y.y.y.1
domain group 2 -> x.x.x.2 /
domain group 3 -> x.x.x.3 \__y.y.y.2
domain group 4 -> x.x.x.4 /
domain group 5 -> x.x.x.5 ___y.y.y.3
can this be done with say a cisco router with one wan port and a switch on the internal network? if not can it be done with a linux box and iptables/ipchains?

Last edited by frieza; 03-05-2010 at 04:15 PM.
 
Old 03-05-2010, 04:37 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
Youre pretty vague on how you actually want this to work. Nice diagrams don't make a good description unnecessary. But, yeah, it looks like you just want a nat, nothing "interesting" at all to be honest, if I read it right. It's certainly strange to deliberately make your DNS records overly complicated and then have to put in more work on the nat side. If you only have one internal server, why bother with 5 public IP's in the DNS? How are you any better off from doing that? Under IOS it certainly makes the NAT more complex as you can just use a single static NAT otherwise.

Check part 3 here http://www.cisco-tips.com/configurin...o-ios-routers/

Last edited by acid_kewpie; 03-05-2010 at 04:44 PM.
 
Old 03-05-2010, 04:41 PM   #3
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Original Poster
Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
ok sorry what i mean is
a router that can respond to multiple IP addresses on it's WAN port and map it to a smaller subset of IP addresses inside the network based on which external ip is requested as opposed to having one router for each public ip addr

i would presume this would be a commercial grade router as opposed to one picked up at wal-mart?

or a dual nic linux box with iptables?
perhaps you could point me in the direction of some documentation on how to set up such a NAT?
i'm not in a huge rush but i am going to need this information relatively soon
 
Old 03-05-2010, 04:45 PM   #4
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
check my edits in my first reply.
 
  


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
multiple web servers with one public ip frieza Linux - Networking 15 02-18-2009 08:12 PM
Multiple Public IP addresses daveginorge Linux - Networking 3 12-07-2008 07:18 AM
Multiple NICs - public and private stormblast Debian 5 04-25-2007 06:02 AM
Router with multiple public IPs Neodymium Linux - Newbie 1 04-13-2004 07:39 PM
Multiple 'public' ip addresses mcleodnine Linux - Networking 3 05-09-2003 03:04 AM

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

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