IPv6 null route

Previous thread: Stupid Ideas - softraid and ExpEther by J.C. Roberts on Monday, April 6, 2009 - 7:23 pm. (6 messages)

Next thread: Re: PF failing to create state for ipv6 tunnel by Stuart Henderson on Tuesday, April 7, 2009 - 2:13 am. (1 message)
From: Garry Dolley
Date: Monday, April 6, 2009 - 7:29 pm

Hey misc@,

I'm trying to install a null route for an IPv6 block, but I get:

$ sudo route add -inet6 2607:f2f8::/32 ::1 -blackhole
route: 2607:f2f8::/32: bad value

What is bad about that v6 address?

Note that even when omitting -blackhole, it will still error.

I'm running OpenBSD 4.4 on amd64 arch.  Stock GENERIC kernel.

I'm sure it's simple but I don't deal w/ OpenBSD routers much.

Thanks.

-- 
Garry Dolley
ARP Networks, Inc. | http://www.arpnetworks.com | (818) 206-0181
Data center, VPS, and IP Transit solutions
Member Los Angeles County REACT, Unit 336 | WQGK336
Blog http://scie.nti.st

From: Todd T. Fries
Date: Monday, April 6, 2009 - 9:56 pm

I believe you want:

$ sudo route add -inet6 -net -blackhole 2607:f2f8:: -prefixlen 32 ::1 
-- 
Todd Fries .. todd@fries.net

 _____________________________________________
|                                             \  1.636.410.0632 (voice)
| Free Daemon Consulting, LLC                 \  1.405.227.9094 (voice)
| http://FreeDaemonConsulting.com             \  1.866.792.3418 (FAX)
| "..in support of free software solutions."  \          250797 (FWD)
|                                             \
 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
                                                 
              37E7 D3EB 74D0 8D66 A68D  B866 0326 204E 3F42 004A
                        http://todd.fries.net/pgp.txt

Penned by Garry Dolley on 20090406 19:29.46, we have:
| Hey misc@,
| 
| I'm trying to install a null route for an IPv6 block, but I get:
| 
| $ sudo route add -inet6 2607:f2f8::/32 ::1 -blackhole
| route: 2607:f2f8::/32: bad value
| 
| What is bad about that v6 address?
| 
| Note that even when omitting -blackhole, it will still error.
| 
| I'm running OpenBSD 4.4 on amd64 arch.  Stock GENERIC kernel.
| 
| I'm sure it's simple but I don't deal w/ OpenBSD routers much.
| 
| Thanks.
| 
| -- 
| Garry Dolley
| ARP Networks, Inc. | http://www.arpnetworks.com | (818) 206-0181
| Data center, VPS, and IP Transit solutions
| Member Los Angeles County REACT, Unit 336 | WQGK336
| Blog http://scie.nti.st

From: Garry Dolley
Date: Tuesday, April 7, 2009 - 12:15 am

Hi Todd,

Works great, thanks!

-- 
Garry Dolley
ARP Networks, Inc. | http://www.arpnetworks.com | (818) 206-0181
Data center, VPS, and IP Transit solutions
Member Los Angeles County REACT, Unit 336 | WQGK336
Blog http://scie.nti.st

Previous thread: Stupid Ideas - softraid and ExpEther by J.C. Roberts on Monday, April 6, 2009 - 7:23 pm. (6 messages)

Next thread: Re: PF failing to create state for ipv6 tunnel by Stuart Henderson on Tuesday, April 7, 2009 - 2:13 am. (1 message)