-f | Immediately send the port forward command the background |
-N | Do not allow any commands to be send through the SSH session |
-L | Local port forwarding |
-R | Remote port forwarding |
-D | Dynamic port forwarding |
Set up listener port | chisel server --reverse --port <port #> |
Forward port to listener | chisel client <listener ip>:<chisel server port #> R:<port # to open listener on>:localhost:<port # being forwarded> |
Forward connection from localhost to remote host | socat TCP4-LISTEN:<local port>,fork,reuseaddr TCP4:<remote host>:<remote port> |