All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Amir Zangeneh <amir@noytrino.com>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: udp portforward on same interface
Date: Tue, 15 Jul 2003 14:36:18 +0200	[thread overview]
Message-ID: <3F13F542.4010301@trash.net> (raw)
In-Reply-To: <060e01c34a32$ad0df860$15d2f181@TheTraveller>

This doesn't belong on netfilter-devel as it's clearly a user question which
can even be easily answered by looking at the manpage.

Example:
iptables -t nat -A PREROUTING -i <if> -p udp --dport 78 -j REDIRECT 
--to-ports 98
iptables -A INPUT -i <if> -p tcp --dport 98 -j ACCEPT

Bye
Patrick

Amir Zangeneh wrote:

> Hi
>  
> I'm using iptables as a firewall system and I'm very pleased. But I'm 
> trying to make a rule which forwards a udp port to another on the same 
> interface.. I want users who connect to port 78 be redirected to port 
> 98.. Is it possible to do this with iptables? If yes.. Could someone 
> give me an example.. thank you..
>  
>  
> Amir

  reply	other threads:[~2003-07-15 12:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-14 18:06 udp portforward on same interface Amir Zangeneh
2003-07-15 12:36 ` Patrick McHardy [this message]
2003-07-15 13:37 ` Sven Schuster
2003-07-15 13:38 ` Sven Schuster

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=3F13F542.4010301@trash.net \
    --to=kaber@trash.net \
    --cc=amir@noytrino.com \
    --cc=netfilter-devel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.