A simple tcp port forwarding use QUIC as transport, based on quinn.
Support nat traversal or hole punching by rndz.
Server Side:
$quic-tun gencert > cert.pem
$quic-tun server -l 0.0.0.0:1080 -f target:80 -c cert.pem -e 123456
...local:0.0.0.0:1080, forward:target:80, fingerprint: 2a92510d40
...
Client Side:
$quic-tun client -l 0.0.0.0:80 -r server:1080 -p 2a92510d40 -e 123456
Test
$curl client:80
Server Side:
$quic-tun gencert > cert.pem
$quic-tun server -l 0.0.0.0:1080 -c cert.pem -e 123456
...local:0.0.0.0:1080, fingerprint: 2a92510d40
Client Side:
$quic-tun client -f target:80 -r server:1080 -o 80 -p 2a92510d40 -e 123456
Test
$curl server:80
Server side, add args --rndz-server
and --id
Client side, replace args -r
with --rndz-server
and --remote-id