Created
December 6, 2022 15:41
-
-
Save jlandure/509d2835196465f15cbcbf50aed676b5 to your computer and use it in GitHub Desktop.
Training and proxy problems
This file contains 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
# Petite astuce si vous avez des stagiaires avec des proxys capricieux. | |
# Vous pouvez installer et utiliser la commande socat. | |
sudo apt update && sudo apt install -y socat | |
# Et ensuite pour écouter sur le port 80 de l’IP publique de la machine et le rediriger vers un autre port : | |
sudo socat TCP-LISTEN:80,reuseaddr,fork TCP-CONNECT:127.0.0.1:<AUTRE_PORT> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment