Skip to content

Instantly share code, notes, and snippets.

@kerbrose
Last active January 18, 2021 10:26
Show Gist options
  • Save kerbrose/50bec5f26c35da9a3f0ecbf5a5039dc3 to your computer and use it in GitHub Desktop.
Save kerbrose/50bec5f26c35da9a3f0ecbf5a5039dc3 to your computer and use it in GitHub Desktop.
check opened ports
netstat -ntlp
netstat -nulp
# for iprout2 packages
sudo ss -tulpn
( nmcli dev list || nmcli dev show ) 2>/dev/null | grep DNS
nmcli dev show | grep 'IP4.DNS'
iptables -t nat -F
ifconfig docker0 down
brctl delbr docker0
ip -stats
ip addr
ip link del docker0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment