A port of less than 1024 Linux requires root to bind.Root permission to start Tomcat is unwise, you can use non-root permissions to start Tomcat listening on port 8080, and then use port forwarding to implement 80 port monitoring.Port forwarding:
Linux has a port of less than 1024 that requires root to bind.
It is unwise to start Tomcat with root permissions, you can start Tomcat listening on port 8080 using non-root privileges, and then use port forwarding to monitor for port 80.
Port
Environment system: UbuntuTools: Xshell + VirtualBox1. Test whether the port of the remote host is turned on (Windows command line execution)Telnet 192.168.1.103 80Remote access host 80 port, test host's 80 port is turned on2. Check the local port
Non-root users cannot start Tomcat listening to port 80I. Problems
After a website is bound to a domain name, port 80 is directly used for access through the domain name. Therefore, tomcat must listen to port 80. For security reasons, tomcat
Demo environmentUbuntu 11.04 + tomcat 61. Familiar with tomcat configuration files#/Etc/tomcat6/server. xml/tomcat configuration fileOpen the configuration file and find the following section.2. Modify the port1. Open the tomcat configuration file#
Comments: Ubuntu11.04 the default is UFW (ufw is short for uncomplicated firewall, which is not complex firewall. You still need to go to iptables for complicated settings). Interface operations are supported. Run the ufw command on the command line
Before scanning:Nmap Scan Report for 192.168.0.39Host is up (0.00029s latency).All scanned ports on 192.168.0.39 is filteredMAC Address:00:0c:29:ef:80:d6 (VMware)After opening:Nmap Scan Report for 192.168.0.39Host is up (0.00038s latency).Not shown:9
Under Ubuntu Open port seems to have two main methods, one is Ubuntu comes with the firewall, one is iptables, here we mainly use iptables. The system version for this article is ubuntu14.04 and ubuntu16.04
Installing IptablesIn general, when
This article only shows how to open the 80 port specific principle aspects here do not do too much discussion.After the release of Ubuntu10 Ubuntu disables the use of 1-1024 ports for ordinary users. This way, when we directly change the port in
One of the simplest operations:sudo UFW version firewall versions: UFW 0.29-4ubuntu1 Copyright 2008-2009 Canonical Ltd.Ubuntu system has UFW installed by default.1. Installationsudo apt-get install UFW2. Enablesudo UFW enablesudo ufw default
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.