[systemd-devel] How to do IP_TRANSPARENT on socket? squid need that
microcai
microcai at fedoraproject.org
Thu May 19 06:03:24 PDT 2011
于 2011年05月19日 20:43, Lennart Poettering 写道:
> On Thu, 19.05.11 20:41, microcai (microcai at fedoraproject.org) wrote:
>
>> 于 2011年05月19日 19:25, microcai 写道:
>>> 于 2011年05月19日 19:23, Lennart Poettering 写道:
>>>> On Thu, 19.05.11 18:54, microcai (microcai at fedoraproject.org) wrote:
>>>>
>>>>> Heya:
>>>>>
>>>>> Yesterday, I ported dnsmasq to systemd.
>>>>> Now, it's squid.
>>>>>
>>>>> Almost done now, but transparent support should not be enabled,
>>>>> otherwise squid will not be able to process request.
>>>>>
>>>>> But I want this feature back.
>>>>>
>>>>> So, is there an option to set IP_TRANSPARENT on the listen socket ?
>>>>
>>>> Yes, there is now. Just added it for you in git. ;-)
>>>
>>> Wow, Thanks !
>>>
>>>>
>>>> Transparent=yes in the .socket unit.
>>>>
>>>> Lennart
>>>>
>>>
>>>
>>
>> Works now.
>>
>> By the way, can I set Transparent on specific socket, not for all? ;)
>
> No, right now the socket options you place in a socket file apply to all
> sockets spcified therein. If you want different socket options you can
> split up the socket file into to, and use Service= to redirect both to
> the same service unit.
Wow ! Thanks ! Works perfectly now!
>
> Lennart
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20110519/9fc3cc3d/attachment.pgp>
More information about the systemd-devel
mailing list