Use ubuntu part of the Port of ---- command to open port / Open firewall
Environmental systems: ubuntu
Tools: xshell + virtualbox
1. Test the remote host port is turned on (the next windows command line)
1
|
telnet 192.168.1.103 80
|
80-port 80-port, remote access host host test whether open
2. Check local port open case (the next ubuntu)
1
|
sudo
ufw status
|
3. Open (the next ubuntu) 80-port
sudo ufw allow 80
4. Firewall turn (the next Ubuntu)
sudo ufw enable
5. Firewall restart (the next Ubuntu)
sudo ufw reload
6. Check port
iptables -nL
Environmental systems: ubuntu
Tools: xshell + virtualbox
1. Test the remote host port is turned on (the next windows command line)
1
|
telnet 192.168.1.103 80
|
80-port 80-port, remote access host host test whether open
2. Check local port open case (the next ubuntu)
1
|
sudo
ufw status
|
3. Open (the next ubuntu) 80-port
sudo ufw allow 80
4. Firewall turn (the next Ubuntu)
sudo ufw enable
5. Firewall restart (the next Ubuntu)
sudo ufw reload
6. Check port
iptables -nL