{"action":"created","issue":{"url":"https://api.github.com/repos/opnsense/core/issues/2486","repository_url":"https://api.github.com/repos/opnsense/core","labels_url":"https://api.github.com/repos/opnsense/core/issues/2486/labels{/name}","comments_url":"https://api.github.com/repos/opnsense/core/issues/2486/comments","events_url":"https://api.github.com/repos/opnsense/core/issues/2486/events","html_url":"https://github.com/opnsense/core/issues/2486","id":336132856,"node_id":"MDU6SXNzdWUzMzYxMzI4NTY=","number":2486,"title":"rc.newwanip kills CARP on every other call","user":{"login":"clystron","id":30265232,"node_id":"MDQ6VXNlcjMwMjY1MjMy","avatar_url":"https://avatars0.githubusercontent.com/u/30265232?v=4","gravatar_id":"","url":"https://api.github.com/users/clystron","html_url":"https://github.com/clystron","followers_url":"https://api.github.com/users/clystron/followers","following_url":"https://api.github.com/users/clystron/following{/other_user}","gists_url":"https://api.github.com/users/clystron/gists{/gist_id}","starred_url":"https://api.github.com/users/clystron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clystron/subscriptions","organizations_url":"https://api.github.com/users/clystron/orgs","repos_url":"https://api.github.com/users/clystron/repos","events_url":"https://api.github.com/users/clystron/events{/privacy}","received_events_url":"https://api.github.com/users/clystron/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-27T08:45:22Z","updated_at":"2018-06-27T09:52:27Z","closed_at":null,"author_association":"NONE","body":"I have been testing CARP for a firewall using 18.1.10 and I noticed that sometimes the status of a virtual IP is neiter MASTER/BACKUP/INIT but simply nothing. By checking ifconfig output on the console I noticed that the \"carp\" line is simply gone in these cases which effectively disables carp.\r\n\r\nI traced the issue to rc.newwanip, this script is executed on link-up even though all my Interfaces are configured static and it performs two ifconfig calls for each VIP, here is an example:\r\n\r\n/sbin/ifconfig igb3 vhid '2' advskew '10' advbase '1' pass 'password'\r\n/sbin/ifconfig igb3 '10.0.1.132'/'16' alias vhid '2'\r\n\r\nThe second of those commands fails with error 'ioctl (SIOCAIFADDR): Protocol not available' on every other call of rc.newwanip. I have also tried to execute those commands on the console and I have the same problem there. If I execute the second command multiple times I get the error on every other call and CARP is gone on that interface. The error does not occur if I use a different vhid on every call so I guess it is some issue with updating an existing vhid.\r\n\r\nThis happens on the WAN interface all the time but rc.newwanip can also be called for other interfaces destroying there config as well.\r\n\r\nAny thoughts?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/opnsense/core/issues/comments/400613052","html_url":"https://github.com/opnsense/core/issues/2486#issuecomment-400613052","issue_url":"https://api.github.com/repos/opnsense/core/issues/2486","id":400613052,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDYxMzA1Mg==","user":{"login":"clystron","id":30265232,"node_id":"MDQ6VXNlcjMwMjY1MjMy","avatar_url":"https://avatars0.githubusercontent.com/u/30265232?v=4","gravatar_id":"","url":"https://api.github.com/users/clystron","html_url":"https://github.com/clystron","followers_url":"https://api.github.com/users/clystron/followers","following_url":"https://api.github.com/users/clystron/following{/other_user}","gists_url":"https://api.github.com/users/clystron/gists{/gist_id}","starred_url":"https://api.github.com/users/clystron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clystron/subscriptions","organizations_url":"https://api.github.com/users/clystron/orgs","repos_url":"https://api.github.com/users/clystron/repos","events_url":"https://api.github.com/users/clystron/events{/privacy}","received_events_url":"https://api.github.com/users/clystron/received_events","type":"User","site_admin":false},"created_at":"2018-06-27T09:52:27Z","updated_at":"2018-06-27T09:52:27Z","author_association":"NONE","body":"Seems very simliar to this https://redmine.pfsense.org/issues/6892"}}
{"actor":{"display_login":"clystron"}}