No UPnP on ur network ? Can't open NAT ports ? Too bad…
Well, there is a solution : SSH Tunnels. Let's see how.
On ur machine :
ssh-keygen -t ed25519 -f .ssh/sshtuncat .ssh/sshtun.pub)[XXX][YYYY] for the service (YYYY > 1024)ssh -f -N -T -R[YYYY]:localhost:[XXX] sshtun@[disthost].net.xif.fr -o IdentityFile=~/.ssh/sshtunioslaves-master [me] [disthost] -C –open-port=[YYYY][disthost].net.xif.fr:[YYYY]On the XifNet distant machine :
useradd sshtun -s /bin/nologinsudo -u sshtun sh -c "cd ~ && mkdir -m 700 .ssh && nano .ssh/authorized_keys && chmod 600 .ssh/authorized_keys"authorized_keys : add no-pty,no-agent-forwarding ssh-ed25519 [the_key] [the_host]/etc/ssh/sshd_config and set GatewayPorts yes to enable listening on * ifacePermitTunnel yessystemctl restart sshd
And then admire ur work with lsof -Pi
Note : sshtun@nashorn.net.xif.fr is already configured so.