From: Jason Opperisano <opie@817west.com>
To: netfilter@lists.netfilter.org
Subject: Re: Port redirection
Date: Tue, 31 May 2005 22:45:22 -0400 [thread overview]
Message-ID: <20050601024522.GA7118@bender.817west.com> (raw)
In-Reply-To: <20050531192503.92186.qmail@web51002.mail.yahoo.com>
On Tue, May 31, 2005 at 12:25:03PM -0700, Chris NoSurname wrote:
> Hi all.
>
> I've searched and searched and I cannot seem to get
> this working.
>
> I'm trying to redirect port 80 to a different port so
> that I can run the Resin application server as
> non-root user. I've got the following command..
>
> iptables -t nat -A PREROUTING -p tcp --dport 80 -d
> x.x.x.x -j REDIRECT --to-ports 8900
if resin is not listening on $INBOUND_IF_IP:8900; or more realistically
0.0.0.0:8900, then it wouldn't work. REDIRECT rewrites the dst IP to be
the IP of the receiving interface, since you don't even have an "-i $IF"
specified in that rule, resin would have to be listening on 0.0.0.0:8900
to even have a shot at working properly (or the machine in question
only has a single interface, perhaps?).
-j
--
"Peter: We love the Bible in this house.
Francis: Really. What's your favorite book of the Bible?
Peter: Uhhhhh... the book where Jesus swallows the puzzle piece and
the man in the yellow hat has to take him to the hospital."
--Family Guy
next prev parent reply other threads:[~2005-06-01 2:45 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-31 19:25 Port redirection Chris NoSurname
2005-05-31 22:42 ` Anthony Sadler
2005-06-01 2:45 ` Jason Opperisano [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-08-05 4:57 Steve Fink
2009-08-05 14:04 ` Pascal Hambourg
2009-08-05 18:30 ` Steve Fink
2006-08-13 0:18 port redirection Brian Lewis
2006-08-13 6:18 ` Graham Murray
2006-08-13 7:54 ` Brian Lewis
[not found] <200505312248.j4VMmKcQ016084@rti02.co-lo.riverviewtech.net>
2005-05-31 23:37 ` Port redirection Taylor, Grant
2003-04-30 14:43 Port Redirection nassri abokhalaf
2003-04-30 14:38 ABOKHALAF, Nassri Abdellatif
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=20050601024522.GA7118@bender.817west.com \
--to=opie@817west.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 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.