Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

【inst.sh】how to reinstall nat linux to public accessible windows(win to linux also feasible)

minlearnminlearn Member
edited March 2025 in Tutorials

another killer feature!!

we can now use inst.sh to reinstall a nat vps ( which may not be access from internet with any method, like a nas, a home server, or a office pc) into a public accessible one, all cooperated only with a self-hosting NAT Traversal server

setup the rathole nat server

prepare a vps equipped with a public ip (which it is NOT the vps you wanna take a reinstall):

download binary from https://github.com/rapiz1/rathole/releases/download/v0.4.8/rathole-x86_64-unknown-linux-musl.zip ,unzip it
write a configure named server.toml under the same directory

[server]
bind_addr = "0.0.0.0:2333"
default_token = "default_token_if_not_specify"
heartbeat_interval = 30
[server.services.1]
bind_addr = "0.0.0.0:8000"
[server.services.22]
bind_addr = "0.0.0.0:1022"
[server.services.80]
bind_addr = "0.0.0.0:1080"
[server.services.3389]
bind_addr = "0.0.0.0:13389"
[server.services.8000]
bind_addr = "0.0.0.0:18000"

the [server.services.3389] chunk is used later by inst.sh, ensure the 13389 not used by other processes

server it

./rathole server.toml

after reinstallation done in the log window it will pop up the 13389 related entries for nat proxied windows rdp service
but for now it only shows 0.0.0.0:2333 for listening

run inst.sh command

in the linux ssh of the vps you wanna take a reinstall, type:

wget -qO- inst.sh|bash -s - -o 3389:ratholeip -t windowsgzurl

this expose the local nat 3389 to remote rathole server on its 13389, it is ok that some prefer to express it inversely, it is just subtle differences in words
if for win to linux, just ahead to https://github.com/minlearn/inst to find the instruction how to run inst.sh under windows
also you can append the debug switch "-d 22:ratholeip" in the tail part of the command during the reinstallation to moniter the reinstallation process, also ahead to https://github.com/minlearn/inst to find the related instruction

3, after reinstallation done

find in the log windows in the ratholeip vps
check if it popped up the 13389
if yes, then you can connect the windows rdp sevrvice now with ratholeip:13389


inst.sh:
https://github.com/minlearn/inst
rathole:
https://github.com/rapiz1/rathole/releases/download/v0.4.8/rathole-x86_64-unknown-linux-musl.zip

the video:

Thanked by 1cainyxues

Comments

  • yoursunnyyoursunny Member, IPv6 Advocate

    @minlearn said:
    setup the rathole nat server

    Would installing rathole cause the VPS to be infested by RatNerd and taken over by the megathread squad?

    Thanked by 1cainyxues
  • minlearnminlearn Member
    edited March 2025

    @yoursunny said:

    @minlearn said:
    setup the rathole nat server

    Would installing rathole cause the VPS to be infested by RatNerd and taken over by the megathread squad?

    just close it after reinstallation done
    or
    switch to another nat solution like cloudflared
    or
    reopen it on demand
    if you doubts about any security issue with it

    rathole is just a github opensource project
    (i choose to use because it is very small)
    i take no guarantee on it

  • wadhahwadhah Member, Host Rep

    @yoursunny said:

    @minlearn said:
    setup the rathole nat server

    Would installing rathole cause the VPS to be infested by RatNerd and taken over by the megathread squad?

    yes

  • minlearnminlearn Member
    edited March 2025

    those who has little knowledge about nat/rathole and trying make malice of it are not welcomed to use inst.sh
    i advice you just leave and close this post

Sign In or Register to comment.