Sean Wei says to YSITD
$ cat fwd.sh #!/bin/bash for (( i=1; i<=255; i=i+1 )) do port=$(($i+2000)) socat TCP-LISTEN:${port},fork TCP:10.241.142.${i}:80 & done