I take a ferry twice a week. I put it on the side stand and uses an acerbis strap down on each side from the tube holding the passenger pegs.
The acerbis ones are very easu to use compared to many cargo straps with rackets
On a trailer i put the front wheel in a corner and tie that down/arround the trailer. Then i use two pair of tie downs. One set from the handlebar and one set from the rear tubing by the rear footpegs. It is easiest if you have a mate pressing the suspension about halfway down. Then front wheel keeps the bike in place and with it standing on its wheels and and suspension pressin against the four straps it won't go anywhere ...