<div dir="ltr"><div class="gmail_quote">I have squid running ok on one machine doing basic forwarding but when I try to add a setting for url redirection it just stops with no errors.<br><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div><div><div><div><div><div><div><br></div>I cloned the machine and owrked on the url redirection and eventually settled on squirm and got it working, when I went back to the original machine to try it again it did the same.<br><br></div>When I try to run it maunally on different port etc using a different config file on either machine it does the same.<br><br></div>Below is the log output<br><br>squid -f squid.conf-2 -X -N -a 3129<br>2015/03/20 15:45:22.131| command-line -X overrides: ALL,7<br>2015/03/20 15:45:22.132| http(s)_port: found Listen on Port: 3129<br>2015/03/20 15:45:22.132| http(s)_port: found Listen on wildcard address: *:3129<br>2015/03/20 15:45:22.132| CacheManager::registerAction: registering legacy mem<br>2015/03/20 15:45:22.132| CacheManager::findAction: looking for action mem<br>2015/03/20 15:45:22.132| Action not found.<br>2015/03/20 15:45:22.132| CacheManager::registerAction: registered mem<br>2015/03/20 15:45:22.132| CacheManager::registerAction: registering legacy squidaio_counts<br>2015/03/20 15:45:22.132| CacheManager::findAction: looking for action squidaio_counts<br>2015/03/20 15:45:22.132| Action not found.<br>2015/03/20 15:45:22.132| CacheManager::registerAction: registered squidaio_counts<br>2015/03/20 15:45:22.132| CacheManager::registerAction: registering legacy diskd<br>2015/03/20 15:45:22.132| CacheManager::findAction: looking for action diskd<br>2015/03/20 15:45:22.132| Action not found.<br>2015/03/20 15:45:22.132| CacheManager::registerAction: registered diskd<br>2015/03/20 15:45:22.132| Detected IPv6 hybrid or v4-mapping stack...<br>2015/03/20 15:45:22.132| IPv6 transport Enabled<br>2015/03/20 15:45:22.132| aclDestroyACLs: invoked<br>2015/03/20 15:45:22.132| cbdataFree: 0x7ff55b585af8<br>2015/03/20 15:45:22.132| cbdataFree: Freeing 0x7ff55b585af8<br>2015/03/20 15:45:22.132| ACL::Prototype::Registered: invoked for type src<br>2015/03/20 15:45:22.132| ACL::Prototype::Registered:    yes<br>2015/03/20 15:45:22.132| ACL::FindByName 'all'<br>2015/03/20 15:45:22.132| ACL::FindByName found no match<br>2015/03/20 15:45:22.132| aclParseAclLine: Creating ACL 'all'<br>2015/03/20 15:45:22.132| ACL::Prototype::Factory: cloning an object for type 'src'<br>2015/03/20 15:45:22.132| aclIpParseIpData: all<br>2015/03/20 15:45:22.132| aclIpParseIpData: magic 'all' found.<br>2015/03/20 15:45:22.132| aclParseAclList: looking for ACL name 'all'<br>2015/03/20 15:45:22.133| ACL::FindByName 'all'<br>2015/03/20 15:45:22.133| Processing Configuration File: squid.conf-2 (depth 0)<br>2015/03/20 15:45:22.134| Processing: 'visible_hostname mailsrv1'<br>2015/03/20 15:45:22.134| Processing: 'debug_options rotate=3 ALL,2'<br>2015/03/20 15:45:22.134| Processing: 'cache_effective_user squid'<br>2015/03/20 15:45:22.134| Processing: 'cache_effective_group squid'<br>2015/03/20 15:45:22.134| Processing: 'url_rewrite_program /usr/local/squirm/bin/squirm'<br>2015/03/20 15:45:22.134| Processing: 'redirect_children 5'<br>2015/03/20 15:45:22.134| Processing: 'dns_nameservers 208.67.222.222 208.67.220.220 192.168.32.1 192.168.32.2 192.168.40.254 192.168.40.5'<br>2015/03/20 15:45:22.134| Processing: 'http_port 3329'<br>2015/03/20 15:45:22.134| http(s)_port: found Listen on Port: 3329<br>2015/03/20 15:45:22.134| http(s)_port: found Listen on wildcard address: *:3329<br>2015/03/20 15:45:22.134| Processing: 'hierarchy_stoplist cgi-bin ?'<br>2015/03/20 15:45:22.134| Processing: 'coredump_dir /var/spool/squid'<br>2015/03/20 15:45:22.134| Processing: 'refresh_pattern ^ftp:             1440    20%     10080'<br>2015/03/20 15:45:22.134| Processing: 'refresh_pattern ^gopher:  1440    0%      1440'<br>2015/03/20 15:45:22.134| Processing: 'refresh_pattern -i (/cgi-bin/|\?) 0       0%      0'<br>2015/03/20 15:45:22.134| Processing: 'refresh_pattern .         0       20%     4320'<br>2015/03/20 15:45:22.134| Processing: 'delay_initial_bucket_level 0'<br>2015/03/20 15:45:22.134| aclParseAclList: looking for ACL name 'all'<br>2015/03/20 15:45:22.134| ACL::FindByName 'all'<br>2015/03/20 15:45:22.134| aclParseAclList: looking for ACL name 'all'<br>2015/03/20 15:45:22.134| ACL::FindByName 'all'<br>2015/03/20 15:45:22.134| aclParseAclList: looking for ACL name 'all'<br>2015/03/20 15:45:22.134| ACL::FindByName 'all'<br>2015/03/20 15:45:22.134| aclParseAclList: looking for ACL name 'all'<br>2015/03/20 15:45:22.134| ACL::FindByName 'all'<br>2015/03/20 15:45:22.134| aclParseAclList: looking for ACL name 'all'<br>2015/03/20 15:45:22.134| ACL::FindByName 'all'<br>2015/03/20 15:45:22.134| aclParseAclList: looking for ACL name 'all'<br>2015/03/20 15:45:22.134| ACL::FindByName 'all'<br>2015/03/20 15:45:22.134| Log definition name 'squid' file '/var/log/squid/access.log'<br>2015/03/20 15:45:22.134| wccp2_add_service_list: added service id 0<br>2015/03/20 15:45:22.134| aclParseAclList: looking for ACL name 'all'<br>2015/03/20 15:45:22.134| ACL::FindByName 'all'<br>2015/03/20 15:45:22.134| aclParseAclList: looking for ACL name 'all'<br>2015/03/20 15:45:22.134| ACL::FindByName 'all'<br>2015/03/20 15:45:22.134| tools.cc(671) uniqueHostname:  Config: '<br>2015/03/20 15:45:22.134| tools.cc(671) uniqueHostname:  Config: '<br>2015/03/20 15:45:22.134| Initializing https proxy context<br>2015/03/20 15:45:22.139| Using SSLv2/SSLv3.<br>2015/03/20 15:45:22.141| Setting RSA key generation callback.<br>2015/03/20 15:45:22.141| Setting certificate verification callback.<br>2015/03/20 15:45:22.141| Setting CA certificate locations.<br>2015/03/20 15:45:22.153| leave_suid: PID 16685 called<br>2015/03/20 15:45:22.153| leave_suid: PID 16685 giving up root, becoming 'squid'<br>2015/03/20 15:45:22.153| command-line -X overrides: rotate=3 ALL,2<br>[root@host2 squid]#<br><br><br></div>and this is the contents on the squid.conf-2 file<br><br><br><b>more squid.conf-2</b><br>#<br>visible_hostname mailsrv1<br># Recommended minimum configuration:<br>debug_options rotate=3 ALL,2<br><br>cache_effective_user squid<br>cache_effective_group squid<br>url_rewrite_program /usr/local/squirm/bin/squirm<br>redirect_children 5<br><br># add dns server for squid to use specifically<br>dns_nameservers 208.67.222.222 208.67.220.220 192.168.32.1 192.168.32.2 192.168.40.254 192.168.40.5<br><br># Example rule allowing access from your local networks.<br># Adapt to list your (internal) IP networks from where browsing<br># should be allowed<br><br>#<br># Recommended minimum Access Permission configuration:<br>#<br># Only allow cachemgr access from localhost<br><br># Deny requests to certain unsafe ports<br><br># Deny CONNECT to other than secure SSL ports<br>#http_access deny CONNECT !SSL_ports<br><br># We strongly recommend the following be uncommented to protect innocent<br># web applications running on the proxy server who think the only<br># one who can access services on "localhost" is a local user<br>#http_access deny to_localhost<br><br>#<br># INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS<br>#<br><br># Example rule allowing access from your local networks.<br># Adapt localnet in the ACL section to list your (internal) IP networks<br># from where browsing should be allowed<br><br># And finally deny all other access to this proxy<br><br># Squid normally listens to port 3128<br>http_port 3329<br><br># We recommend you to use at least the following line.<br>hierarchy_stoplist cgi-bin ?<br><br><br># Uncomment and adjust the following to add a disk cache directory.<br><br># Leave coredumps in the first cache dir<br>coredump_dir /var/spool/squid<br><br># Add any of your own refresh_pattern entries above these.<br>refresh_pattern ^ftp:           1440    20%     10080<br>refresh_pattern ^gopher:        1440    0%      1440<br>refresh_pattern -i (/cgi-bin/|\?) 0     0%      0<br>refresh_pattern .               0       20%     4320<br><br>delay_initial_bucket_level 0<br><br></div>Can anyone tell me what I am doing wrong ? all I am after is a non-caching squid proxy server which will do some url redirection.<br><br></div>Thanks<br><br></div>Ian<br><div><div><div><br></div></div></div></div>
</div><br></div>
</div><br></div>
<br></div><br></div>