Hi, I'm using kernel FreeBSD 10.0-BETA3 #2 r257635 kernel. I am trying to add port number to ipfw tables. But there is something strange : Problem is easily repeatable. #ipfw table 1 flush #ipfw table 1 add 4899 #ipfw table 1 list ::/0 0 #ipfw table 1 flush #ipfw table 1 add 10.2.3.01 ( not 10.0.0.1, the last 1 has 0 as prefix ) #ipfw table 1 list ::/0 0 #ipfw table 1 delete ::/0 ipfw: setsockopt(IP_FW_TABLE_XDEL): No such process I guess that, this problem is related to radix mask calculation problem/fix. Is there a quick solution for this. Best, regards,
On Tue, Nov 19, 2013 at 8:55 PM, ?zkan KIRIK <ozkan.kirik at gmail.com> wrote:> Hi, > > I'm using kernel FreeBSD 10.0-BETA3 #2 r257635 kernel. > I am trying to add port number to ipfw tables. But there is something > strange : > Problem is easily repeatable. > > #ipfw table 1 flush > #ipfw table 1 add 4899 > #ipfw table 1 list > ::/0 0 >Works with ipfw table 1 add 0 4899> > #ipfw table 1 flush > #ipfw table 1 add 10.2.3.01 ( not 10.0.0.1, the last 1 has 0 as > prefix ) > #ipfw table 1 list > ::/0 0 >Did you mean ipfw table 1 add 10.2.3.0 1 ? That works for me.> > #ipfw table 1 delete ::/0 > ipfw: setsockopt(IP_FW_TABLE_XDEL): No such process >However ipfw table 1 delete 0.0.0.0/0 does.> > > I guess that, this problem is related to radix mask calculation > problem/fix. > > Is there a quick solution for this. > Best, regards,Best regards Andreas
On 20.11.2013 02:55, ?zkan KIRIK wrote:> Hi, > > I'm using kernel FreeBSD 10.0-BETA3 #2 r257635 kernel. > I am trying to add port number to ipfw tables. But there is something > strange : > Problem is easily repeatable. > > #ipfw table 1 flush > #ipfw table 1 add 4899 > #ipfw table 1 list > ::/0 0Have you tried "ipfw -i table 1 list" ?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 19.11.2013 23:55, ?zkan KIRIK wrote:> Hi, > > I'm using kernel FreeBSD 10.0-BETA3 #2 r257635 kernel. I am trying > to add port number to ipfw tables. But there is something strange > : Problem is easily repeatable. > > #ipfw table 1 flush #ipfw table 1 add 4899 #ipfw table 1 list ::/0 > 0 > > #ipfw table 1 flush #ipfw table 1 add 10.2.3.01 ( not > 10.0.0.1, the last 1 has 0 as prefix ) #ipfw table 1 list ::/0 0 > > #ipfw table 1 delete ::/0 ipfw: setsockopt(IP_FW_TABLE_XDEL): No > such process > > > I guess that, this problem is related to radix mask calculation > problem/fix.Hello. I'm sorry, it seems that key lookups were broken for quite a long time. Can you apply attached patch, rebuild ipfw(8) binary and see if this helps?> > Is there a quick solution for this. Best, regards, > _______________________________________________ > freebsd-ipfw at freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw To > unsubscribe, send any mail to > "freebsd-ipfw-unsubscribe at freebsd.org" >-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (FreeBSD) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlKRGZIACgkQwcJ4iSZ1q2n0hgCgkiqRewC61LptUaG4ejvHIg0q PawAoID3nfNxh3sTOVE/iKNtfjHpl9u0 =6GdO -----END PGP SIGNATURE----- -------------- next part -------------- A non-text attachment was scrubbed... Name: ipfw_lookup.diff Type: text/x-patch Size: 364 bytes Desc: not available URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20131124/cc79e42a/attachment.bin>