Hello All<br>I want to use apache-2.2.14 web server as a transparent proxy in ip layer on freebsd-7.0.<br>I configured it with following scenario:<br><br> Client1 Apache TProxy Configured web server <br>
172.20.13.43 ---------------- [em0:172.20.13.196, 192.168.100.101:em1] --------------------192.168.100.102<br><br>My httpd.conf on Tproxy is:<br>....<br><font style="font-family: courier new,monospace;" size="2">Listen 4129<br>
<VirtualHost <a href="http://172.20.13.196:4129">172.20.13.196:4129</a>><br> ServerName 172.20.13.196<br> ProxyRequests off<br> ProxyTProxy On<br> ProxyPass / <a href="http://192.168.100.102/">http://192.168.100.102/</a><br>
ProxyPassReverse / <a href="http://192.168.100.102/">http://192.168.100.102/</a><br> ProxyPreserveHost On<br></VirtualHost><br></font> <br>I used ipnat for trrafic redirection by following configuration.<br>
/etc/ipnat.conf:<br><span style="font-family: courier new,monospace;">rdr em0 <a href="http://192.168.100.102/32">192.168.100.102/32</a> port 80 -> 172.20.13.196 port 4129 tcp</span><br><br>when i request <a href="http://192.168.100.102">http://192.168.100.102</a> on web client1, i recieve following error on web browser: <br>
<h1 style="font-family: comic sans ms,sans-serif;"><font size="2">Service Temporarily Unavailable</font></h1>
<p style="font-family: comic sans ms,sans-serif;"><font size="2">The server is temporarily unable to service your
request due to maintenance downtime or capacity
problems. Please try again later.</font></p>My apache error log is:<br><font style="font-family: times new roman,serif;" size="1">[Sat Oct 15 11:59:45 2011] [debug] mod_proxy_http.c(56): proxy: HTTP: canonicalising URL //<a href="http://192.168.100.102/">192.168.100.102/</a><br>
[Sat Oct 15 11:59:45 2011] [debug] proxy_util.c(1494): [client 172.20.13.43] proxy: http: found worker <a href="http://192.168.100.102/">http://192.168.100.102/</a> for <a href="http://192.168.100.102/">http://192.168.100.102/</a><br>
[Sat Oct 15 11:59:45 2011] [debug] mod_proxy.c(993): Running scheme http handler (attempt 0)<br>[Sat Oct 15 11:59:45 2011] [debug] mod_proxy_http.c(1940): proxy: HTTP: serving URL <a href="http://192.168.100.102/">http://192.168.100.102/</a><br>
[Sat Oct 15 11:59:45 2011] [debug] proxy_util.c(1999): proxy: HTTP: has acquired connection for (192.168.100.102)<br>[Sat Oct 15 11:59:45 2011] [debug] proxy_util.c(2055): proxy: connecting <a href="http://192.168.100.102/">http://192.168.100.102/</a> to <a href="http://192.168.100.102:80">192.168.100.102:80</a><br>
[Sat Oct 15 11:59:45 2011] [debug] proxy_util.c(2153): proxy: connected / to <a href="http://192.168.100.102:80">192.168.100.102:80</a><br>[Sat Oct 15 11:59:45 2011] [error] (22)Invalid argument: proxy: <b>error binding </b>to socket <a href="http://172.20.13.43:4536">172.20.13.43:4536</a><br>
[Sat Oct 15 11:59:45 2011] [debug] proxy_util.c(2017): proxy: HTTP: has released connection for (192.168.100.102)</font><br><br>How i can fix it?<br>Any help would be great.<br><br>-- <br><div style="text-align: left;">Best regards<br>
Dariush Zahedmanesh</div><br>