https://redmine.pfsense.org/https://redmine.pfsense.org/favicon.ico?16780521162010-05-31T22:45:56ZpfSense bugtrackerpfSense - Bug #632: Change type of Virtual IP not work.https://redmine.pfsense.org/issues/632?journal_id=20682010-05-31T22:45:56ZChris Buechlercbuechler@gmail.com
<ul><li><strong>Target version</strong> set to <i>2.0</i></li></ul> pfSense - Bug #632: Change type of Virtual IP not work.https://redmine.pfsense.org/issues/632?journal_id=20882010-06-02T21:16:58ZErik Fonnesbeck
<ul></ul><p>I think it is saying the error occurred on this line in interface_bring_down:</p>
<p><code>if (!isset($config['interfaces'][$interface]))</code></p>
<p>Maybe the caller is giving it bad data, like a blank string for the interface name.</p> pfSense - Bug #632: Change type of Virtual IP not work.https://redmine.pfsense.org/issues/632?journal_id=21002010-06-04T10:40:08ZErmal Luçieri@pfsense.org
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Feedback</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset <a class="changeset" title="Fixes #632. Actually pass the interface and not the vip configuration to the function." href="https://redmine.pfsense.org/projects/pfsense/repository/2/revisions/5523fa3d2d35067a33504f9d143039d60e957adf">5523fa3d2d35067a33504f9d143039d60e957adf</a>.</p> pfSense - Bug #632: Change type of Virtual IP not work.https://redmine.pfsense.org/issues/632?journal_id=21072010-06-05T06:17:22ZMike Stupalov
<ul></ul><p>Well, now the error does not occur. But now at change of type virtual IP the previous is not deleted.</p>
<p>I have replaced type from IF alias to ProxyARP and have received at once 2 virtual addresses simultaneously:<br /><pre>
# ifconfig em0
em0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC>
ether 00:30:48:8b:4f:2c
inet6 fe80::230:48ff:fe8b:4f2c%em0 prefixlen 64 scopeid 0x2
inet 192.168.168.2 netmask 0xffffff00 broadcast 192.168.168.255
->>> inet 192.168.168.3 netmask 0xffffffff broadcast 192.168.168.3
nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
</pre></p>
<pre>
# ps auxw |grep choparp
root 24758 0.0 0.0 3316 1008 ?? Is 2:06PM 0:00.00 /usr/local/sbin/choparp em0 auto 192.168.168.3/32
</pre> pfSense - Bug #632: Change type of Virtual IP not work.https://redmine.pfsense.org/issues/632?journal_id=21082010-06-05T06:40:52ZMike Stupalov
<ul></ul><p>...and if again to change back, are deleted all IP addresses from the interface, except the virtual. Even the main IP:<br /><pre>
# ifconfig em0
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC>
ether 00:30:48:8b:4f:2c
inet6 fe80::230:48ff:fe8b:4f2c%em0 prefixlen 64 scopeid 0x2
inet 192.168.168.3 netmask 0xffffffff broadcast 192.168.168.3
nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
</pre></p>
<p>192.168.192.1/24 - Main IP<br />192.168.168.2/24 - virtual IP (1)<br />192.168.168.3/32 - virtual IP (2) - changed</p> pfSense - Bug #632: Change type of Virtual IP not work.https://redmine.pfsense.org/issues/632?journal_id=21122010-06-06T22:15:59ZChris Buechlercbuechler@gmail.com
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>New</i></li></ul> pfSense - Bug #632: Change type of Virtual IP not work.https://redmine.pfsense.org/issues/632?journal_id=21642010-06-14T05:34:54ZErmal Luçieri@pfsense.org
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Feedback</i></li></ul> pfSense - Bug #632: Change type of Virtual IP not work.https://redmine.pfsense.org/issues/632?journal_id=21652010-06-14T05:35:09ZErmal Luçieri@pfsense.org
<ul></ul><p>Applied in changeset <a class="changeset" title="Fixes #632. Use the correct function to handle vip destory." href="https://redmine.pfsense.org/projects/pfsense/repository/2/revisions/e03b0a03fb52f94e4f2a85baecdcb9ada18ec939">e03b0a03fb52f94e4f2a85baecdcb9ada18ec939</a>.</p> pfSense - Bug #632: Change type of Virtual IP not work.https://redmine.pfsense.org/issues/632?journal_id=21702010-06-14T06:35:43ZMike Stupalov
<ul></ul><pre>
if (preg_match("/^vip/^tun|^ovpn|^gif|^gre|^lagg|^bridge|vlan/i", $realif))
^
^-- error can here?
</pre> pfSense - Bug #632: Change type of Virtual IP not work.https://redmine.pfsense.org/issues/632?journal_id=21932010-06-16T01:53:07ZMike Stupalov
<ul></ul><p>I have tested again.</p>
<p>Now Virtual IP (IfAlias) on the interface correctly is added and deleted.<br />But at change from ProxyARP to IfAlias, choparp remains running.<br /><pre>
# ps auxww|grep choparp
root 57326 0.0 0.0 3316 1024 ?? Ss 9:43AM 0:00.01 /usr/local/sbin/choparp em0 auto 192.168.168.3/32
</pre></p> pfSense - Bug #632: Change type of Virtual IP not work.https://redmine.pfsense.org/issues/632?journal_id=21942010-06-16T01:57:10ZChris Buechlercbuechler@gmail.com
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>New</i></li></ul> pfSense - Bug #632: Change type of Virtual IP not work.https://redmine.pfsense.org/issues/632?journal_id=22012010-06-16T10:15:09ZErmal Luçieri@pfsense.org
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Feedback</i></li></ul><p>Applied in changeset <a class="changeset" title="Fixes #632. When bringing down a vip of proxyarp use the new pidfile introduced. Also teach about..." href="https://redmine.pfsense.org/projects/pfsense/repository/2/revisions/962fd685516ae137674ed0cde2445ebbeeefbdff">962fd685516ae137674ed0cde2445ebbeeefbdff</a>.</p> pfSense - Bug #632: Change type of Virtual IP not work.https://redmine.pfsense.org/issues/632?journal_id=22062010-06-17T03:30:54ZMike Stupalov
<ul></ul><p>Now with one virtual IP really works.</p>
<p>But :)<br />If to change at once 2 virtual IP (and more)..</p>
<p>Before tests (VIP: 192.168.168.3/32, 192.168.168.4/32)<br /><pre>
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC>
inet 192.168.192.1 netmask 0xffffff00 broadcast 192.168.192.255
inet 192.168.168.2 netmask 0xffffff00 broadcast 192.168.168.255
inet 192.168.168.3 netmask 0xffffffff broadcast 192.168.168.3
inet 192.168.168.4 netmask 0xffffffff broadcast 192.168.168.4
</pre></p>
<ul>
<li>Change from If to ARP.
<ul>
<li>IfAliases were deleted <ins>before I have pressed the button 'Apply changes'</ins><br /><pre>
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC>
inet 192.168.192.1 netmask 0xffffff00 broadcast 192.168.192.255
inet 192.168.168.2 netmask 0xffffff00 broadcast 192.168.168.255
</pre></li>
<li>After button 'Apply changes' pressing, there were 2 processes choparp, both with identical IP.<br /><pre>
root 36529 0.0 0.0 3316 1052 ?? Ss 11:13AM 0:00.00 /usr/local/sbin/choparp em0 auto 192.168.168.4/32
root 36693 0.0 0.0 3316 1052 ?? Ss 11:13AM 0:00.00 /usr/local/sbin/choparp em0 auto 192.168.168.4/32
</pre></li>
</ul></li>
</ul>
<ul>
<li>Change back from ARP to If.
<ul>
<li>Again <ins>changes have occurred before button 'Apply changes' pressing</ins>. One process 'choparp' was deleted and one remained.<br /><pre>
root 36529 0.0 0.0 3316 1052 ?? Ss 11:13AM 0:00.01 /usr/local/sbin/choparp em0 auto 192.168.168.4/32
</pre></li>
<li>After button 'Apply changes' pressing, one process 'choparp' still remained, but IfAliases have normally formed.<br /><pre>
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC>
inet 192.168.192.1 netmask 0xffffff00 broadcast 192.168.192.255
inet 192.168.168.2 netmask 0xffffff00 broadcast 192.168.168.255
inet 192.168.168.3 netmask 0xffffffff broadcast 192.168.168.3
inet 192.168.168.4 netmask 0xffffffff broadcast 192.168.168.4
--------
root 36529 0.0 0.0 3316 1052 ?? Ss 11:13AM 0:00.01 /usr/local/sbin/choparp em0 auto 192.168.168.4/32
root 51330 0.0 0.0 3524 1240 0 S+ 11:26AM 0:00.00 grep arp
</pre></li>
</ul></li>
</ul> pfSense - Bug #632: Change type of Virtual IP not work.https://redmine.pfsense.org/issues/632?journal_id=24982010-07-18T01:50:24ZChris Buechlercbuechler@gmail.com
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>New</i></li></ul><p>Some things do change before you apply changes. <br />1) When deleting a PARP entry, choparp is killed before clicking apply changes (which does nothing). This behavior is the same when changing a PARP entry to another VIP type, it kills it before applying changes (then adds the IP Alias or CARP IP when applying changes). <br />2) When changing from IP Alias to CARP type, the alias is deleted before applying changes.</p>
<p>Testing the same scenarios as Mike above, I never saw two instances of choparp running (which is the cause of the two issues noted in his last update).</p> pfSense - Bug #632: Change type of Virtual IP not work.https://redmine.pfsense.org/issues/632?journal_id=25832010-07-29T06:13:41ZErmal Luçieri@pfsense.org
<ul></ul><p>Well the problem with changing the type of alias is that you do not have anymore the information on the previous type.</p>
<p>It would be possible that when resetting a vip alias we try to delete every possible vip type we know, though that might spam logs a bit.<br />But if you think that is more correct than current behavior than i will try to implement it!</p> pfSense - Bug #632: Change type of Virtual IP not work.https://redmine.pfsense.org/issues/632?journal_id=30962010-09-01T09:59:27ZErmal Luçieri@pfsense.org
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Feedback</i></li></ul> pfSense - Bug #632: Change type of Virtual IP not work.https://redmine.pfsense.org/issues/632?journal_id=44062010-12-25T16:22:16ZChris Buechlercbuechler@gmail.com
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Resolved</i></li></ul>