Network
settings
set static ip address
-
sudo nano /etc/network/interfaces:
auto ens18
iface ens18 inet static
address 192.168.0.2
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 89.207.128.252 89.207.130.252
-
sudo reboot
restart network
-
sudo systemctl restart NetworkManager.service -
sudo nmcli networking offandsudo nmcli networking on -
nmtuia terminal user interface -
sudo ifdown -a && sudo ifup -a
dnsmasq
- wildcard usbdomains: https://saturncloud.io/blog/wildcard-subdomains-with-dnsmasq-a-guide-for-software-engineers/
network analyse
https://armann-systems.com/wiki/netzwerkdiagnose-tools-unter-linux-ein-umfassender-leitfaden/
netstat
- show all active tcp connections:
netstat -tn
nmap
-
scan all ports of ip:
nmap -p 1-65535 192.168.1.1 -
check a specific port on the system (and get infos about process):
sudo netstat -nlp | grep PORT_NUMBER ps -Flww -p THE_PID