LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Transperant Proxy and web server on one machine = issue ... (https://www.linuxquestions.org/questions/linux-networking-3/transperant-proxy-and-web-server-on-one-machine-%3D-issue-334243/)

sys7em 06-16-2005 11:46 AM

Transperant Proxy and web server on one machine = issue ...
 
Well here's my situation. I have setuped an iptables firewall + transperant proxy on my local router (Slackware 10). Then I installed apache web server on the same box. But ... now when someone from the internal network browses the web server i.e. http://192.168.0.1 his ip is the same as the servers ip ....192.168.0.1 ... and so in the apache log files every single machine (from network 192.168.0.xxx) who browses the web server is with the same ip ... as the server because its gettin through the transperant proxy ...so ... Is there an option in squid or rule in the firewall ...when someone tries from the internal network to browse http://internalserver.lan for example.... to avoid the transperant proxy and get to it directly ???

Thanks in advance ......

newpenguin 06-16-2005 02:12 PM

to avoide redirection for specific webserver or client , add a rule before the redirection one
you just need

iptables -t nat -I PREROUTING -d 192.168.0.1 -j ACCEPT

sys7em 06-16-2005 02:29 PM

10x m8. That's the thing I needed :)

:newbie:


All times are GMT -5. The time now is 05:53 PM.