snat --persistent
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->facebookip1->twitter
ip1->something-else.com
- Or for each connection IP will be chosen randomly? ip3->facebookip7->twitterip233->something else
Hello,
Quoted 1 line
1. What does "client" mean? An IP, process?
Source IP-address.
Quoted 1 line
- 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.
Quoted 1 line
- 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.
Signature · 1 line
wbr, Oleg.
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?
Quoted 5 lines · On Monday 2010-04-26 21:18, [email protected] wrote:
Did I understand write that connection means
myserver->twitter, andmyserver->facebookwill 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.