Use some MOLLE-compatible straps or tactical bungee cords. Just thread them through the MOLLE webbing and across your rifle. Generally, it’s best to run them horizontally across the back panel. That way, you’ll get better stability. Don’t forget to secure both the stock and the handguard area.