All of lore.kernel.org
 help / color / mirror / Atom feed
* random IP
@ 2005-12-23 12:31 Pedro TRImel Neto
  2005-12-23 13:09 ` Rob Sterenborg
  0 siblings, 1 reply; 2+ messages in thread
From: Pedro TRImel Neto @ 2005-12-23 12:31 UTC (permalink / raw)
  To: netfilter

Hi all,

I need to do that the connections from a linux box to other change the IPs 
in random...

Scenario: A Linux box that has an phisic interface and two logic as eth0 
eth0:0 eth0:1 with the ips 10.0.0.1 10.0.0.2 10.0.0.3

I did this rule:
iptables -t nat -A POSTROUTING -p tcp -d 10.0.0.4 -j SNAT --to 10.0.0.2

OK but I need that when do a ssh 10.0.0.4 each time it change de IP ... one 
time with 10.0.0.1 the other 10.0.0.2 or 10.0.0.3... Or a rule per user... 
example the user pedro has a rule that when he connect to 10.0.0.4 the IP 
will be 10.0.0.2...

Sorry for my bad english...

Regards. 



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

* Re: random IP
  2005-12-23 12:31 random IP Pedro TRImel Neto
@ 2005-12-23 13:09 ` Rob Sterenborg
  0 siblings, 0 replies; 2+ messages in thread
From: Rob Sterenborg @ 2005-12-23 13:09 UTC (permalink / raw)
  To: Pedro TRImel Neto; +Cc: netfilter

On Fri, December 23, 2005 13:31, Pedro TRImel Neto wrote:
> Hi all,
>
> I need to do that the connections from a linux box to other change
> the IPs in random...
>
> Scenario: A Linux box that has an phisic interface and two logic as
> eth0 eth0:0 eth0:1 with the ips 10.0.0.1 10.0.0.2 10.0.0.3
>
> I did this rule:
> iptables -t nat -A POSTROUTING -p tcp -d 10.0.0.4 -j SNAT --to
> 10.0.0.2
>
> OK but I need that when do a ssh 10.0.0.4 each time it change de IP
> ... one time with 10.0.0.1 the other 10.0.0.2 or 10.0.0.3... Or a
> rule per user...
> example the user pedro has a rule that when he connect to 10.0.0.4
> the IP will be 10.0.0.2...

Do you want some kind of load-balancing ?
If so, a few days ago there was a post here on how to do that.


Gr,
Rob




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

end of thread, other threads:[~2005-12-23 13:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-23 12:31 random IP Pedro TRImel Neto
2005-12-23 13:09 ` Rob Sterenborg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.