{"action":"created","issue":{"url":"https://api.github.com/repos/opnsense/core/issues/2663","repository_url":"https://api.github.com/repos/opnsense/core","labels_url":"https://api.github.com/repos/opnsense/core/issues/2663/labels{/name}","comments_url":"https://api.github.com/repos/opnsense/core/issues/2663/comments","events_url":"https://api.github.com/repos/opnsense/core/issues/2663/events","html_url":"https://github.com/opnsense/core/issues/2663","id":352902383,"node_id":"MDU6SXNzdWUzNTI5MDIzODM=","number":2663,"title":"[6rd] \"track interface\" overrides the default IPv6 gateway","user":{"login":"paride","id":7614669,"node_id":"MDQ6VXNlcjc2MTQ2Njk=","avatar_url":"https://avatars0.githubusercontent.com/u/7614669?v=4","gravatar_id":"","url":"https://api.github.com/users/paride","html_url":"https://github.com/paride","followers_url":"https://api.github.com/users/paride/followers","following_url":"https://api.github.com/users/paride/following{/other_user}","gists_url":"https://api.github.com/users/paride/gists{/gist_id}","starred_url":"https://api.github.com/users/paride/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paride/subscriptions","organizations_url":"https://api.github.com/users/paride/orgs","repos_url":"https://api.github.com/users/paride/repos","events_url":"https://api.github.com/users/paride/events{/privacy}","received_events_url":"https://api.github.com/users/paride/received_events","type":"User","site_admin":false},"labels":[{"id":157163114,"node_id":"MDU6TGFiZWwxNTcxNjMxMTQ=","url":"https://api.github.com/repos/opnsense/core/labels/feature","name":"feature","color":"84b6eb","default":false}],"state":"open","locked":false,"assignee":{"login":"fichtner","id":1915288,"node_id":"MDQ6VXNlcjE5MTUyODg=","avatar_url":"https://avatars3.githubusercontent.com/u/1915288?v=4","gravatar_id":"","url":"https://api.github.com/users/fichtner","html_url":"https://github.com/fichtner","followers_url":"https://api.github.com/users/fichtner/followers","following_url":"https://api.github.com/users/fichtner/following{/other_user}","gists_url":"https://api.github.com/users/fichtner/gists{/gist_id}","starred_url":"https://api.github.com/users/fichtner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fichtner/subscriptions","organizations_url":"https://api.github.com/users/fichtner/orgs","repos_url":"https://api.github.com/users/fichtner/repos","events_url":"https://api.github.com/users/fichtner/events{/privacy}","received_events_url":"https://api.github.com/users/fichtner/received_events","type":"User","site_admin":false},"assignees":[{"login":"fichtner","id":1915288,"node_id":"MDQ6VXNlcjE5MTUyODg=","avatar_url":"https://avatars3.githubusercontent.com/u/1915288?v=4","gravatar_id":"","url":"https://api.github.com/users/fichtner","html_url":"https://github.com/fichtner","followers_url":"https://api.github.com/users/fichtner/followers","following_url":"https://api.github.com/users/fichtner/following{/other_user}","gists_url":"https://api.github.com/users/fichtner/gists{/gist_id}","starred_url":"https://api.github.com/users/fichtner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fichtner/subscriptions","organizations_url":"https://api.github.com/users/fichtner/orgs","repos_url":"https://api.github.com/users/fichtner/repos","events_url":"https://api.github.com/users/fichtner/events{/privacy}","received_events_url":"https://api.github.com/users/fichtner/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/opnsense/core/milestones/9","html_url":"https://github.com/opnsense/core/milestone/9","labels_url":"https://api.github.com/repos/opnsense/core/milestones/9/labels","id":3047797,"node_id":"MDk6TWlsZXN0b25lMzA0Nzc5Nw==","number":9,"title":"19.1","description":"","creator":{"login":"fichtner","id":1915288,"node_id":"MDQ6VXNlcjE5MTUyODg=","avatar_url":"https://avatars3.githubusercontent.com/u/1915288?v=4","gravatar_id":"","url":"https://api.github.com/users/fichtner","html_url":"https://github.com/fichtner","followers_url":"https://api.github.com/users/fichtner/followers","following_url":"https://api.github.com/users/fichtner/following{/other_user}","gists_url":"https://api.github.com/users/fichtner/gists{/gist_id}","starred_url":"https://api.github.com/users/fichtner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fichtner/subscriptions","organizations_url":"https://api.github.com/users/fichtner/orgs","repos_url":"https://api.github.com/users/fichtner/repos","events_url":"https://api.github.com/users/fichtner/events{/privacy}","received_events_url":"https://api.github.com/users/fichtner/received_events","type":"User","site_admin":false},"open_issues":47,"closed_issues":43,"state":"open","created_at":"2018-01-19T08:48:06Z","updated_at":"2018-09-23T18:07:06Z","due_on":"2019-01-28T08:00:00Z","closed_at":null},"comments":24,"created_at":"2018-08-22T10:57:12Z","updated_at":"2018-09-24T16:00:04Z","closed_at":null,"author_association":"NONE","body":"I think I can correctly set up a 6rd tunnel (a /64):\r\n\r\n```\r\nroot@net6501:~ # ifconfig wan_stf\r\nwan_stf: flags=4041<UP,RUNNING,LINK2> metric 0 mtu 1280\r\n\tinet6 2001:b07:xx:yy:: prefixlen 64 \r\n\tnd6 options=1<PERFORMNUD>\r\n\tv4net 81.208.50.214/32 -> tv4br 81.208.50.214\r\n\tgroups: stf \r\n\r\nroot@net6501:~ # route -6 get default\r\n   route to: default\r\ndestination: default\r\n       mask: default\r\n    gateway: 2001:b07:xx:yy::51d0:32d6\r\n        fib: 0\r\n  interface: wan_stf\r\n      flags: <UP,GATEWAY,DONE,STATIC>\r\n recvpipe  sendpipe  ssthresh  rtt,msec    mtu        weight    expire\r\n       0         0         0         0      1280         1         0 \r\n\r\nroot@net6501:~ # ping6 -c1 ipv6.google.com\r\nPING6(56=40+8+8 bytes) 2001:b07:xx:yy:: --> 2a00:1450:4002:80a::200e\r\n16 bytes from 2a00:1450:4002:80a::200e, icmp_seq=0 hlim=58 time=7.225 ms\r\n\r\n--- ipv6.l.google.com ping6 statistics ---\r\n1 packets transmitted, 1 packets received, 0.0% packet loss\r\nround-trip min/avg/max/std-dev = 7.225/7.225/7.225/0.000 ms\r\n```\r\n\r\nBut when I configure my LAN IPv6 to track the WAN interface (prefix id 0, I don't have other choice), the IPv6 configuration stops working: I can't ping ipv6.google.com anymore. I think this is happening because the default route gets overwritten (em1 is LAN):\r\n\r\n```\r\nroot@net6501:~ # route -6 get default\r\n   route to: default\r\ndestination: default\r\n       mask: default\r\n    gateway: 2001:b07:xx:yy::51d0:32d6\r\n        fib: 0\r\n  interface: em1\r\n      flags: <UP,GATEWAY,DONE,STATIC>\r\n recvpipe  sendpipe  ssthresh  rtt,msec    mtu        weight    expire\r\n       0         0         0         0      1500         1         0 \r\n```\r\nwhile I think I still should be getting `interface: wan_stf` here, as it was before. On the webui the Interface for the WAN_6RD gateway is still WAN (see attached screenshot). Is this an OPNsense issue, or am I misunderstanding something? Suggestions and feedback will be appreciated. Thank you!\r\n\r\n![screenshot_2018-08-22 single gateways system net6501 casa](https://user-images.githubusercontent.com/7614669/44459560-6c338680-a60a-11e8-8dc2-7d3108779593.png)\r\n"},"comment":{"url":"https://api.github.com/repos/opnsense/core/issues/comments/424028283","html_url":"https://github.com/opnsense/core/issues/2663#issuecomment-424028283","issue_url":"https://api.github.com/repos/opnsense/core/issues/2663","id":424028283,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDAyODI4Mw==","user":{"login":"paride","id":7614669,"node_id":"MDQ6VXNlcjc2MTQ2Njk=","avatar_url":"https://avatars0.githubusercontent.com/u/7614669?v=4","gravatar_id":"","url":"https://api.github.com/users/paride","html_url":"https://github.com/paride","followers_url":"https://api.github.com/users/paride/followers","following_url":"https://api.github.com/users/paride/following{/other_user}","gists_url":"https://api.github.com/users/paride/gists{/gist_id}","starred_url":"https://api.github.com/users/paride/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paride/subscriptions","organizations_url":"https://api.github.com/users/paride/orgs","repos_url":"https://api.github.com/users/paride/repos","events_url":"https://api.github.com/users/paride/events{/privacy}","received_events_url":"https://api.github.com/users/paride/received_events","type":"User","site_admin":false},"created_at":"2018-09-24T16:00:04Z","updated_at":"2018-09-24T16:00:04Z","author_association":"NONE","body":"@fichtner no, it does not.\r\n\r\nI think the point is the following: em1 has inet6 `2001:b07:xx:yy::1 prefixlen 64`, while em0_stf has inet6 `2001:b07:xx:yy:: prefixlen 64`. These are kind of the same subnet (`2001:b07:xx:yy::/64`), and the ipv6 gateway falls in both of these ranges. FreeBSD happens to set the gateway interface to one of these two interfaces that both have a matching subnet, and apparently it chooses em1 (because it is the last one created)? But I may be wrong of course."}}
{"actor":{"display_login":"paride"}}