[systemd-devel] How to do IP_TRANSPARENT on socket? squid need that

Lennart Poettering lennart at poettering.net
Thu May 19 05:43:06 PDT 2011


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.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list