If HTTP is enabled, you can access the network management system by directly entering the IP address. Then, the HTTP connection is redirected to HTTPS. However, HTTP is a less secure protocol. You are advised to disable HTTP.
Prerequisites
- A cross-platform remote access tool, such as PuTTY, has been obtained.
- The management IP address of the management server where the UltraVR resides has been obtained.
- The login password of user root or DRManager in Linux has been obtained.
Before disabling the HTTP protocol, you need to stop the UltraVR. After UltraVR is stopped, you cannot use UltraVR to perform DR management. Stop UltraVR only for fault diagnosis.
Procedure
- Use PuTTY to log in to the UltraVR management server as user root.
- Run the TMOUT=0 command to prevent PuTTY from exiting due to session timeout.
After you run this command, the system continues to run when no operation is performed, resulting a risk. For security purposes, you are advised to run exit to exit the system after completing your operations.
- Run the cd /opt/UltraVR/Runtime/bin/ command to go to the UltraVR service control directory.
- Run the sh shutdownSystem.sh command to stop the UltraVR service.
- Run the cd /opt/UltraVR/Runtime/Tomcat6/conf/ command to go to the UltraVR Tomcat configuration directory.
- Disable the HTTP protocol.
- Run the vi server.xml command to open the server.xml file.
- Press i to go to the edit mode and edit the server.xml file.
- Delete the following content from the file:
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="50000" maxPostSize="30240" redirectPort="9443" URIEncoding="UTF-8" address="192.168.170.10"/>
- Press Esc to exit the edit mode.
- Run the :wq command to save the modification and close the server.xml file.
- Run iptables -D PREROUTING -t nat -p tcp --dport 80 -j REDIRECT --to-port 8080 to delete the iptables rule.
- Run sed -i -e "/iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080/d" "/etc/init.d/boot.local" to clear the start configuration.
- Run the cd /opt/UltraVR/Runtime/bin/ command to go to the UltraVR service control directory.
- Run the sh startSystem.sh command to start the UltraVR service.
Copyright © Huawei Technologies Co., Ltd.