Programs: networking: Difference between revisions

From wikinotes
 
(23 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{ TODO |
= Ad Blockers =
merge this page and [[network utilities]]  
<blockquote>
}}
{|
|-
| [[ad guard home]]
|-
| [[pi hole]]
|-
| [[dnsmasq]]
|-
|}
</blockquote><!-- Ad Blockers -->


 
= Connection Management =
= Network Connection Management =
<blockquote>
<blockquote>
== BSD ==
== BSD ==
{|
{|
| [[Freebsd networking]]  
| [[Freebsd networking]]
|-
|-
| [[FreeBSD ifconfig]]
| [[FreeBSD ifconfig]]
|-
| [[FreeBSD route]]
|-
|-
|}
|}


== linux ==
== Linux ==
{|
{|
|-
|-
| [[netctl]] || daemon to manage network interfaces
| [[netctl]] || daemon to manage network interfaces
|-
| [[iwd]] || daemon to manage network interfaces
|-
|-
| [[network-manager]] || daemon to manage network interfaces
| [[network-manager]] || daemon to manage network interfaces
Line 36: Line 48:
|}
|}
</blockquote><!-- Network Connection Management -->
</blockquote><!-- Network Connection Management -->
= DNS =
<blockquote>
{|
|-
| [[dnsmasq]] || DNS, DHCP
|-
| [[bind-tools]] || collection of dns tools
|-
| [[whois]] || query registered owners of internet resources/ip blocks
|-
| [[ldns drill]] || DNS queries
|-
| [[dig]] || DNS queries
|-
| [[nslookup]]
|-
| [[host]]
|-
|}
</blockquote><!-- dns -->
= Dynamic DNS =
<blockquote>
{|
|-
| [[noip]]
|-
| [[staticddns]]
|}
</blockquote><!-- Dynamic DNS services -->


= Firewalls =
= Firewalls =
Line 43: Line 86:
| [[pf]] || firewall
| [[pf]] || firewall
|-
|-
| [[host]] || dns lookup
|-
| [[drill]] || dns lookup
|}
|}


Line 56: Line 96:
|-
|-
| [[firewalld]]
| [[firewalld]]
|-
|}
|}
</blockquote><!-- Firewalls -->
</blockquote><!-- Firewalls -->


= Ad Blockers =
= Network Tools =
<blockquote>
<blockquote>
{|
== Monitoring ==
| [[pi hole]]
|-
|}
</blockquote><!-- Ad Blockers -->
 
= Network Tools =
<blockquote>
<blockquote>
{|
{|
| [[curl]] ||
|-
|-
| [[wget]] ||  
| [[pftop]] || monitor traffic through [[pf]] firewall.
|-
|-
| [[netcat]] ||
| [[iftop]] || checks current network activity
|-
| [[netstat]] ||
|-
| [[traceroute]] ||  
|-
|-
| [[dig]] ||  
| [[netstat]] || display connections, routing tables, etc.
|-
|-
| [[wireshark]] || traffic introspection over network interface
| [[wireshark]] || traffic introspection
|-
|-
| [[mitmproxy]] ||
| [[nmap]] || traffic introspection
|-
| [[nmap]] || traffic introspection over network interface (wireshark cli)
|-
| [[sockstat]] || list active ports/sockets
|-
|-
| [[tcpdump]] || watch traffic over network interface
| [[tcpdump]] || watch traffic over network interface
|-
| [[nbtscan]] ||
|-
|-
| [[nload]] || bandwidth usage by network iface
| [[nload]] || bandwidth usage by network iface
Line 99: Line 123:
|-
|-
| [[iperf3]] || measure network latency between computers
| [[iperf3]] || measure network latency between computers
|-
|}
|}
</blockquote><!-- network tools -->
</blockquote><!-- Tools - Monitoring -->


= Network Diagnostics Tools =
== Topology/Table Lookups ==
<blockquote>
<blockquote>
{|  
{|
!colspan=2| physical layer
|-
!colspan=2| datalink layer
|-
| ping    || tests connectivity to hosts using ICMP
|-
|-
| [[arp]] || (ipv4) checks table mapping ipv4 addrs to mac addresses
| [[arp]] || (ipv4) checks table mapping ipv4 addrs to mac addresses
Line 115: Line 135:
| [[nd]]  || (ipv6) checks table mapping ipv6 addrs to mac addresses
| [[nd]]  || (ipv6) checks table mapping ipv6 addrs to mac addresses
|-
|-
!colspan=2| network layer
| [[host]] || DNS query
|-
|-
| [[host]] || DNS query
| [[dig]] || DNS query
|-
|-
| [[iftop]] || checks current network activity
| [[traceroute]] || check hops for request
|-
|-
| [[pftop]] || monitor traffic through [[pf]] firewall.
| [[sockstat]] || list active ports/sockets
|-
|-
!colspan=2| transport layer
| [[nbtscan]] || scan for netbios nameservers on local network
|-
|-
|}
|}
</blockquote><!-- Network Diagnostics Tools -->
</blockquote><!-- Tools - Table Lookups -->


= DNS =
== Send/Receive ==
<blockquote>
<blockquote>
{|
{|
|-
|-
| [[dnsmasq]] || DNS, DHCP
| [[curl]] || make HTTP requests
|-
| [[wget]] || make HTTP requests
|-
| [[netcat]] || make or listen for HTTP requests
|-
|-
| [[bind-tools]] || collection of dns tools
| [[mitmproxy]] || HTTPS proxy
|-
|-
| [[whois]] || query registered owners of internet resources/ip blocks
|}
|}
</blockquote><!-- dns -->
</blockquote><!-- Tools - Requests -->
</blockquote><!-- Network Tools -->


= Dynamic DNS =
= VPN =
<blockquote>
<blockquote>
{|
{|
|-
|-
| [[noip]]
| [[wireguard]] ||
|-
| [[openvpn]] ||
|-
|-
| [[staticddns]]
|}
|}
</blockquote><!-- VPN -->


</blockquote><!-- Dynamic DNS services -->
= Simulation/Testing =
 
= VPN =
<blockquote>
<blockquote>
{|
{|  
|-
|-
| [[wireguard]]
| [[toxiproxy]] || simulate bad network conditions/services-down
|-
|-
| [[openvpn]]
|-
| [[torphantom]]
|}
|}
 
</blockquote><!-- Simulation/Testing -->
</blockquote><!-- VPN -->

Latest revision as of 21:36, 28 August 2023

Ad Blockers

ad guard home
pi hole
dnsmasq

Connection Management

BSD

Freebsd networking
FreeBSD ifconfig
FreeBSD route

Linux

netctl daemon to manage network interfaces
iwd daemon to manage network interfaces
network-manager daemon to manage network interfaces
mmcli configure modems
linux ip configure network interfaces
linux iw configure wireless network
auditctl audit kernel behaviour

win32

netsh windows cli tool to modify/configure network configuration

DNS

dnsmasq DNS, DHCP
bind-tools collection of dns tools
whois query registered owners of internet resources/ip blocks
ldns drill DNS queries
dig DNS queries
nslookup
host

Dynamic DNS

noip
staticddns

Firewalls

BSD

pf firewall

linux

nftables
iptables
firewalld

Network Tools

Monitoring

pftop monitor traffic through pf firewall.
iftop checks current network activity
netstat display connections, routing tables, etc.
wireshark traffic introspection
nmap traffic introspection
tcpdump watch traffic over network interface
nload bandwidth usage by network iface
ntop web ui for network traffic introspection
iperf3 measure network latency between computers

Topology/Table Lookups

arp (ipv4) checks table mapping ipv4 addrs to mac addresses
nd (ipv6) checks table mapping ipv6 addrs to mac addresses
host DNS query
dig DNS query
traceroute check hops for request
sockstat list active ports/sockets
nbtscan scan for netbios nameservers on local network

Send/Receive

curl make HTTP requests
wget make HTTP requests
netcat make or listen for HTTP requests
mitmproxy HTTPS proxy

VPN

wireguard
openvpn

Simulation/Testing

toxiproxy simulate bad network conditions/services-down