doing NAT on udp broadcast traffic (for LAN tcp/ip gaming)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday 09 October 2002 7:49 pm, Chris Len wrote:

> I'm trying to create a psuedo-bridge between wireless and ethernet
> interface. All works well, except detection of lan game servers. These
> clients send out a global udp broadcast (255.255.255.255) to the game
> server's dst port, and the server replies. Currently however, I cannot nat
> this traffic.
>
> Is there any way to make this work?

I do not believe there is unless you turn your pseudo-bridge into a real 
bridge.

The reason is simple: broadcasts do not get routed.   A firewall with 
different network ranges on the two interfaces is a router.   Therefore you 
cannot send broadcasts across a firewall set up the way yours is.

If you set up full bridging, so that both interfaces were on the same IP 
address and therefore both sides of the machine were the same network, then 
broadcasts would travel across it.

You can't send broadcasts across a router even if you NAT them first.

Antony.

-- 

Normal people think "if it ain't broke, don't fix it".
Engineers think "if it ain't broke, it doesn't have enough features yet".



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux