

I/

1) ncat -ul 50000

2)

ss ul

tcpdump -i lo "udp and port 50000"

3)

dd if=/dev/urandom of=ft-file.dat bs=1024 count=9

ncat -u localhost 50000 < ft-file.dat

ex 1:

ncat -l 60000

ss -lt

4)



5)




6)




7)



II/

1)

which traceroute
which tracepath

2)

tcpdump -vvv -i eno1 -f "host 172.16.2.102 and ip and not tcp and not udp"

tcpdump -vvv -i eno1 -f "host 172.16.2.102 and ip and not tcp and not udp" -w tracepath.txt

tracepath 1.1.1.1

tcpdump -r tracepath.txt

tcpdump -v -r tracepath.txt

3)

-n permet de mettre les gateway en ip

tracepath -n 8.8.8.8
 1?: [LOCALHOST]                      pmtu 1500
 1:  172.16.1.254                                          0.543ms 
 1:  172.16.1.254                                          0.614ms 
 2:  37.58.131.238                                         1.377ms 
 3:  100.65.0.27                                           2.600ms 
 4:  100.64.96.159                                         3.536ms 
 5:  no reply
 6:  no reply
 7:  no reply
 8:  no reply
 9:  no reply
10:  no reply
11:  no reply


4)

a/tcpdump -v -r tracepath.txt | sed '/proto ICMP/i \\' 

b/

c/

d/

