LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-16-2005, 11:46 AM   #1
sys7em
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Slackware
Posts: 158

Rep: Reputation: 30
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 ......

Last edited by sys7em; 06-16-2005 at 12:07 PM.
 
Old 06-16-2005, 02:12 PM   #2
newpenguin
Member
 
Registered: Sep 2002
Location: lahore pakistan
Distribution: slackware,redhat, FreeBSD,openbsd
Posts: 219

Rep: Reputation: 30
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
 
Old 06-16-2005, 02:29 PM   #3
sys7em
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Slackware
Posts: 158

Original Poster
Rep: Reputation: 30
10x m8. That's the thing I needed

 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
transperant proxy not working saugato Linux - Security 3 03-16-2005 12:30 PM
Single Web Server Do I Really Need To Proxy ?? wylie1001 Linux - Networking 3 08-22-2004 08:27 PM
Proxy web server RH9 deWin Linux - Software 4 04-26-2004 05:23 PM
Will this machine do for a web server? TheSwine Linux - General 6 01-05-2004 07:14 PM
Sharing Proxy server by another Linux machine to configure sendmail joson Linux - Networking 7 12-16-2003 01:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration