[systemd-devel] "sysctl.conf" applied too late
Reindl Harald
h.reindl at thelounge.net
Wed Feb 8 08:47:33 PST 2012
Am 08.02.2012 17:34, schrieb Bill Nottingham:
> Reindl Harald (h.reindl at thelounge.net) said:
>> not network manager
>> classical configuration
>>
>> net.ipv6.conf.all.disable_ipv6 = 1
>
> Your configuration is wrong, I believe. The rule at udev time is:
>
> SUBSYSTEM=="net", KERNEL!="lo", RUN+="/lib/systemd/systemd-sysctl \
> --prefix=/proc/sys/net/ipv4/conf/$name \
> --prefix=/proc/sys/net/ipv4/neigh/$name \
> --prefix=/proc/sys/net/ipv6/conf/$name \
> --prefix=/proc/sys/net/ipv6/neigh/$name"
>
> What's happening is you're setting 'all' on startup, which disables
> it for all interfaces at that time. But each interface later on creation
> gets the value from 'default', not all.
>
> You want:
>
> net.ipv6.conf.default.disable_ipv6 = 1
> instead of/in addition to what you have
hmm - does not change the behavior
a kernel boot-param would be nice but until know i did not
find any working one :-(
[root at rh:~]$ netstat -l | grep smb
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 1088/smbd
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 1088/smbd
tcp 0 0 :::445 :::* LISTEN 1088/smbd
tcp 0 0 :::139 :::* LISTEN 1088/smbd
[root at rh:~]$ netstat -l | grep ntp
udp 0 0 127.0.0.1:123 0.0.0.0:* 1056/ntpd
udp 0 0 0.0.0.0:123 0.0.0.0:* 1056/ntpd
udp 0 0 :::123 :::* 1056/ntpd
[root at rh:~]$ service smb restart
Redirecting to /bin/systemctl restart smb.service
[root at rh:~]$ netstat -l | grep smb
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 3982/smbd
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 3982/smbd
[root at rh:~]$ cat /etc/sysctl.conf | grep ipv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20120208/8960aaea/attachment-0001.pgp>
More information about the systemd-devel
mailing list