We have moved to a new Sailfish OS Forum. Please start new discussions there.
9

ipv6: cannot set use_tempaddr

asked 2013-12-29 21:02:23 +0200

cy8aer gravatar image

updated 2013-12-29 21:54:20 +0200

AL13N gravatar image

I tried to set use_tempaddr for ipv6 privacy IPs (temporary global addresses) by creating /etc/sysctl.d/privacy-ipv6.conf:

net.ipv6.conf.all.use_tempaddr = 2

net.ipv6.conf.default.use_tempaddr = 2

net.ipv6.conf.wlan0.use_tempaddr=2

but sysctl -p this file, echo the parameters directly in /sys... and reboot does not work. Is there something missing?

edit retag flag offensive close delete

Comments

This should be default, right?

Stephan ( 2018-06-08 17:17:55 +0200 )edit

1 Answer

Sort by » oldest newest most voted
5

answered 2014-01-17 20:45:50 +0200

cy8aer gravatar image

This is done by connman: edit your wlan settings in /var/lib/wifi_xxxx/settings (devel-su):

IPv6.privacy=prefered

Disconnect and connect and you have a global temporary dynamic address. But there is another question: why is IPv6.privacy in a non ipv6 network prefered and in a ipv6 network disabled by default?

edit flag offensive delete publish link more

Comments

2

could be also "preferred" see https://lists.connman.net/pipermail/connman/2013-August/015535.html

rsainio ( 2014-01-17 20:53:53 +0200 )edit
1

So the summary is:

  • "connman" changes the value of "net.ipv6.conf.wlan0.use_tempaddr" when a WLAN connection gets established.
  • "connman" will set the "IPv6.privacy=disabled" entry in new service configuration files (e.g. for a new WLAN connection).

My opinion: huh? My solution: Running the following command after a new network connection (= connman service) has been added:

sed -e's,^IPv6.privacy=.*,IPv6.privacy=prefered,' -i /var/lib/connman/*/settings
Needs to be run as root, e.g. in a script executed via sudo. See that question for ways to quickly execute short shell commands: https://together.jolla.com/question/24190/launch-shell-commands-from-user-interface/

mcg ( 2014-12-28 17:30:33 +0200 )edit
3

This really ought be the default - most other IPv6 hosts seem to use temporary addresses and it's odd for Jolla to not.

p84 ( 2015-10-03 00:56:28 +0200 )edit
2

hmm - I tried the above and it works ok for (I think) the first temporary address, but once that expires then I don't get another temporary address and it falls back to the MAC address based global address. While taking the interface up and down (via CLI or settings UI) does get me a new temporary addr that seems unusable. Any idea how to ensure a continual stream of temporary addresses?

p84 ( 2015-10-03 18:34:54 +0200 )edit
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2013-12-29 21:02:23 +0200

Seen: 502 times

Last updated: Jan 17 '14