From: "Wei Ming Long" <WEI_Ming_Long@dsi.a-star.edu.sg>
To: netfilter-devel@lists.netfilter.org,
Netfiltermailinglistnetfilter@lists.netfilter.org
Subject: iptables help
Date: Thu, 04 Nov 2004 10:40:51 +0800 [thread overview]
Message-ID: <s18a0743.032@dsi.a-star.edu.sg> (raw)
Hi everone,
I have a setup as shown below:
VNC Server 192.168.1.4
|
| --------> ssh tunnel on port 5800
|
eth1= 192.168.1.2
|
Linux Gateway
|
eth0=192.168.33.167
|
|
WindowsXP 192.168.33.164
Requirement: To be able to access the VNC Server behind the Linux gateway
using the web browser on port 5800 tunneled through ssh.
I created a ssh tunnel between the VNC Server(192.168.1.4) & the Linux
Gateway(192.168.1.2) for port 5800 and the following iptables command in
Gateway:
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to
192.168.1.2:5800
When I type in http://192.168.33.167 in the browser on the WindowsXP machine,
Iwas expecting that the http request on port 80 would be redirected to port
5800 & go through the tunnel & reach the VNC Server.
But it doesn't work, what is wrong? can someone please help me with this?
Best regards
Matthew
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
This email is confidential and may be privileged. If you are not the intended recipient, please delete it and notify us immediately. Please do not copy or use it for any purpose, or disclose its contents to any other person. Thank You.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
next reply other threads:[~2004-11-04 2:40 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-04 2:40 Wei Ming Long [this message]
2004-11-04 21:02 ` iptables help Jason Opperisano
2004-11-04 22:39 ` Bosse Klykken
-- strict thread matches above, loose matches on Subject: below --
2004-12-15 23:09 IPTABLES HELP Burton
2004-12-15 23:17 ` Jason Opperisano
2004-07-28 23:20 iptables help Ashley M. Kirchner
2004-07-29 6:32 ` Antony Stone
2004-05-31 16:20 iptables Help Daniel Chemko
2004-05-31 10:36 Vinay Poojary
2003-10-13 3:04 iptables help George Vieira
2003-10-10 4:45 JM
2003-10-10 5:29 ` Ralf Spenneberg
2003-10-13 3:12 ` JM
2003-02-17 6:15 Laxman Gummadavally
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=s18a0743.032@dsi.a-star.edu.sg \
--to=wei_ming_long@dsi.a-star.edu.sg \
--cc=Netfiltermailinglistnetfilter@lists.netfilter.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox