LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-06-2008, 08:32 AM   #1
justforfun
LQ Newbie
 
Registered: Mar 2008
Posts: 2

Rep: Reputation: 0
squid proxy ( can't go out with some ports )


i want replace my cisco pix firewall with linux box for gateway , site blocking etc.

squid(non transparent) work's fine for http connections but some applications ( connects to remote computer over internet) with port 8000 for example ,not work anymore.i make entrys in squid.conf for safe_ports ACL and still don't work.

my iptables configuration is very simple. accept all connections from local network and localhost to outside ..drop all incoming connections from outside ( internet).

how can i solve this? how can my application that uses port 8000 connect to remote computer that listen on port 8000.

thanks
 
Old 03-06-2008, 09:47 AM   #2
mahmoud
Member
 
Registered: Apr 2006
Location: UK
Distribution: Mandriva, Debain, Redhat, Fedora, Ubuntu, FreeBSD
Posts: 269

Rep: Reputation: 30
from what you said you iptables may be wrong you cant drop everything come in to your box because the remote access you are connecting to wont be able to get in try removing your firewall and try again if you dont mind paste your firewall script so we can see
when you flush your firewall leave squid and try if it doesnt work try it without squid
 
Old 03-07-2008, 08:16 AM   #3
justforfun
LQ Newbie
 
Registered: Mar 2008
Posts: 2

Original Poster
Rep: Reputation: 0
my current iptables rule

*nat
:OUTPUT ACCEPT [0:0]
:PREROUTING ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A POSTROUTING -o ppp0 -j MASQUERADE
COMMIT


*filter
:FORWARD ACCEPT [0:0]
:INPUT DROP [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT ! -i ppp0 -j ACCEPT
-A INPUT -m state --state ESTABLISHED -j ACCEPT
-A INPUT -m state --state RELATED -j ACCEPT
COMMIT

*mangle
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
COMMIT


there is a NAT entry.with this entry all is okey ,have no problems with some applications must connect to remote computers but users can pass proxy by removing proxy settings on explorer. users can surf with proxy settings and without.
 
  


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
configure squid proxy with cc proxy as a parent proxy faisi Linux - Networking 1 08-10-2010 01:16 PM
squid proxy server configuration & distribution of internet without proxy gaurav_gupta082 Linux From Scratch 2 07-31-2010 11:25 AM
configure squid proxy with microsoft proxy as a parent proxy nintykola Linux - Software 1 08-28-2007 01:38 AM
How to open ports 25 and port 110 on proxy server SQUID? fdavid Linux - Newbie 1 03-16-2005 11:31 PM

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

All times are GMT -5. The time now is 09:48 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