iptables, squid and all related stuff
Hi,
I've got a problem with my firewall/proxy machine. I'm using iptables to firewalling packets and squid as proxy server for http on the port 8080. Each client in my subnet has the proxy set.
Now one client needs to access a special web service, available at port X on server Y thru a set of asp pages. I've enabled the connection thru the firewall for Y:X, but the client is still unable to connect to the service. There are no error from my side, no packet logged, but a TCP_MISS in squid logs. I have tried to enable and acl as the following:
acl web_service port X
....http_access web_service
but it's still not working. Any idea?
Thanks,
Luca
Signature · 2 lines
Luca Ferrari, [email protected]
Quoted 14 lines
Hi,
I've got a problem with my firewall/proxy machine. I'm using iptables to firewalling packets and squid as proxy server for http on the port 8080. Each
client in my subnet has the proxy set.
Now one client needs to access a special web service, available at port X on
server Y thru a set of asp pages. I've enabled the connection thru the firewall for Y:X, but the client is still unable to connect to the service.
There are no error from my side, no packet logged, but aTCP_MISSin squid logs. I have tried to enable and acl as the following:
aclweb_serviceport X
Quoted 4 lines
....
http_accessweb_servicebut it's still not working. Any idea?
Is the client for this web service the browser? If not - if it's some 3rd-party app - it might not be using the proxy server and trying to connect directy. We had this problem with a product licensing app that had a hard-wired ip address and used socket directly, ignoring the proxy.
CD
Quoted 17 lines · On Wednesday 19 May 2004 12:09 [email protected]'s cat walking on the…
Quoted 17 lines
Hi,
I've got a problem with my firewall/proxy machine. I'm using iptables to firewalling packets and squid as proxy server for http on the port 8080. Each
client in my subnet has the proxy set.
Now one client needs to access a special web service, available at port X on
server Y thru a set of asp pages. I've enabled the connection thru the firewall for Y:X, but the client is still unable to connect to the service.
There are no error from my side, no packet logged, but aTCP_MISSin squid logs. I have tried to enable and acl as the following:
aclweb_serviceport X....
http_accessweb_service
Quoted 6 lines
Quoted 1 line
but it's still not working. Any idea?
Is the client for this web service the browser? If not - if it's some 3rd-party app - it might not be using the proxy server and trying to connect directy. We had this problem with a product licensing app that had a hard-wired ip address and used socket directly, ignoring the proxy.
The access is done thru the web browser, as the application use as well. Nevertheless the firewall already allows connection to such address, so I believe it's a proxy problem.
Luca
Signature · 2 lines
Luca Ferrari, [email protected]
Quoted 8 lines · On Wednesday 19 May 2004 14:46 Adam Lang's cat walking on the keyboard wrote:
You didn't tell it what to do with that acl.
http_accessallowweb_serviceMake sure you put it in front of any deny rules that would block it. Life will be easier if you just add it to the
safe_portlist and put a comment at the end so you knwow hat it is for.
Thanks,
I've added the X port to the Safe_ports of the squid acls and now everything is right.
Luca
Signature · 6 lines
Luca Ferrari, [email protected] - To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html