Change security mode and default host