Created
October 21, 2020 08:55
-
-
Save alexalouit/8aef6fcf599db47aa89eac59554354c5 to your computer and use it in GitHub Desktop.
redirect port (exemple tcp local 80 to 8080)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ socat TCP-LISTEN:80,fork TCP:127.0.0.1:8080" | |
# crontab: | |
# 0 * * * * flock -n /var/run/tcp.80.8080.lock -c "socat TCP-LISTEN:80,fork TCP:127.0.0.1:8080" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment