iptables: how to redirect VNC port to an external IP - Security

This is a discussion on iptables: how to redirect VNC port to an external IP - Security ; 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: 81.34.56.90 The PC ...

+ Reply to Thread
Results 1 to 2 of 2

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

  1. 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: 81.34.56.90
    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 81.34.56.90,
    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 81.34.56.90 --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.

    Suggestions?

    Thanks

    Androtech


  2. 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 81.34.56.90 --dport 5900 -j
    > DNAT --to 80:56:192:175:5900


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


    --

    Regards
    Robert

    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+ Newsgroups
    ----= East and West-Coast Server Farms - Total Privacy via Encryption =----

+ Reply to Thread