|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Re: bin/117214: ipfw(8) fwd with IPv6 treats input as IPv4The following reply was made to PR bin/117214; it has been noted by GNATS.
From: Lars Eggert <lars.eggert@...> To: bug-followup@..., fabian@... Cc: Subject: Re: bin/117214: ipfw(8) fwd with IPv6 treats input as IPv4 Date: Sat, 22 Aug 2009 02:27:44 +0300 I still see this on 7.2-STABLE: [root@fit: ~] uname -a FreeBSD fit.nokia.com 7.2-STABLE FreeBSD 7.2-STABLE #18: Fri Jun 26 15:43:17 EEST 2009 root@...:/usr/obj/usr/src/sys/FIT i386 [root@fit: ~] ipfw add 64010 fwd 2001:2060:40:1::1 ip6 from 2001:2060:40:1::123,2001:2060:40:1::124 to not 2001:0708:0040:fff2::1/64 out 64010 fwd 0.0.7.209,2060 ip6 from 2001:2060:40:1::123,2001:2060:40:1::124 to not 2001:708:40:fff2::/64 out [root@fit: ~] ipfw show 64010 64010 0 0 fwd 0.0.7.209,2060 ip6 from 2001:2060:40:1::123,2001:2060:40:1::124 to not 2001:708:40:fff2::/64 out _______________________________________________ freebsd-ipfw@... mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw To unsubscribe, send any mail to "freebsd-ipfw-unsubscribe@..." |
|
|
Re: bin/117214: ipfw(8) fwd with IPv6 treats input as IPv4Lars Eggert wrote:
> The following reply was made to PR bin/117214; it has been noted by GNATS. > > From: Lars Eggert <lars.eggert@...> > To: bug-followup@..., fabian@... > Cc: > Subject: Re: bin/117214: ipfw(8) fwd with IPv6 treats input as IPv4 > Date: Sat, 22 Aug 2009 02:27:44 +0300 > > I still see this on 7.2-STABLE: > > [root@fit: ~] uname -a > FreeBSD fit.nokia.com 7.2-STABLE FreeBSD 7.2-STABLE #18: Fri Jun 26 > 15:43:17 EEST 2009 root@...:/usr/obj/usr/src/sys/FIT i386 > > [root@fit: ~] ipfw add 64010 fwd 2001:2060:40:1::1 ip6 from > 2001:2060:40:1::123,2001:2060:40:1::124 to not > 2001:0708:0040:fff2::1/64 out > 64010 fwd 0.0.7.209,2060 ip6 from > 2001:2060:40:1::123,2001:2060:40:1::124 to not 2001:708:40:fff2::/64 out > > [root@fit: ~] ipfw show 64010 > 64010 0 0 fwd 0.0.7.209,2060 ip6 from > 2001:2060:40:1::123,2001:2060:40:1::124 to not 2001:708:40:fff2::/64 out The trouble is with the :'s and the fact that parsing doen't really take care of multiple :'s. What I considering is changing it in such a way that one is allowed to specify ipv6 adresses as [a:bc::d] just like it works in firefox (and other places) Question then is do we use [a:bc::d]/48:53 or [a:bc::d/48]:53? --WjW _______________________________________________ freebsd-ipfw@... mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw To unsubscribe, send any mail to "freebsd-ipfw-unsubscribe@..." |
|
|
Re: bin/117214: ipfw(8) fwd with IPv6 treats input as IPv4Well, one pretty simple (and not always correct) fix would be to
assume that if an address has more than 1 colon, it's IPv6. The correct fix is to generate a small flex parser. Lars On 2009-8-22, at 14:42, Willem Jan Withagen wrote: > Lars Eggert wrote: >> The following reply was made to PR bin/117214; it has been noted by >> GNATS. >> >> From: Lars Eggert <lars.eggert@...> >> To: bug-followup@..., fabian@... >> Cc: >> Subject: Re: bin/117214: ipfw(8) fwd with IPv6 treats input as IPv4 >> Date: Sat, 22 Aug 2009 02:27:44 +0300 >> >> I still see this on 7.2-STABLE: >> >> [root@fit: ~] uname -a >> FreeBSD fit.nokia.com 7.2-STABLE FreeBSD 7.2-STABLE #18: Fri Jun 26 >> 15:43:17 EEST 2009 root@...:/usr/obj/usr/src/sys/FIT >> i386 >> >> [root@fit: ~] ipfw add 64010 fwd 2001:2060:40:1::1 ip6 from >> 2001:2060:40:1::123,2001:2060:40:1::124 to not >> 2001:0708:0040:fff2::1/64 out >> 64010 fwd 0.0.7.209,2060 ip6 from >> 2001:2060:40:1::123,2001:2060:40:1::124 to not >> 2001:708:40:fff2::/64 out >> >> [root@fit: ~] ipfw show 64010 >> 64010 0 0 fwd 0.0.7.209,2060 ip6 from >> 2001:2060:40:1::123,2001:2060:40:1::124 to not >> 2001:708:40:fff2::/64 out > > The trouble is with the :'s and the fact that parsing doen't really > take > care of multiple :'s. > What I considering is changing it in such a way that one is allowed to > specify ipv6 adresses as [a:bc::d] just like it works in firefox (and > other places) > > Question then is do we use [a:bc::d]/48:53 or [a:bc::d/48]:53? > > --WjW |
|
|
Re: bin/117214: ipfw(8) fwd with IPv6 treats input as IPv4Lars Eggert wrote:
> Well, one pretty simple (and not always correct) fix would be to assume > that if an address has more than 1 colon, it's IPv6. > > The correct fix is to generate a small flex parser. Which will require to spec an real grammar for the tokens. In itself of course a "good thing(tm)" --WjW _______________________________________________ freebsd-ipfw@... mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw To unsubscribe, send any mail to "freebsd-ipfw-unsubscribe@..." |
| Free embeddable forum powered by Nabble | Forum Help |