iptables: how to redirect VNC port to an external IP
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: 126.96.36.199
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 188.8.131.52,
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 184.108.40.206 --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:
> I tryed the following settings:
> iptables -t nat -A PREROUTING -p tcp -d 220.127.116.11 --dport 5900 -j
> DNAT --to 80:56:192:175:5900[/color]
Change your ':' (colons) to '.' (dot)
Smile... it increases your face value!
----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
[url]http://www.newsfeeds.com[/url] The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----