start_socat.sh 307 B

123456
  1. kill -9 $(pgrep -f "socat")
  2. sleep 3
  3. nohup socat TCP-LISTEN:60137,reuseaddr,fork TCP:192.168.8.137:22 &
  4. nohup socat TCP-LISTEN:68137,reuseaddr,fork TCP:192.168.8.137:8000 &
  5. nohup socat TCP-LISTEN:60138,reuseaddr,fork TCP:192.168.8.138:22 &
  6. nohup socat TCP-LISTEN:68138,reuseaddr,fork TCP:192.168.8.138:8000 &