All of lore.kernel.org
 help / color / mirror / Atom feed
From: <sc2@gmx.at>
To: netfilter@lists.netfilter.org
Subject: forward again
Date: Thu, 4 Dec 2003 13:21:53 +0100	[thread overview]
Message-ID: <000f01c3ba61$3418f230$7cd36c50@anonymous> (raw)

hello
when i want forward ip > to > ip. (.51 > 58)
what i must do that it works? maybe a rule too on the destination adre to
reply with other source ip??
thx bye
--------------tables--------
echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -I FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT

iptables -F FORWARD
iptables -t nat -F


iptables -A FORWARD -p udp -d xx.xxx.xx.58 --dport 27021 -j ACCEPT
iptables -A PREROUTING -p udp -d xx.xxx.xx.51 --dport 27021 -j DNAT --to
62.116.24.58:27021
iptables -A FORWARD -p tcp -d xx.xxx.xx.58 --dport 27021 -j ACCEPT
iptables -A PREROUTING -p tcp -d xx.xxx.xx.51 --dport 27021 -j DNAT --to
xx.xxx.xx.58:27021




             reply	other threads:[~2003-12-04 12:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-04 12:21 sc2 [this message]
2003-12-04 12:31 ` forward again Antony Stone

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='000f01c3ba61$3418f230$7cd36c50@anonymous' \
    --to=sc2@gmx.at \
    --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 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.