xops forward
Command usage and available options are listed below. Check --help for options supported by your installed version.
text
Port forwarding, forwards TCP/UDP traffic from a local port to a remote address
Usage:
xops forward <listen-addr> <target-addr>
listen-addr format: [host:]port, e.g. :8080 or 127.0.0.1:8080
target-addr format: host:port, e.g. 192.168.1.10:80
Forwarding runs until Ctrl+C is pressed
Usage:
xops forward <listen-addr> <target-addr> [flags]
Examples:
xops forward :8080 192.168.1.10:80
xops forward 127.0.0.1:5353 8.8.8.8:53 --udp
Flags:
-h, --help help for forward
-u, --udp Use UDP protocol (default TCP)
Global Flags:
--color string ANSI color output (auto=detect pipe/redirect, never=disable, always=force enable)
--debug Enable debug mode (equivalent to --log-level=debug)
--lang string Interface language (zh/en)
--log-level string Set internal diagnostic log level (debug, info, warn, error)