Certain traffic not being routed as expected

Steve Bertrand steve at ibctech.ca
Thu Jan 29 16:25:37 PST 2009


Hi everyone,

I have a strange issue, and am hoping that I am just missing something
simple. I apologize for the length, but I'm at a complete loss.

I learn the IPv4 BOGON from Cymru via BGP, and here is one route
currently in my routing table:

192.168.0.0/16     192.168.222.1      UG1         0   408084  disc0

I've been trying to clean up certain leaky private IP space, so to find
out if things are being dropped accordingly on the router, I implemented
a few counts in IPFW. For the most part, they work ok:

Jan 29 18:59:35 lanx kernel: ipfw: 30 Count UDP 208.70.107.130:138
10.0.3.12:138 in via em6

Jan 29 18:59:35 lanx kernel: ipfw: 32 Count UDP 208.70.107.130:138
10.0.3.12:138 out via disc0

However, I have a couple of stubborn prefixes that march their way right
through (in one physical interface, and out another):

Jan 29 18:59:59 lanx kernel: ipfw: 34 Count TCP 192.168.100.21:3720
208.70.106.58:25 in via em0

Jan 29 18:59:59 lanx kernel: ipfw: 36 Count TCP 192.168.100.21:3720
208.70.106.58:25 out via em4

I can verify that the space is routed properly (via Quagga):

lanx# sh ip route 192.168.100.21
Routing entry for 192.168.0.0/16
  Known via "bgp", distance 20, metric 0, best
  Last update 01w3d10h ago
  * 192.168.222.1, via disc0

...and if I ping it from my workstation (NAT'd via office gateway,
attached to em1 on the router), it is null-routed properly:

C:\Documents and Settings\steve>ping 192.168.100.21

Pinging 192.168.100.21 with 32 bytes of data:

Control-C
^C

Jan 29 19:19:17 lanx-eagle-noc kernel: ipfw: 30 Count ICMP:8.0
208.70.104.100 192.168.100.21 in via em1

Jan 29 19:19:17 lanx-eagle-noc kernel: ipfw: 32 Count ICMP:8.0
208.70.104.100 192.168.100.21 out via disc0

Does anyone have any idea why certain packets with private IP space are
not being routed to null correctly? Could this be some form of evasive
technique to avoid hitting the kernel route?

Steve


More information about the freebsd-net mailing list