From: "Martin A. Brown" <mabrown-lartc@securepipe.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] iptables port forward
Date: Wed, 21 May 2003 14:51:10 +0000 [thread overview]
Message-ID: <marc-lartc-105352872614780@msgid-missing> (raw)
In-Reply-To: <marc-lartc-105353014516821@msgid-missing>
Hi there Tomas!
: iptables -t nat -I PREROUTING 4 -i eth0 -d x -p tcp --dport 80 \
: -j DNAT --to y when/how do i specify port 7865?
This should do the trick:
iptables -t nat -I PREROUTING 4 -i eth0 -d $PUB_IP -p tcp --dport 80 \
-j DNAT --to-destination $PRIV_IP:7865
Check out Oskar Andreeason's tutorial on this very matter.
http://iptables-tutorial.frozentux.net/iptables-tutorial.html#DNATTARGET
Ciao for now,
-Martin
--
Martin A. Brown --- SecurePipe, Inc. --- mabrown@securepipe.com
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next prev parent reply other threads:[~2003-05-21 14:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-21 14:43 [LARTC] iptables port forward Tomas Bonnedahl
2003-05-21 14:51 ` Martin A. Brown [this message]
2003-05-21 14:57 ` Tomas Bonnedahl
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=marc-lartc-105352872614780@msgid-missing \
--to=mabrown-lartc@securepipe.com \
--cc=lartc@vger.kernel.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.