Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > uk.comp.sys.mac > #132589 > unrolled thread
| Started by | richard@cogsci.ed.ac.uk (Richard Tobin) |
|---|---|
| First post | 2019-07-29 18:38 +0000 |
| Last post | 2019-07-31 07:36 +0100 |
| Articles | 6 — 3 participants |
Back to article view | Back to uk.comp.sys.mac
IPv6 addresses richard@cogsci.ed.ac.uk (Richard Tobin) - 2019-07-29 18:38 +0000
Re: IPv6 addresses Bruce Horrocks <07.013@scorecrow.com> - 2019-07-30 00:41 +0100
Re: IPv6 addresses richard@cogsci.ed.ac.uk (Richard Tobin) - 2019-07-30 10:55 +0000
Re: IPv6 addresses Chris Ridd <chrisridd@mac.com> - 2019-07-30 20:37 +0100
Re: IPv6 addresses richard@cogsci.ed.ac.uk (Richard Tobin) - 2019-07-30 20:17 +0000
Re: IPv6 addresses Chris Ridd <chrisridd@mac.com> - 2019-07-31 07:36 +0100
| From | richard@cogsci.ed.ac.uk (Richard Tobin) |
|---|---|
| Date | 2019-07-29 18:38 +0000 |
| Subject | IPv6 addresses |
| Message-ID | <qhneej$262o$1@macpro.inf.ed.ac.uk> |
What determines which of the configured IPv6 addresses is used for an outgoing connection? -- Richard
[toc] | [next] | [standalone]
| From | Bruce Horrocks <07.013@scorecrow.com> |
|---|---|
| Date | 2019-07-30 00:41 +0100 |
| Message-ID | <915c0749-83fa-501b-8479-db43f34693b4@scorecrow.com> |
| In reply to | #132589 |
On 29/07/2019 19:38, Richard Tobin wrote: > What determines which of the configured IPv6 addresses is used for > an outgoing connection? If the destination machine is specified via a link local address then the source's link local address will be used. If the destination machine is specified by an assigned address, then the source's assigned address will be used. (Where assigned means either manually by the admin or via DHCPv6 and can be site local or public.) If you have more than one network interface onto the same network (e.g. wired and wifi) then the above still applies but for the interface nominated as having priority (usually the one listed first). If you have more than one network interface and they are on different networks then it will choose the assigned address for the interface that can route to the destination. Other rules might apply for messages to Teredo tunnels, multicasts etc. Depends on whether you are/will be using those features. -- Bruce Horrocks Surrey England (bruce at scorecrow dot com)
[toc] | [prev] | [next] | [standalone]
| From | richard@cogsci.ed.ac.uk (Richard Tobin) |
|---|---|
| Date | 2019-07-30 10:55 +0000 |
| Message-ID | <qhp7ms$427$1@macpro.inf.ed.ac.uk> |
| In reply to | #132604 |
In article <915c0749-83fa-501b-8479-db43f34693b4@scorecrow.com>, Bruce Horrocks <07.013@scorecrow.com> wrote: >> What determines which of the configured IPv6 addresses is used for >> an outgoing connection? >If the destination machine is specified by an assigned address, then the >source's assigned address will be used. (Where assigned means either >manually by the admin or via DHCPv6 and can be site local or public.) There are three (non-local) addresses on the interface: one "autoconf secured", one "autoconf temporary", and one "dynamic" (assigned by DHCP6). DHCP6 is configured to always assign the same address, and that address is the one in the DNS AAAA record for the machine. When I connect to a machine on the external internet, it sees me connecting from the "temporary" address, which indeed varies from day to day. I want it to see the address I assigned using DHCP, so that I can accept connections only from known addresses. -- Richard
[toc] | [prev] | [next] | [standalone]
| From | Chris Ridd <chrisridd@mac.com> |
|---|---|
| Date | 2019-07-30 20:37 +0100 |
| Message-ID | <qhq68u$366$1@dont-email.me> |
| In reply to | #132616 |
On 30/07/2019 11:55, Richard Tobin wrote: > In article <915c0749-83fa-501b-8479-db43f34693b4@scorecrow.com>, > Bruce Horrocks <07.013@scorecrow.com> wrote: > >>> What determines which of the configured IPv6 addresses is used for >>> an outgoing connection? > >> If the destination machine is specified by an assigned address, then the >> source's assigned address will be used. (Where assigned means either >> manually by the admin or via DHCPv6 and can be site local or public.) > > There are three (non-local) addresses on the interface: one "autoconf > secured", one "autoconf temporary", and one "dynamic" (assigned by > DHCP6). DHCP6 is configured to always assign the same address, and > that address is the one in the DNS AAAA record for the machine. > > When I connect to a machine on the external internet, it sees me > connecting from the "temporary" address, which indeed varies from > day to day. I think that's a privacy thing. That address is randomized and changed regularly, so you can't easily map from an address to a machine at a later date. See RFC 4941 and RFC 7217. > I want it to see the address I assigned using DHCP, so that I can > accept connections only from known addresses. Try setting net.inet6.ip6.use_tempaddr to 0 using sysctl. There's a bunch of other settings under net.inet6 but that looks most likely. There's some stuff at <https://superuser.com/questions/243669/how-to-avoid-exposing-my-mac-address-when-using-ipv6> -- Chris
[toc] | [prev] | [next] | [standalone]
| From | richard@cogsci.ed.ac.uk (Richard Tobin) |
|---|---|
| Date | 2019-07-30 20:17 +0000 |
| Message-ID | <qhq8l8$lqq$1@macpro.inf.ed.ac.uk> |
| In reply to | #132636 |
In article <qhq68u$366$1@dont-email.me>, Chris Ridd <chrisridd@mac.com> wrote:
>> I want it to see the address I assigned using DHCP, so that I can
>> accept connections only from known addresses.
>Try setting net.inet6.ip6.use_tempaddr to 0 using sysctl. There's a
>bunch of other settings under net.inet6 but that looks most likely.
Thanks. That had no effect, but setting net.inet6.ip6.prefer_tempaddr
to zero caused it to use the "secured" address instead of the
temporary. That's better but still not what I want.
FreeBSD's ifconfig has a prefer_source flag which can be set on an
address and looks like it would do the right thing, but it's not in
MacOS.
FreeBSD also has a command ip6addrctl:
The ip6addrctl utility manages the policy table of source and
destination address selection for outgoing IPv4 and IPv6 packets.
which appears to implement RFC 3484, which I hadn't previously come
across. How it interacts with ifconfig's prefer_source I don't know.
Again MacOS doesn't have it.
-- Richard
[toc] | [prev] | [next] | [standalone]
| From | Chris Ridd <chrisridd@mac.com> |
|---|---|
| Date | 2019-07-31 07:36 +0100 |
| Message-ID | <qhrcu4$f0h$1@dont-email.me> |
| In reply to | #132638 |
On 30/07/2019 21:17, Richard Tobin wrote: > In article <qhq68u$366$1@dont-email.me>, Chris Ridd <chrisridd@mac.com> wrote: > >>> I want it to see the address I assigned using DHCP, so that I can >>> accept connections only from known addresses. > >> Try setting net.inet6.ip6.use_tempaddr to 0 using sysctl. There's a >> bunch of other settings under net.inet6 but that looks most likely. > > Thanks. That had no effect, but setting net.inet6.ip6.prefer_tempaddr > to zero caused it to use the "secured" address instead of the > temporary. That's better but still not what I want. > > FreeBSD's ifconfig has a prefer_source flag which can be set on an > address and looks like it would do the right thing, but it's not in > MacOS. > > FreeBSD also has a command ip6addrctl: > > The ip6addrctl utility manages the policy table of source and > destination address selection for outgoing IPv4 and IPv6 packets. > > which appears to implement RFC 3484, which I hadn't previously come > across. How it interacts with ifconfig's prefer_source I don't know. > Again MacOS doesn't have it. I wonder if that is portable, ie did they include the APIs in MacOS but forget about the tools? -- Chris
[toc] | [prev] | [standalone]
Back to top | Article view | uk.comp.sys.mac
csiph-web