Connect to server from behind firewall

Forums / General Discussions / Connect to server from behind firewall

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6635
    Avatarlorandsm
    Participant

    Hi,

    I’m trying to connect to the NoMachine server using port 80. The NoMachine server is installed on my router (I configured a PC as a router). I’m trying to connect to it from a place which is behind a firewall.

    I’ve configured the my firewall to redirect port 80 to 4000:

    iptables -t nat -A PREROUTING -i $INET_IFACE -p tcp –dport $HOST_HTTP_PORT -j REDIRECT –to-port $HOST_NOMACHINE_PORT

    iptables -t nat -A PREROUTING -i $INET_IFACE -p udp –dport $HOST_HTTP_PORT -j REDIRECT –to-port $HOST_NOMACHINE_PORT

    where HOST_HTTP_PORT is 80 and HOST_NOMACHINE_PORT is 4000.

    In server.cfg I left

    NXPort 4000

    I’ve tried with and without the following:

    EnableUPnp NX

    NXUPnPPort 80

    But I couldn’t connect either way. Is there anything else I need to configure? Thanks.

    #6680
    AvatarTom
    Participant

    Hello
    We tried to reproduce the problem in our laboratory.Unfortunately we were unable to.

    Please run the command “iptables -t nat -A PREROUTING” and paste the lines at the forum which is the end of 4000.

    Is the computer where NoMachine installed connected to another router or modem?

    If so please give the name and model.

Viewing 2 posts - 1 through 2 (of 2 total)

Closed because the user did not provide further feedback. Please notify us if you confirm that it is resolved or open a new topic if you have the same problem.