Example of my failed attempt (In this case, I am SSHing through a reverse ssh session over port 30001):
ssh root@localhost -p 30001 $file
The contents of $file look like this:
-L 8010:192.168.10.1:80 -L 8011:192.168.10.2:80 -L 8012:192.168.10.3:80
When the bash script runs, it only establishes the forward for 8010. Not 8011 or 8012. However, if I run this from the terminal manually, everything works fine. So, for whatever reason, the second and third -L values don't seem to be sent to SSH.