Bogons, and how to leverage public IP feeds with NSX-T

Have you ever wondered what happened to all the privately-addressed traffic coming from any home network?

Well, if it isn't explicitly blocked by the business, it's routed, and this is not good. Imagine what data leakage can occur when a user mistypes a destination IP - the traffic goes out to the Service Provider, who will probably drop it somewhere, but it's inviting wiretapping/hijacking to occur.

RFC 1918 over the internet is part of a larger family of addresses called "bogons", an industry term to indicate a short list of prefixes that shouldn't be publicly routed.

Many network attacks traversing the public internet flow from what the industry calls "fullbogons", or addresses that, while publicly routable, aren't legitimate. These addresses are obviously block-able, with no legitimate uses.

As it turns out, the industry calls these types of network traffic Internet background noise, and recent IPv4 shortages have pushed some providers (Cloudflare in particular) into implementing on previous fullbogon space and shouldering the noise from an internet-load of mis-configured network devices.

The solution for mitigating both problems is the same: filtering that network traffic. Team Cymru provides public services that list all bogon types for public ingestion, all that needs to be done here is implementation and automation.

Bogon strategies

Given that the bogon list is extremely short, bogons SHOULD be implemented as null routes on perimeter routing. Due care may be required when filtering RFC 1918 in enterprise deployments with this method - Longest Prefix Match (LPM) will ensure that any specifically routed prefix will stay reachable, as long as dynamic routing is present and not automatically summarizing to the RFC 1918 parent. If this is a concern, implement what's possible today and build a plan for what isn't later.

Here's an example of how to implement with VyOS:

 1protocols {  
 2    static {  
 3        route 10.0.0.0/8 {  
 4            blackhole {  
 5            }  
 6        }  
 7        route 10.66.0.0/16 {  
 8            blackhole {  
 9            }  
10        }  
11        route 100.64.0.0/10 {  
12            blackhole {  
13            }  
14        }  
15        route 169.254.0.0/16 {  
16            blackhole {  
17            }  
18        }  
19        route 172.16.0.0/12 {  
20            blackhole {  
21            }  
22        }  
23        route 192.0.2.0/24 {  
24            blackhole {  
25            }  
26        }  
27        route 192.88.99.0/24 {  
28            blackhole {  
29            }  
30        }  
31        route 192.168.0.0/16 {  
32            blackhole {  
33            }  
34        }  
35        route 198.18.0.0/15 {  
36            blackhole {  
37            }  
38        }  
39        route 198.51.100.0/24 {  
40            blackhole {  
41            }  
42        }  
43        route 203.0.113.0/24 {  
44            blackhole {  
45            }  
46        }  
47    }  
48}  

This approach is extremely straightforward and provides almost instant value.

Fullbogon strategies

For smaller enterprises and below (in this case, "smaller enterprise" means unable to support 250k+ prefixes via BGP, so nearly everybody) the most effective path to mitigate fullbogons isn't routing. Modern policy based firewalls typically have features that can subscribe to a list and perform policy-level packet filtering. The following are examples of firewall platform built-ins that let you just subscribe to a service:

In all of these cases, policies must be configured to enforce on traffic in addition to ingesting the threat feeds.

We can build this on our own, though. Since NSX-T has a policy API, let's apply it to a manager:

The method I provided here can be applied to any IP list with some minimal customization. There is only really one key drawback to this population method - the 4,000 object limit.