View previous topic :: View next topic |
Author |
Message |
Mythos l33t


Joined: 02 May 2004 Posts: 953 Location: Portugal
|
Posted: Mon Jul 21, 2008 4:33 pm Post subject: Pound Maintain Cliente IP Address |
|
|
Hi there to all, i am here struggling to maintain http client IP address to my web site with Pound.
I have one Ip Public, and i have 2 internal web sites one 192.168.2.11 and another 192.168.2.12 both serving at port 80
pound.cfg
Code: | ## global options:
User "xxxx"
Group "xxxx"
LogLevel 2
Alive 30
ListenHTTP
RewriteLocation 0
Address 123.123.123.1
Port 80
xHTTP 0
Service
HeadRequire "Host: a.test.com.*"
BackEnd
Address 192.168.2.11
Port 80
End
End
Service
HeadRequire "Host: b.test.com.*"
BackEnd
Address 192.168.2.12
Port 80
End
End
End |
To to that i need to nat port 80 but how can i do that if i have only one public ip and
two webservers with the same destination port 80.
It's possible to do that or there are any other way to to this? _________________ Best Regards,
Sérgio Henrique
Linux dune 3.0.6-gentoo #1 SMP Thu Oct 27 16:47:29 WEST 2011 x86_64 Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz GenuineIntel GNU/Linux |
|
Back to top |
|
 |
dialsc n00b

Joined: 09 Dec 2007 Posts: 31 Location: Switzerland
|
Posted: Tue Aug 19, 2008 3:03 pm Post subject: |
|
|
hi mythos,
what is the thing you actually want to achieve? do you want the clientIpAddresses to be visible at the backend servers? |
|
Back to top |
|
 |
Mythos l33t


Joined: 02 May 2004 Posts: 953 Location: Portugal
|
Posted: Mon Aug 25, 2008 9:55 am Post subject: |
|
|
dialsc wrote: | hi mythos,
what is the thing you actually want to achieve? do you want the clientIpAddresses to be visible at the backend servers? |
Yes in did.
Cheers,
Sérgio Machado _________________ Best Regards,
Sérgio Henrique
Linux dune 3.0.6-gentoo #1 SMP Thu Oct 27 16:47:29 WEST 2011 x86_64 Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz GenuineIntel GNU/Linux |
|
Back to top |
|
 |
dialsc n00b

Joined: 09 Dec 2007 Posts: 31 Location: Switzerland
|
Posted: Mon Aug 25, 2008 12:11 pm Post subject: |
|
|
hi,
to get this achieved i've installed an apache module called extract_forwarded.
here is an example configuration:
Code: |
<IfDefine EXTRACT_FORWARDED>
<IfModule !extract_forwarded_module>
LoadModule extract_forwarded_module modules/mod_extract_forwarded.so
</IfModule>
MEForder refuse,accept
MEFrefuse all
# Just to be more flexible we use the dns name of
# the server running our reverse proxy (pound)
# here.
#MEFaccept 192.168.1.1
MEFaccept myPoundInstall.mydom.local
</IfDefine>
|
as you can see, you need to define for which host the module should try to extract the original client ip.
that's it!
hth,
greez,
dialsc |
|
Back to top |
|
 |
|