M3 and captive rail nuts are required to secure to rail. It can be mounted vertical and horizontally.