- Personal script/files hosting
- World's shortest URL redirector service using IDN normalization at
5 characters (
㎠.fi/test
)- Also will archive shortlinked URLs using the wayback machine
- http localhost ssh forwarding tunnel to
https://x.cm2.fi
with SSL
- Files in
shorturls/
should contain a URL.- for example, if
shorturls/test
containshttps://google.com
, thenhttps://cm2.fi/test
will 302 redirect tohttps://google.com
.
- for example, if
- Any file placed in
public/
will be accessible in the root directory.
ssh -R 8080:localhost:9999 cm2fi
will tunnel a service running on http://localhost:9999 tohttps://x.cm2.fi
with SSL termination
-
ssh -R 4444:localhost:5555 cm2fi
will tunnel any raw TCP service running on locahost:5555 toxx.cm2.fi:4444
-
Tip: you can chain multiple
-R
directives to tunnel multiple services at once.
You'll need to set
AllowTcpForwarding
andGatewayPorts
toyes
in/etc/ssh/sshd.conf
to use the raw
- It's possible to tunnel UDP as well, but you'll need to convert UDP into TCP before tunneling
- On local side:
socat -v UDP4-LISTEN:53,fork TCP4:localhost:5553
53 is the UDP port, 5553 is an arbritrary free TCP port
ssh -L 5553:localhost:5553 cm2fi
- On remote side
socat -v TCP4-LISTEN:5553,fork UDP4-LISTEN:53
- If everything worked, you should be able to access the
udp://localhost:53
service on the local machine remotely atudp://xx.cm2.fi:53