Linux Netfilter discussions
 help / color / mirror / Atom feed
* multiple public ips to multiple internal ips
@ 2010-01-30 21:10 Patrick Chemla
  2010-01-31  6:42 ` Patrick Chemla
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick Chemla @ 2010-01-30 21:10 UTC (permalink / raw)
  To: netfilter

Hi,

I need to setup a router to match multiple public ips to multiple 
internal ips.

I need to do it one by one, because I want it to be dynamic.

I mean: I want to be able to change external ip for a specific server at 
any time. I am building a set of scripts where an internal server will 
request from the router to change his external ip. The router will 
change and reload his configuration dynamically.

I have a set of 10 public ip addresses for about 5 internal servers.

My router is a Linux Fedora 11 box, kernel 2.6.30.10-105.fc11.x86_64 
with iptables-1.4.3.1-1.fc11.x86_64 installed.

Is there somewhere a step by step howto to help me configure iptables? 
Maybe a thread in this list?

I checked some threads but I found only configurations for range of ips, 
not for individual ips.

I checked some iptables Howtos: There are a lot about one public ip to 
multiple internal, I haven't found any on multiple to multiple.

Thanks for help
Patrick


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: multiple public ips to multiple internal ips
  2010-01-30 21:10 multiple public ips to multiple internal ips Patrick Chemla
@ 2010-01-31  6:42 ` Patrick Chemla
  2010-01-31 21:15   ` Sven-Haegar Koch
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick Chemla @ 2010-01-31  6:42 UTC (permalink / raw)
  To: netfilter

Hi all,

I would like to add a question:

I am quite a newbie in this field.

If one of my network interface is connected to the public side, and 
receive 16 public ips from my ISP, do I have to declare 16 alias to my 
network interface?

If there are 128 ips, I should declare 128 aliases???

Thanks
Patrick


Le 30/01/2010 23:10, Patrick Chemla a écrit :
> Hi,
>
> I need to setup a router to match multiple public ips to multiple 
> internal ips.
>
> I need to do it one by one, because I want it to be dynamic.
>
> I mean: I want to be able to change external ip for a specific server 
> at any time. I am building a set of scripts where an internal server 
> will request from the router to change his external ip. The router 
> will change and reload his configuration dynamically.
>
> I have a set of 10 public ip addresses for about 5 internal servers.
>
> My router is a Linux Fedora 11 box, kernel 2.6.30.10-105.fc11.x86_64 
> with iptables-1.4.3.1-1.fc11.x86_64 installed.
>
> Is there somewhere a step by step howto to help me configure iptables? 
> Maybe a thread in this list?
>
> I checked some threads but I found only configurations for range of 
> ips, not for individual ips.
>
> I checked some iptables Howtos: There are a lot about one public ip to 
> multiple internal, I haven't found any on multiple to multiple.
>
> Thanks for help
> Patrick
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: multiple public ips to multiple internal ips
  2010-01-31  6:42 ` Patrick Chemla
@ 2010-01-31 21:15   ` Sven-Haegar Koch
  0 siblings, 0 replies; 3+ messages in thread
From: Sven-Haegar Koch @ 2010-01-31 21:15 UTC (permalink / raw)
  To: Patrick Chemla; +Cc: netfilter

On Sun, 31 Jan 2010, Patrick Chemla wrote:

> I would like to add a question:
> 
> I am quite a newbie in this field.
> 
> If one of my network interface is connected to the public side, and 
> receive 16
> public ips from my ISP, do I have to declare 16 alias to my network 
> interface?
> 
> If there are 128 ips, I should declare 128 aliases???

Why not just route the real ips on to the real servers? Why use 
internal IPs for the servers and DNAT at all on their public side?

Filtering can happen just as good on the real IPs, no need to hassle
with NAT.

c'ya
sven

-- 
Three may keep a secret, if two of them are dead.
- Ben F.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-01-31 21:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-30 21:10 multiple public ips to multiple internal ips Patrick Chemla
2010-01-31  6:42 ` Patrick Chemla
2010-01-31 21:15   ` Sven-Haegar Koch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox