[squid-users] squid 2.7 TPROXY not working

saleh madi saleh.madi at hadara.ps
Tue Oct 21 05:55:32 UTC 2014


Hello,

I have compiled squid 2.7stable9 with TPROXY patch, but the TPROXY seem not working. The traffic arrived to squid, but when I try to open a website from the client browser I got no response "time Out". 

Note: traffic forwarder is Cisco Router with PBR (Policy Based Routing).


Please see below the Squid logs:


2014/10/20 22:36:20| parseHttpRequest: Complete request received
2014/10/20 22:36:20| commSetTimeout: FD 33 timeout 900
2014/10/20 22:36:20| removing 905 bytes; conn->in.offset = 0
2014/10/20 22:36:20| clientSetKeepaliveFlag: http_ver = 1.1
2014/10/20 22:36:20| clientSetKeepaliveFlag: method = GET
2014/10/20 22:36:20| The request GET http://www.cnn.com/ is ALLOWED, because it matched 'network'
2014/10/20 22:36:20| clientRedirectStart: 'http://www.cnn.com/'
2014/10/20 22:36:20| clientRedirectDone: 'http://www.cnn.com/' result=NULL
2014/10/20 22:36:20| clientInterpretRequestHeaders: REQ_NOCACHE = NOT SET
2014/10/20 22:36:20| clientInterpretRequestHeaders: REQ_CACHABLE = SET
2014/10/20 22:36:20| clientInterpretRequestHeaders: REQ_HIERARCHICAL = SET
2014/10/20 22:36:20| clientProcessRequest: GET 'http://www.cnn.com/'
2014/10/20 22:36:20| clientProcessRequest2: storeGet() MISS
2014/10/20 22:36:20| clientProcessRequest: TCP_MISS for 'http://www.cnn.com/'
2014/10/20 22:36:20| clientProcessMiss: 'GET http://www.cnn.com/'
2014/10/20 22:36:20| fwdStart: 'http://www.cnn.com/'
2014/10/20 22:36:20| fwdStartComplete: http://www.cnn.com/
2014/10/20 22:36:20| fwdConnectStart: http://www.cnn.com/
2014/10/20 22:36:20| fwdConnectStart: got addr 0.0.0.0, tos 0
2014/10/20 22:36:20| fwdConnectStart: setting outgoing.s_addr=0A16212C (will set TRANSPARENT)
2014/10/20 22:36:20| comm_openex: FD 34 is a new socket
2014/10/20 22:36:20| commSetTransparent: FD 34
2014/10/20 22:36:20| comm_add_close_handler: FD 34, handler=0x4373c0, data=0xc02648
2014/10/20 22:36:20| commSetTimeout: FD 34 timeout 60
2014/10/20 22:36:20| commConnectStart: FD 34, www.cnn.com:80
2014/10/20 22:36:20| comm_add_close_handler: FD 34, handler=0x42b240, data=0xc02878
2014/10/20 22:36:20| commSetSelect: FD 6 type 1
2014/10/20 22:36:20| commSetEvents(fd=6)
2014/10/20 22:36:20| commSetSelect: FD 33 type 1
2014/10/20 22:36:20| commSetEvents(fd=33)
2014/10/20 22:36:20| fwdStart: 'http://squid2:65534/squid-internal-periodic/store_digest'
2014/10/20 22:36:20| fwdStartComplete: http://squid2:65534/squid-internal-periodic/store_digest
2014/10/20 22:36:20| fwdConnectStart: http://squid2:65534/squid-internal-periodic/store_digest
2014/10/20 22:36:20| fwdConnectStart: got addr 0.0.0.0, tos 0
2014/10/20 22:36:20| comm_openex: FD 35 is a new socket
2014/10/20 22:36:20| comm_add_close_handler: FD 35, handler=0x4373c0, data=0xc05c38
2014/10/20 22:36:20| commSetTimeout: FD 35 timeout 60
2014/10/20 22:36:20| commConnectStart: FD 35, squid2:65534
2014/10/20 22:36:20| comm_add_close_handler: FD 35, handler=0x42b240, data=0xc05d88
2014/10/20 22:36:20| connect FD 35: (115) Operation now in progress
2014/10/20 22:36:20| commConnectHandle: FD 35: COMM_INPROGRESS
2014/10/20 22:36:20| commSetSelect: FD 35 type 2
2014/10/20 22:36:20| commSetEvents(fd=35)
2014/10/20 22:36:20| comm_select: timeout 0
2014/10/20 22:36:20| do_comm_select: 1 fds ready
2014/10/20 22:36:20| comm_call_handlers(): got fd=35 read_event=0 write_event=4 F->read_handler=(nil) F->write_handler=0x42b350
2014/10/20 22:36:20| comm_remove_close_handler: FD 35, handler=0x42b240, data=0xc05d88
2014/10/20 22:36:20| commSetTimeout: FD 35 timeout -1
2014/10/20 22:36:20| commConnectFree: FD 35
2014/10/20 22:36:20| fwdConnectDone: FD 35: 'http://squid2:65534/squid-internal-periodic/store_digest'
2014/10/20 22:36:20| fwdDispatch: FD -1: Fetching 'GET http://squid2:65534/squid-internal-periodic/store_digest'
2014/10/20 22:36:20| httpStart: "GET http://squid2:65534/squid-internal-periodic/store_digest"
2014/10/20 22:36:20| comm_add_close_handler: FD 35, handler=0x447d40, data=0xc05cb8
2014/10/20 22:36:20| httpSendRequest: FD 35: httpState 0xc05cb8.
2014/10/20 22:36:20| commSetTimeout: FD 35 timeout 900
2014/10/20 22:36:20| commSetSelect: FD 35 type 1
2014/10/20 22:36:20| commSetEvents(fd=35)
....

Thank you and Best Regards,
Saleh


More information about the squid-users mailing list