Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Pound Maintain Cliente IP Address
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Mythos
l33t
l33t


Joined: 02 May 2004
Posts: 953
Location: Portugal

PostPosted: Mon Jul 21, 2008 4:33 pm    Post subject: Pound Maintain Cliente IP Address Reply with quote

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
View user's profile Send private message
dialsc
n00b
n00b


Joined: 09 Dec 2007
Posts: 31
Location: Switzerland

PostPosted: Tue Aug 19, 2008 3:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mythos
l33t
l33t


Joined: 02 May 2004
Posts: 953
Location: Portugal

PostPosted: Mon Aug 25, 2008 9:55 am    Post subject: Reply with quote

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
View user's profile Send private message
dialsc
n00b
n00b


Joined: 09 Dec 2007
Posts: 31
Location: Switzerland

PostPosted: Mon Aug 25, 2008 12:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum