Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Phil Sutter <phil@ctekproducts.com>
To: netfilter@lists.netfilter.org
Subject: Problem using -p udp
Date: Sun, 19 Aug 2007 15:37:11 -0700	[thread overview]
Message-ID: <1187563031.3654.8.camel@dev002.ctekproducts.com> (raw)

Hi,

I have been using Iptables on linux 2.4.26 for several years. I am
running on an Axis platform (cris architecture). Recently I started
moving my application to 2.6.19 and am using iptables 1.3.7. When I try
to use the sample rules shown below from my old environment, they fail
with an invalid parameter. The parameter causing the issue is the "udp"
associated with the "-p".  If I issue the same rule with a "-p tcp" they
work fine. Could someone explain why  "-p udp"  will not work?

/sbin/iptables -t nat -A PREROUTING -i ppp0 -p udp --dport 80 -j
REDIRECT --to-port 6383

/sbin/iptables -t nat -A PREROUTING -i ppp0 -p udp --dport 90 -j DNAT
--to 192.168.1.122:80


Thank you,

Phil



             reply	other threads:[~2007-08-19 22:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-19 22:37 Phil Sutter [this message]
2007-08-20  7:34 ` Problem using -p udp Покотиленко Костик

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=1187563031.3654.8.camel@dev002.ctekproducts.com \
    --to=phil@ctekproducts.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