Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
November 20, 2006, 2:43 pm
rate this thread
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: 22.214.171.124
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 126.96.36.199,
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 188.8.131.52 --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
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 =----
- » Cloud Ace Technologies is offering Implementation Services on Cloud Computing, Cloud Serv...
- — Newest thread in » Linux Security