UFW: Difference between revisions
Jump to navigation
Jump to search
Line 68: | Line 68: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
sudo systemctl status ufw | sudo systemctl status ufw | ||
sudo apt-get install gufw | |||
sudo ufw status numbered | |||
sudo ufw status verbose | sudo ufw status verbose | ||
sudo ufw disable | sudo ufw disable | ||
Line 76: | Line 78: | ||
|valign='top'| | |valign='top'| | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
sudo | nc -uv vpn.shahed.biz 1194 # udp | ||
sudo | nc -tv vpn.shahed.biz 80 # tcp | ||
nc -tv vpn.shahed.biz 53 # tcp | |||
sudo nmap -sT localhost # tcp | |||
sudo nmap -sU localhost # udp | |||
nc -uv localhost 1194 # udp | |||
nc -tv localhost 80 # tcp | |||
</syntaxhighlight> | </syntaxhighlight> | ||
|valign='top'| | |valign='top'| | ||
<syntaxhighlight lang="bash"> | |||
sudo nmap -sU -sT -p U:1194,T:22,53,443 vpn.shahed.biz | |||
</syntaxhighlight> | |||
|} | |} |
Revision as of 10:07, 11 August 2024
cat <<-'EXE'|sudo bash
apt-get update;echo
apt list -a --upgradable
apt-get install -y ufw nmap telnet
EXE
sudo ufw allow http
sudo ufw allow OpenSSH
sudo ufw allow in on lxdbr0
sudo ufw route allow in on lxdbr0
sudo ufw route allow out on lxdbr0
sudo ufw status verbose
sudo systemctl status ufw
sudo ufw enable
sudo ufw allow 5900/tcp
sudo ufw status verbose
sudo ufw allow http
sudo ufw allow OpenSSH
sudo ufw allow 5900/tcp
ufw status
ufw status verbose
systemctl status ufw
Playground
netstat -a
netstat -lpn
sudo ufw status
apt list --installed
netstat -uap|grep nginx
|
sudo ss -tulwn | grep LISTEN
sudo ss -tulpn | grep LISTEN
sudo ss -tulpn | grep LISTEN | grep sshd
sudo ss -tulpn | grep LISTEN | grep minio
sudo ss -tulpn | grep LISTEN | grep resolve
|
sudo ufw status
sudo ufw app list
sudo ufw allow 'Nginx HTTP'
sudo ss -tulpn | grep LISTEN
sudo lsof -i -P -n | grep LISTEN
|
| ||
sudo systemctl status ufw
sudo apt-get install gufw
sudo ufw status numbered
sudo ufw status verbose
sudo ufw disable
sudo ufw enable
sudo ufw status
|
nc -uv vpn.shahed.biz 1194 # udp
nc -tv vpn.shahed.biz 80 # tcp
nc -tv vpn.shahed.biz 53 # tcp
sudo nmap -sT localhost # tcp
sudo nmap -sU localhost # udp
nc -uv localhost 1194 # udp
nc -tv localhost 80 # tcp
|
sudo nmap -sU -sT -p U:1194,T:22,53,443 vpn.shahed.biz
|
References
| ||