iptables: how to redirect VNC port to an external IP

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi to all,

I would like to redirect the VNC port to another PC which has a PUBLIC
IP address and it does not belong to my network; herewith an example:

My PC where I'm running iptables:
The PC where runs VNC: 80:56:192:175

both of them are public address.

I would like that when I try to connect by VNC to the IP,
iptables redirect the connection to the PC with the IP 80:56:192:175.

I tryed the following settings:

iptables -t nat -A PREROUTING -p tcp -d --dport 5900 -j
DNAT --to 80:56:192:175:5900

It doesn't work because probably I'm trying to use the NAT for and
"external" connection, I tryed also the option REDIRECT, but with this
one, I can just redirect port for the same IP.




Re: iptables: how to redirect VNC port to an external IP

On Mon, 20 Nov 2006 06:43:49 -0800, androtech wrote:

Quoted text here. Click to load it

Change your ':' (colons) to '.' (dot)



Smile... it increases your face value!

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+
----= East and West-Coast Server Farms - Total Privacy via Encryption =----

Site Timeline