Linux Netfilter discussions
 help / color / mirror / Atom feed
From: marcel lilienthal <ml@northernmaniacs.com>
To: netfilter@lists.netfilter.org
Subject: initiate a broadcast with dnat
Date: Wed, 09 Nov 2005 21:22:27 +0100	[thread overview]
Message-ID: <1131567747.9985.22.camel@localhost> (raw)

hello,

i want to initiate a broadcast if a udp packet with destination port
9999 reaches my router.
i have two devices: ppp0 (wan), eth0 (lan). broadcast of eth0 is
192.168.0.255.

when i use
iptables -t nat -A PREROUTING -i ppp0 -p upd --dport 9999 -j DNAT
--to-destination 192.168.0.255:9

the packet gets into the INPUT chain of ppp0 instead of the FORWARD
chain. if i use a non broadcast destination ip, the packet gets into
FORWARD chain.

is there a way to initiate a broadcast with iptables?

regards, marcel



                 reply	other threads:[~2005-11-09 20:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1131567747.9985.22.camel@localhost \
    --to=ml@northernmaniacs.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