Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 02-13-2004, 04:12 AM   #1
Registered: Feb 2004
Posts: 273

Rep: Reputation: 30
routing multiple ips - help me!


I've a business account with 6-7 public Ip addresses and I want to route the extra ip addresses without compromising the security. I've a Dlink 504 modem+router ( say) which says it has got multi nat but there is no documentation. I've two linux machines on the lan with just one NIC each (say & 46). I'm using NAT to map the primary public IP to access the machines from outside the Dlink. Now the trouble is how to route the extra public IP address.

1) Should I configure IP aliases on the linux boxes to add & 46, make the int IP of Dlink and then make the machines DMZ? I can use Iptables to block anything suspicious coming on 10.* network. Any internal communication between the machines can take place on 192.* network. Is this safe?

2) Or should I configure the IP aliases on the linux boxes as PUBLIC IP addresses, and disable NAT?

3) Or should I buy another NIC for each machine?

4) Or Should I buy additional routers (say belkin), make it's IP address as external public IP and then port forward it to the machine.

5) I can get another linux box to sit in front of mach 1 & 2 and act as a router with multiple aliases but I don't have the money.

Dlink's multi NAT is a nightmare. How do you route multiple public ip addresses?


Old 02-13-2004, 07:31 AM   #2
LQ Newbie
Registered: Feb 2004
Location: Connecticut
Distribution: RedHat, Debian, Fedora
Posts: 4

Rep: Reputation: 0
I am not really sure of your goal, so I am going to be a bit vague. You can do all of this on your DLINK by adding one NAT rule for each of the six public IP's to the same nic. You can do a port translation so that you can run multiple instances of each service if you wanted. For instance:

Public port 80 >> Private port 80
Public port 80 >> Private port 8080

You could also set up NAT rule on the DLINK (Actually.. I have never used a DLINK router but you SHOULD be able to) to point all traffic going to host >> and you can do that for each IP.

You could put aliases on the Linux box to handle the different IP's if you are trying to host a web site and don't feel like doing the port translation as in example one. (like if you are trying to run a web server for several different sites).

You could create a static route on the DLINK that points all network traffic to the external interface of one of your linux boxes and let Linux be the router that handles everything.

There are a lot of ways to do something like this, but you must have a goal in order to decide the best way to do it.

Last edited by schagnot; 02-13-2004 at 07:33 AM.


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
Routing for eth0 and wlan0 with static IPs on the same network. kelvinlo Linux - Wireless Networking 3 10-15-2007 04:54 PM
how to define a specific range of IPs and/or multiple IPs in an iptables rule?... TheHellsMaster Linux - Security 9 09-20-2004 10:06 AM
routing problem with 2 static (external) IPs gjmwalsh Linux - Networking 3 05-23-2004 09:17 PM
ADSL - Routing Static IPs NiM Linux - Networking 1 03-06-2004 06:57 AM
multiple ips, multiple gateways, one interface drpixel Linux - Networking 6 12-04-2002 12:56 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:05 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration