Linux Netfilter discussions
 help / color / mirror / Atom feed
* Problem using -p udp
@ 2007-08-19 22:37 Phil Sutter
  2007-08-20  7:34 ` Покотиленко Костик
  0 siblings, 1 reply; 2+ messages in thread
From: Phil Sutter @ 2007-08-19 22:37 UTC (permalink / raw)
  To: netfilter

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Problem using -p udp
  2007-08-19 22:37 Problem using -p udp Phil Sutter
@ 2007-08-20  7:34 ` Покотиленко Костик
  0 siblings, 0 replies; 2+ messages in thread
From: Покотиленко Костик @ 2007-08-20  7:34 UTC (permalink / raw)
  To: Phil Sutter; +Cc: netfilter

В Вск, 19/08/2007 в 15:37 -0700, Phil Sutter пишет:
> 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

I have just tryed your rules on my Debian Etch box with kernel 2.6.18
and iptables 1.3.6 and they worked out.

Did you built your kernel and iptables youself? This case you probably
have forgotten to enable something.

-- 
Покотиленко Костик <casper@meteor.dp.ua>



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-08-20  7:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-19 22:37 Problem using -p udp Phil Sutter
2007-08-20  7:34 ` Покотиленко Костик

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox