Advanced access control system for ports