SSH Tunneling on MrVM NAT VPS Continuation from old forum

milkboymilkboy OG
edited November 2019 in Technical

Continuation of this forum post

TL;DR I want to reverse ssh tunnel port on an IPv4 assigned port.
But all local internal IP port is closed ( except SSH port).
i forwarded PC FTP port to any port.
On localhost (127.0.0.1:any-port) can connect, port scanning shows opened.
On Internal IP (172.1ww.xx.yy:any-port). connection refused, port scanning shows closed.

I port forward to my assign ports. still no dice.

any ideas what i need to do?

Tagged:

Comments

  • This is probably a long shot - but have you tried a different port within your assigned port range?

  • mikhomikho AdministratorHosting ProviderOG

    Thats not how Domain forwarding is ment to work with mrVM. Please only use HTTP and/or HTTPS as TCP breaks the NAT forwarding on every reboot.
    And when used wrong (in most cases) it also hinders HAProxy to reload any updated config.

    "source domain/IP" - your domain name should be entered here.
    Source Port - Either port 80 or 443 depending if you selected HTTP or HTTPS. This should be filled if you use the WHMCS integrated panel
    Destination IP - your internal IP.
    Destination Port: Either port 80 or 443 depending if you selected HTTP or HTTPS. This should be filled if you use the WHMCS integrated panel

    The assigned port forward setup is already forwarded from the outside to the inside.
    So all you have to do is the configure your application to listen on one of your assigned ports, connect to the external IP and the same port number and it works.

    The FTP protocol is a bit different as it has one port for commands and one for data, here is one tutorial for doing that.
    https://www.jscape.com/blog/setting-up-an-ftps-server-behind-a-firewall-or-nat-for-pasv-mode-data-transfers

    Is your application listening to the Internal IP or only on localhost?

  • NeoonNeoon OG
    edited November 2019

    TCP breaks the forwarding, why?

  • You could use iptables to forward incoming allocated NAT port to your local port..

    A simple uptime dashboard using UptimeRobot API https://upy.duo.ovh
    Currently using VPS from BuyVM, GreenCloudVPS, Gullo's, Hetzner, HostHatch, InceptionHosting, LetBox, MaxKVM, MrVM, VirMach.

  • InceptionHostingInceptionHosting Hosting ProviderOG

    @Neoon said:
    TCP breaks the forwarding, why?

    because you cant use haproxy for ssh tunneling because it is headerless so when you try you get undesired results.

    https://inceptionhosting.com
    Please do not use the PM system here for Inception Hosting support issues.

  • mikhomikho AdministratorHosting ProviderOG

    @Neoon said:
    TCP breaks the forwarding, why?

    @AnthonySmith said:

    @Neoon said:
    TCP breaks the forwarding, why?

    because you cant use haproxy for ssh tunneling because it is headerless so when you try you get undesired results.

    And because people enter the wrong values, creating a config file that is not valid.

  • Lolz. i giv> @chocolateshirt said:

    You could use iptables to forward incoming allocated NAT port to your local port..

    Tried that but still closed for some reason.

    Truth be told im giving up on ssh reverse tunneling for now.
    but will probably circle back once im interested again.

    @mikho said:
    The FTP protocol is a bit different as it has one port for commands and one for data, here is one tutorial for doing that.
    Is your application listening to the Internal IP or only on localhost?

    i tried on both internal ip and local host.
    The FTP is just one of the many things i tried to tunnel.
    Thanks for the help tho @mikho

    Im moving to testing VPNs on NAT VPS for now.

    If any one manage to figure it out, please by all means post your solution.

  • Check your firewall..

    Thanked by (1)mikho

    A simple uptime dashboard using UptimeRobot API https://upy.duo.ovh
    Currently using VPS from BuyVM, GreenCloudVPS, Gullo's, Hetzner, HostHatch, InceptionHosting, LetBox, MaxKVM, MrVM, VirMach.

  • mikhomikho AdministratorHosting ProviderOG

    @chocolateshirt said:
    Check your firewall..

    And this

  • hmm...
    AFAIK there is no firewall running.
    I might be wrong. but ill try it soon.

  • milkboymilkboy OG
    edited December 2019

    So...
    I just Reinstalled the OS from to debian 10 (previously default debian 8)
    ssh reverse tunneling now just works.

    soo its resolved.

    i still have no idea why previously it didnt work.

    finally. =)

    Hahaha i cant believe it just take an OS reinstall to the latest one.

    Thanked by (1)mikho
Sign In or Register to comment.

This Site is currently in maintenance mode.
Please check back here later.

→ Site Settings