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
check local network settings
ifconfig -a- alias
nmcli dev list iface eth0 | grep IP4
- alias
ip ahints
restart network
sudo systemctl restart NetworkManager.servicesudo nmcli networking offandsudo nmcli networking onnmtuia terminal user interfacesudo 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/
check open ports
ss -ltup
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_PIDproxy settings
global settings in
/etc/environment
http_proxy=http://www-zproxy.fronius.com:80/
https_proxy=http://www-zproxy.fronius.com:80/
ftp_proxy=ftp://www-zproxy.fronius.com:80/
no_proxy=localhost,fronius.com,.fronius.com,10.0.0.0/8,127.0.0.1
soap_use_proxy=on