Skip to main content

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

linux commands

  • ifconfig -a
    • alias nmcli dev list iface eth0 | grep IP4
  • ip a hints

restart network

  • sudo systemctl restart NetworkManager.service
  • sudo nmcli networking off and sudo nmcli networking on
  • nmtui a terminal user interface
  • sudo ifdown -a && sudo ifup -a

dnsmasq

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
    

    proxy 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