Re: [squid-users] intercept problem squid 3.1.18 SOLVED

From: jeffrey j donovan <donovan_at_beth.k12.pa.us>
Date: Mon, 2 Jan 2012 12:26:15 -0500

On Dec 31, 2011, at 11:32 PM, Amos Jeffries wrote:

> On 1/01/2012 11:23 a.m., jeffrey j donovan wrote:
>> turns out to be an OSX 10.6 issue
>>
>> previous systems were set to 0 the default on 10.6 is 1. disable this and squid then gets the hit transparently.
>> sysctl -w net.inet.ip.scopedroute=0
>>
>> -j
>>
>
> Thank you for that info. I've added it to the IPFW wiki page.
> http://wiki.squid-cache.org/ConfigExamples/Intercept/Ipfw
>
> Amos

Great amos,

lets add the full set of sysctrl settings.

sysctl -w net.inet.ip.scopedroute=0
sysctl -w net.inet.ip.forwarding=1
sysctl -w net.inet.ip.fastforwarding=1

each of these items requires a " plist " file placed in /Library/LaunchDaemons to make changes after restart.

looks like this

/Library/LaunchDaemons/com.local.ipforwarding.plist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.local.ipforwarding</string>
<key>Program</key>
<string>/usr/sbin/sysctl</string>
<key>ProgramArguments</key>
<array>
<string>sysctl</string>
<string>-w</string>
<string>net.inet.ip.forwarding=1</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>TimeOut</key>
<integer>90</integer>
<key>WorkingDirectory</key>
<string>/var/root</string>
</dict>
</plist>

-j
Received on Mon Jan 02 2012 - 17:26:17 MST

This archive was generated by hypermail 2.2.0 : Mon Jan 02 2012 - 12:00:02 MST