LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   apache proxypass firewall nat (https://www.linuxquestions.org/questions/linux-server-73/apache-proxypass-firewall-nat-790152/)

aclhkaclhk 02-19-2010 04:56 AM

apache proxypass firewall nat
 
i have the following config:

PC -> firewall (nat) -> server 1 (apache:80) -> server 2 (apache:8600)

server 1: apache with proxypass to server 2
proxypass http://server2:8600

server 2: apache listening at 8600

the problem is that when PC accesses server1 web page, the web server log in server 2 shows only firewall address for source ip not the public ip for PC.

pls advise how to modify the proxypass to pass the public ip to server 2.

bmarx 02-20-2010 11:04 AM

http://roshanbh.com.np/2007/12/getti...ss-in-php.html

aclhkaclhk 02-23-2010 01:00 AM

i know how to get the ip address but the ip addr retrieved is firewall ip.

it seems that the proxypass only relays the firewall ip to server 2.


All times are GMT -5. The time now is 01:50 PM.