I've been ripping out what little hair I have left for two days on
this problem... Here's my situation:

I have a box (FreeBSD 4.0/i386) that has a ton of broadcast traffic coming
into it's fxp1 port. I want that traffic to show up on another LAN as
broadcast, effectively changing the dest addr of the packet from
255.255.255.255 to 172.31.85.255. 

When I use ipfw and natd to change the dest ip of packets from
255.255.255.255 to a unicast address on that subnet,
(e.g. 172.31.85.10) it works just fine (i.e. I can see the traffic show up
on the 172.31.85/24 lan) However, when I set the dest IP for broadcast no
traffic shows up at all...

More specifically, in the above unicast case, I can see the traffic
leaving the destination box's ethernet interface (via netstat 1). In the
broadcast case, I see nothing leaving the ethernet interface.

Is this a limitation or a bug? Could it be a routing issue (though, not
sure how.)

When running in debug mode, natd is reportedly aliasing the packet
properly:

In  [UDP]  [UDP] 212.34.164.122:4054 -> 255.255.255.255:9090 aliased to
           [UDP] 212.34.164.122:4054 -> 172.31.85.255:9090

Part of me thinks that for some reason IP NAT is not turning on the
broadcast flag for the socket, but I'm not sure.

Little help? Muchas Gracias.
--Rob
____________________________________________________________________________
Rob Harris      8037 Laurel Lakes Court, Laurel MD      301.598.0500 x2236
Cidera, Inc.            [EMAIL PROTECTED]              fax: 301.598.0837
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
"Don't rush me sonny. You rush a miracle man, you get rotten miracles."
                                        --Miracle Max, The Princess Bride


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to