misc/server/forward_port_v4_to_v6.sh

5 lines
159 B
Bash

#!/bin/bash
# This script allows forwarding of a port from an IPv4+6 host to a v6-only host.
socat TCP-LISTEN:local-port,fork TCP6:[v6-remote-ip]:remote-port