* snat --persistent
@ 2010-04-26 18:17 mindb0t
2010-04-26 18:34 ` "Oleg A. Arkhangelsky"
0 siblings, 1 reply; 4+ messages in thread
From: mindb0t @ 2010-04-26 18:17 UTC (permalink / raw)
To: netfilter
Hello, I'm using SNAT with --persistent, but I just don't understand
clearly what you ment in its description:
"Gives a client the same source-/destination-address for each connection."
1. What does "client" mean? An IP, process?
2. If I have one server with several IPs.
- Will all my connections go through one IP?
ip1->facebook
ip1->twitter
ip1->something-else.com
- Or for each connection IP will be chosen randomly?
ip3->facebook
ip7->twitter
ip233->something else
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: snat --persistent
2010-04-26 18:17 snat --persistent mindb0t
@ 2010-04-26 18:34 ` "Oleg A. Arkhangelsky"
2010-04-26 19:18 ` Re[2]: " mindb0t
0 siblings, 1 reply; 4+ messages in thread
From: "Oleg A. Arkhangelsky" @ 2010-04-26 18:34 UTC (permalink / raw)
To: mindb0t; +Cc: netfilter
Hello,
> 1. What does "client" mean? An IP, process?
Source IP-address.
> - Will all my connections go through one IP?
Yes, until you don't change source IP. Only original source IP-address is
using in hash function for selecting IP-address from NAT-pool.
> - Or for each connection IP will be chosen randomly?
This is default behaviour. Source and destination addresses are using for
hash value calculation in this case.
--
wbr, Oleg.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re[2]: snat --persistent
2010-04-26 18:34 ` "Oleg A. Arkhangelsky"
@ 2010-04-26 19:18 ` mindb0t
2010-04-26 19:35 ` Jan Engelhardt
0 siblings, 1 reply; 4+ messages in thread
From: mindb0t @ 2010-04-26 19:18 UTC (permalink / raw)
To: "Oleg A. Arkhangelsky"; +Cc: netfilter
Did I understand write that connection means myserver->twitter, and
myserver->facebook will be another connection?
I want to know if it doesn't matter how many time I will request
twitter - it will be only one connection, right?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re[2]: snat --persistent
2010-04-26 19:18 ` Re[2]: " mindb0t
@ 2010-04-26 19:35 ` Jan Engelhardt
0 siblings, 0 replies; 4+ messages in thread
From: Jan Engelhardt @ 2010-04-26 19:35 UTC (permalink / raw)
To: mindb0t; +Cc: "Oleg A. Arkhangelsky", netfilter
On Monday 2010-04-26 21:18, mindb0t@mail.ru wrote:
>Did I understand write that connection means myserver->twitter, and
>myserver->facebook will be another connection?
>
>I want to know if it doesn't matter how many time I will request
>twitter - it will be only one connection, right?
Depends on whether you are using HTTP pipelining or not, but in either
case, rest assured that it can easily be more than one connection.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-04-26 19:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-26 18:17 snat --persistent mindb0t
2010-04-26 18:34 ` "Oleg A. Arkhangelsky"
2010-04-26 19:18 ` Re[2]: " mindb0t
2010-04-26 19:35 ` Jan Engelhardt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox