See the firewall
sudo ufw status verbose
Open port
# allow 22 port
sudo ufw allow 22/tcp
# allow 80/443
sudo ufw allow http
sudo ufw allow https
# or this works too
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
# advanced usage
# To allow IP address 192.168.1.10 access to port 22 for all protocols
sudo ufw allow from 192.168.1.10 to any port 22
# Open port 74.86.26.69:443 (SSL 443 nginx/apache/lighttpd server) for all, enter:
sudo ufw allow from any to 74.86.26.69 port 443 proto tcp
# To allows subnet 192.168.1.0/24 to Sabma services, enter:
ufw allow from 192.168.1.0/24 to any app Samba
'tools > linux' 카테고리의 다른 글
The Linux command line - 23. Compiling program (0) | 2021.03.21 |
---|---|
터미널에서 vim 명령어 사용하기: Use vim in terminal (bash, zsh shell) (0) | 2021.01.04 |
linux command lecture (0) | 2018.10.12 |
linux: copy file not override (0) | 2018.05.31 |
crontab 기본 사용법 (0) | 2018.04.03 |