Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Ben Murphy <ben@mrassociates.com>
To: Netfilter <netfilter@lists.netfilter.org>
Subject: DNAT and broadcast
Date: Thu, 02 Sep 2004 10:11:48 -0400	[thread overview]
Message-ID: <41372A24.3020006@mrassociates.com> (raw)

I was working with DNAT and I can successfully send a traffic to another 
machine.  The problem is that broadcast traffic is not routed.  So I added:
iptables -t nat -A PREROUTING -p udp -d 192.168.1.255 --dport 3000 -j 
DNAT --to-destination 172.16.17.21

This is the only rule.  But nothing is seen by the remote machine. 
Normal traffic is routed correctly.

My guess is that even though the IP address has been changed the MAC 
address has not and that is what is causing the packet to not be routed. 
  Correct?  Is there a way to do this?

-- 
Ben Murphy
ben@mrassociates.com




             reply	other threads:[~2004-09-02 14:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-02 14:11 Ben Murphy [this message]
2004-09-02 14:31 ` DNAT and broadcast Jason Opperisano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41372A24.3020006@mrassociates.com \
    --to=ben@mrassociates.com \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox