Programs: networking: Difference between revisions

From wikinotes
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{ TODO |
= Ad Blockers =
this could be organized better - maybe separate setup/applications/debugging/monitoring? }}
<blockquote>
{|
|-
| [[ad guard home]]
|-
| [[pi hole]]
|-
| [[dnsmasq]]
|-
|}
</blockquote><!-- Ad Blockers -->


= Network Connection Management =
= Connection Management =
<blockquote>
<blockquote>
== BSD ==
== BSD ==
Line 9: Line 19:
|-
|-
| [[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 35: Line 49:
</blockquote><!-- Network Connection Management -->
</blockquote><!-- Network Connection Management -->


= Firewalls =
= DNS =
<blockquote>
<blockquote>
== BSD ==
{|
{|
| [[pf]] || firewall
|-
|-
|}
| [[dnsmasq]] || DNS, DHCP
 
|-
== linux ==
| [[bind-tools]] || collection of dns tools
{|
|-
| [[whois]] || query registered owners of internet resources/ip blocks
|-
| [[ldns drill]] || DNS queries
|-
|-
| [[nftables]]
| [[dig]] || DNS queries
|-
|-
| [[iptables]]
| [[nslookup]]
|-
|-
| [[firewalld]]
| [[host]]
|-
|-
|}
|}
</blockquote><!-- Firewalls -->
</blockquote><!-- dns -->


= Monitoring =
= Dynamic DNS =
<blockquote>
<blockquote>
{|
{|
|-
|-
| [[pftop]] || monitor traffic through [[pf]] firewall.
| [[noip]]
|-
|-
| [[staticddns]]
|}
|}
</blockquote><!-- Monitoring -->
</blockquote><!-- Dynamic DNS services -->


= Ad Blockers =
= Firewalls =
<blockquote>
<blockquote>
== BSD ==
{|
{|
| [[pi hole]]
| [[pf]] || firewall
|-
|-
|}
|}
</blockquote><!-- Ad Blockers -->


= Network Tools =
== linux ==
<blockquote>
{|
{|
|-
|-
| [[arp]] || (ipv4) checks table mapping ipv4 addrs to mac addresses
| [[nftables]]
|-
|-
| [[nd]] || (ipv6) checks table mapping ipv6 addrs to mac addresses
| [[iptables]]
|-
|-
| [[host]] || DNS query
| [[firewalld]]
|-
|-
| [[iftop]] || checks current network activity
|}
</blockquote><!-- Firewalls -->
 
= Network Tools =
<blockquote>
== Monitoring ==
<blockquote>
{|
|-
|-
| [[curl]] ||
| [[pftop]] || monitor traffic through [[pf]] firewall.
|-
|-
| [[wget]] ||
| [[iftop]] || checks current network activity
|-
| [[netcat]] ||
|-
| [[netstat]] ||
|-
| [[traceroute]] ||
|-
| [[dig]] ||
|-
|-
| [[wireshark]] || traffic introspection over network interface
| [[netstat]] || display connections, routing tables, etc.
|-
|-
| [[mitmproxy]] ||
| [[wireshark]] || traffic introspection
|-
|-
| [[nmap]] || traffic introspection over network interface (wireshark cli)
| [[nmap]] || traffic introspection
|-
| [[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 113: Line 123:
|-
|-
| [[iperf3]] || measure network latency between computers
| [[iperf3]] || measure network latency between computers
|-
| [[FreeBSD ifconfig]] ||
|-
| [[FreeBSD route]] ||
|-
|-
|}
|}
</blockquote><!-- Tools - Monitoring -->


See [[Networking Overview]] for lists of tools categorized by network-layer.
== Topology/Table Lookups ==
</blockquote><!-- network tools -->
 
= DNS =
<blockquote>
<blockquote>
{|
{|
|-
|-
| [[dnsmasq]] || DNS, DHCP
| [[arp]] || (ipv4) checks table mapping ipv4 addrs to mac addresses
|-
|-
| [[bind-tools]] || collection of dns tools
| [[nd]] || (ipv6) checks table mapping ipv6 addrs to mac addresses
|-
|-
| [[whois]] || query registered owners of internet resources/ip blocks
| [[host]] || DNS query
|-
|-
| [[dig]]
| [[dig]] || DNS query
|-
|-
| [[nslookup]]
| [[traceroute]] || check hops for request
|-
|-
| [[host]]
| [[sockstat]] || list active ports/sockets
|-
|-
| [[drill]]
| [[nbtscan]] || scan for netbios nameservers on local network
|-
|-
|}
|}
</blockquote><!-- dns -->
</blockquote><!-- Tools - Table Lookups -->


= Dynamic DNS =
== Send/Receive ==
<blockquote>
<blockquote>
{|
{|
|-
|-
| [[noip]]
| [[curl]] || make HTTP requests
|-
| [[wget]] || make HTTP requests
|-
| [[netcat]] || make or listen for HTTP requests
|-
| [[mitmproxy]] || HTTPS proxy
|-
|-
| [[staticddns]]
|}
|}
</blockquote><!-- Dynamic DNS services -->
</blockquote><!-- Tools - Requests -->
</blockquote><!-- Network Tools -->


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

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