LinuxQuestions.org
Review your favorite Linux distribution.
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 04-07-2011, 12:28 PM   #1
FORCED-INDUCTN
LQ Newbie
 
Registered: Apr 2011
Posts: 2

Rep: Reputation: 0
Squid inline proxy iptables NAT problems


Hello,
I have an ubuntu 10.04.2 LTS server running squid3 Version 3.0.STABLE19 (from the ubuntu repos) I am trying to make it an inline/transparent proxy/content filter. I have iptables redirecting http/https traffic into dansguardion and then squid. The server is acting as the default gateway and routing all users traffic. However the http/https redirect works, but it is NATing ALL the traffic which I don't want (seems to be breaking Active directory roaming profiles)

Here is my iptables-save:

# Generated by iptables-save v1.4.4 on Mon Apr 4 15:30:32 2011
*mangle
:PREROUTING ACCEPT [855113122:582485380359]
:INPUT ACCEPT [127717946:140042410136]
:FORWARD ACCEPT [727372975:442439981141]
:OUTPUT ACCEPT [98403120:134512077286]
:POSTROUTING ACCEPT [825776093:576952057715]
COMMIT
# Completed on Mon Apr 4 15:30:32 2011
# Generated by iptables-save v1.4.4 on Mon Apr 4 15:30:32 2011
*nat
:PREROUTING ACCEPT [6173878:454296263]
:POSTROUTING ACCEPT [1:252]
:OUTPUT ACCEPT [955651:57391201]
-A PREROUTING -s 10.62.0.4/32 -p tcp -m tcp --dport 80 -j ACCEPT
-A PREROUTING -p tcp -m tcp --dport 80 -j DNAT --to-destination 10.62.0.4:8080
-A PREROUTING -s 10.62.0.4/32 -p tcp -m tcp --dport 443 -j ACCEPT
-A PREROUTING -p tcp -m tcp --dport 80 -j DNAT --to-destination 10.62.0.4:8080
-A POSTROUTING -j MASQUERADE
COMMIT
# Completed on Mon Apr 4 15:30:32 2011
# Generated by iptables-save v1.4.4 on Mon Apr 4 15:30:32 2011
*filter
:INPUT ACCEPT [127717946:140042410136]
:FORWARD ACCEPT [727372976:442439981384]
:OUTPUT ACCEPT [98403117:134512076306]
COMMIT
# Completed on Mon Apr 4 15:30:32 2011

How can I have it just route traffic and redirect to squid/dansguardian?

Thanks in advance!!
--Forced
 
  


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
What is best for a website filter for my kids? Snort in inline mode, or a squid proxy abefroman Linux - Software 1 10-27-2008 03:19 AM
squid proxy confiuration+NAT deepak rawat Linux - Networking 3 04-13-2006 04:07 AM
Help With Bind,squid,nat And Proxy debloxie Linux - Networking 0 01-20-2004 05:43 AM
Help With Bind,squid,nat And Proxy debloxie Linux - Networking 1 01-19-2004 05:40 PM
I Need Help With Bind,squid,nat & Proxy debloxie Linux - Networking 0 01-19-2004 08:27 AM

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

All times are GMT -5. The time now is 06:47 PM.

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