Suppose you have two subnets 192.168.1.0/24 and 192.168.2.0/24 joined by a netfilter router, and you want to browse Windows NetBios shares on the 192.168.2.0 subnet from a client machine on the 192.168.1.0 subnet.
Suppose you put the following rules on the router: iptables -A PREROUTING -t nat -d 192.168.1.255 -j DNAT --to 192.168.2.255 iptables -A FORWARD -j ACCEPT Would this forward a broadcast packet on the 192.168.1.0 network to the 192.168.2.0 network ? Presumably the reply to such a broadcast is sent back to the originating IP, so that would go back across the router perfectly okay. If you needed to transfer broadcasts from both networks to each other you'd have to be a bit clever with the iptables rules, so as not to translate a packet and then immediately translate it straight back again, but it could still be done. Unfortunately amongst all my Linux machines I don't have enough Windows computers here to try this idea out :-) Maybe someone else can comment on it from experience, or try and tell us what happens ? Antony.
