Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-01-2003, 08:03 AM   #1
Registered: Jul 2003
Posts: 129

Rep: Reputation: 15
firewall for SQUID

Hello everybody
i have to set a Firewall for my squid box , but to write rules i have to know all ports needed by this
i know that squid listen on port 3128
and he get responses to it's http requests from port 80 , thus i write this :

iptables -F
iptables -A INPUT -p tcp --sport 80 -j ACCEPT
iptables -A INPUT -p tcp --sport 8080 -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -p tcp --dport 8080 -j ACCEPT
iptables -A INPUT -j DROP

but this blocked me squid !

have u some advices to give me please ?.
Old 12-01-2003, 09:21 AM   #2
Senior Member
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Why are you allowing 8080? That's typically a Windows HTTP proxy.

You need to allow your own users to connect, so there should be a rule to allow traffic sourcing from your own network to dport 3128. As long as you have the appropriate contrack modules loaded, iptables should allow SQUIDs outbound connection and the corresponding reply.
Old 12-01-2003, 01:58 PM   #3
Registered: Jul 2003
Posts: 129

Original Poster
Rep: Reputation: 15
because i changed the default 3128 to 8080 in squid.conf and i did a copy past without seeing this details
well i know i have to allow squid get clients replys from the net but the problem is simply HOW ? or what ports should be opened ?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Squid firewall setup cortj Linux - Networking 9 10-11-2006 04:05 AM
Firewall, SQUID problem plese help me razan Linux - Security 12 04-28-2005 01:51 AM
webserver behind firewall and squid ultraav Linux - Networking 6 06-17-2004 05:08 PM
Squid & my firewall Apollo77 Linux - General 3 03-19-2004 10:29 AM
firewall and squid keshif Linux - Security 1 01-23-2004 09:25 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:19 AM.

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