Skip to contentSkip to conversation

broadcast and router ?

DISCUSSION Mohamed Eldesoky 2 participants 2 messages May 16, 2005 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

ebtables ??

Quoted 16 lines · Sdimitrov

Hi. Sorry for my bad english.

Our local chat use a UDP 8167 and broadcast. All is OK but people over router in other network don't receive a packets.

Can I have route this packets to they's network with iptables?

networks are 192.168.0.255 and 192.168.1.255

thanks

________________________________________________
Message sent using
UebiMiau 2.7.2

Signature · 3 lines
Mohamed Eldesoky
www.eldesoky.net
RHCE
#2 lore raw
Quoted 10 lines

ebtables ??

Quoted 8 lines

Hi. Sorry for my bad english.

Our local chat use a UDP 8167 and broadcast. All is OK but people over router in other network don't receive a packets.

Can I have route this packets to they's network with iptables?

networks are 192.168.0.255 and 192.168.1.255

If I could not get both networks working on a larger subnet (/23?) I would possibly try (D/S)NATing traffic that was destined to one subnetworks broadcast address to another and vice-versa. I would also seriously look to see if there was an application level proxy for your chat program. Below is a sample rule that I would be tempted to try:

iptables -t nat -A PREROUTING -i $LAN_1_if -d 192.168.0.255 -p udp --dport 8167 -j DNAT --to-destination 192.168.1.255 iptables -t nat -A PREROUTING -i $LAN_2_if -d 192.168.1.255 -p udp --dport 8167 -j DNAT --to-destination 192.168.0.255 iptables -t nat -A POSTROUTING -o $LAN_1_if -d 192.168.0.255 -p udp --dport 8167 -j SNAT --to-source $LAN_1_if_IP iptables -t nat -A POSTROUTING -o $LAN_2_if -d 192.168.1.255 -p udp --dport 8167 -j SNAT --to-source $LAN_2_if_IP

I *think* this is a quick and *DIRTY* hack that should get the traffic to cross the subnets. I say DIRTY b/c this type of practice is avoided for a lot of different reasons. You may or may not want to SNAT the traffic depending on how the client software plays. I would make sure to ONLY DNAT traffic to the broadcast to a specific UDP port to prevent spreading of any other broadcast traffic.

Grant. . . .