Re: iptables help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2004-11-03 at 21:40, Wei Ming Long wrote:
> 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?

without seeing how your ssh forwarding is setup, no.

-j

--
"Ah! the searing kiss of hot lead; how I missed you! I mean, I think
 I'm dying."
	--The Simpsons



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux