netzwerktools

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
netzwerktools [09/08/2023 - 09:00] thommie4netzwerktools [17/06/2025 - 17:04] (aktuell) – [Netcat] thommie_netzwissen.de
Zeile 1: Zeile 1:
-====== NMAP ======+====== Netzwerktools ======
  
-udp Scan für openvpn+===== Netzwerkkonfig Debian =====
  
 +[[https://wiki.debian.org/NetworkConfiguration|https://wiki.debian.org/NetworkConfiguration]]
 +
 +[[https://www.digitalocean.com/community/tutorials/how-to-list-and-delete-iptables-firewall-rules-de|https://www.digitalocean.com/community/tutorials/how-to-list-and-delete-iptables-firewall-rules-de]]
 +
 +==== NMAP ====
 +
 +udp Scan für openvpn
 <code> <code>
 +
 nmap -Pn -sU -p 1194 dvsdnet2.devoteam.de nmap -Pn -sU -p 1194 dvsdnet2.devoteam.de
 +
 +</code>
 +
 +==== Netcat ====
 +
 +tcp
 +
 +<code>
 +netcat [options] host port
 +
 +</code>
 +
 +udp
 +
 +<code>
 +netcat -u host port
 +
 +</code>
 +
 +Port Scanning (statt nmap)
 +
 +<code>
 +netcat -z -v domain.com1-1000
 +
 +</code>
 +
 +Netcat listening
 +
 +<code>
 +create an UDP server using nc on port 11090
 +nc -ul -p 11090
 +
 +check whether an UDP server is listening on 11190
 +nc -vz -u <hostname> 11090
 +
 +send a packet to the UDP server
 +echo -n "hello" | nc -4u -w1  <hostname> 1118
 +
 +</code>
 +
 +
 +====== SS - another utility to investigate sockets ======
 +
 +[[https://phoenixnap.com/kb/ss-command|https://phoenixnap.com/kb/ss-command]]
 +
 +ss = alle offenen nicht horchenden sockets mit aktiven verbindungen
 +
 +===== horchende und nicht horchende =====
 +<code>
 +
 +ss -a
 +
 +</code>
 +
 +===== nur horchende =====
 +
 +<code>
 +ss -l nur horchende
 +
 +</code>
 +
 +===== nur tcp =====
 +
 +<code>
 +ss -t nur tcp
 +
 +</code>
 +
 +===== alle tcp =====
 +
 +<code>
 +ss -at  alle tcp
 +
 +</code>
 +
 +===== alle udp =====
 +
 +<code>
 +ss -u  udp
 +
 +ss -au alle udp
 +
 +ss  -lu  alle horchenden udp
 +
 +</code>
 +
 +===== alle sockets =====
 +
 +<code>
 +ss -f unix   alle unix sockets
 +
 +ss -w alle raw sockets
 +
 +</code>
 +
 +===== spezielle zieladresse =====
 +
 +<code>
 +ss dst 104.21.3.132
 +
 +</code>
 +
 +===== spezielle quelladresse =====
 +
 +<code>
 +ss src 192.168.100.2
 +
 +</code>
 +
 +===== spezielle prozess-id =====
 +
 +<code>
 +ss -p  process IDs
 +
 </code> </code>
  
Zeile 57: Zeile 179:
  
 If using the ''netstat''  did not resolve your port issues, continue to test connections to the service by using [[https://support.rackspace.com/how-to/testing-network-services-with-netcat|the netcat command.]] If using the ''netstat''  did not resolve your port issues, continue to test connections to the service by using [[https://support.rackspace.com/how-to/testing-network-services-with-netcat|the netcat command.]]
 +
 +====== IPTABLES ======
 +
 +iptables -nvL
 +
 +iptables -nvL -t nat
 +
 +====== TCPDUMP ======
 +
 +tcpdump -i vmbr0 -nn port 1194
 +
 +tcpdump -i vmbr1 -nn port 1194
 +
  
  • netzwerktools.1691571658.txt.gz
  • Zuletzt geändert: 17/08/2024 - 07:06
  • (Externe Bearbeitung)