Set timeout on idle for VPN (Cisco IPsec)?
Go to System Preferences > Network. Select your VPN connection from the sidebar. Click on Advanced. In the first tab ("Options"), there should be the option "Disconnect if idle for X minutes".