Last active
January 24, 2020 22:23
-
-
Save amslezak/358c87bebe18cacb655367806fca76dc to your computer and use it in GitHub Desktop.
helpful as a quick reverse proxy
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
snagged from: https://gist.github.com/1901/53a57217b213aab22cfd60152a7f954b | |
# install socat on CentOS 6.x | |
rpm -ivh https://forensics.cert.org/cert-forensics-tools-release-el6.rpm | |
yum install socat | |
# tcp | |
nohup socat TCP4-LISTEN:3306,reuseaddr,fork TCP4:192.168.1.2:3306 >> socat.log 2>&1 &! | |
# udp | |
nohup socat UDP4-LISTEN:1194,reuseaddr,fork UDP4:192.168.1.3:1194 >> socat.log 2>&1 &! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment