Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-05-2010, 04:13 PM
|
#1
|
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
|
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.
|
|
|
03-05-2010, 04:37 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
03-05-2010, 04:41 PM
|
#3
|
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
|
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
|
|
|
03-05-2010, 04:45 PM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
check my edits in my first reply.
|
|
|
All times are GMT -5. The time now is 06:30 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|