Iperf (Linux): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 34: | Zeile 34: | ||
[Service] | [Service] | ||
ExecStart=/usr/bin/iperf3 --server | ExecStart=/usr/bin/iperf3 --server | ||
ExecStop=pkill iperf3 | ExecStop=/usr/bin/pkill iperf3 | ||
[Install] | [Install] | ||
WantedBy=multi-user.target | WantedBy=multi-user.target | ||
</pre> | |||
<pre> | |||
sudo systemctl enable iperf3.service | |||
sudo systemctl restart iperf3.service | |||
</pre> | </pre> | ||
Version vom 11. Februar 2021, 22:04 Uhr
Noch in Bearbeitung
Installation
sudo apt-get install -y iperf3
Client
iperf3 -c <server>
Server
in Shell starten
iperf3 -s
systemd
sudo vi /etc/systemd/system/iperf3.service
[Unit] Description=iperf3 [Service] ExecStart=/usr/bin/iperf3 --server ExecStop=/usr/bin/pkill iperf3 [Install] WantedBy=multi-user.target
sudo systemctl enable iperf3.service sudo systemctl restart iperf3.service
nftables
In nftables muss auch TCP-Port 5001
freigegeben werden:
# iperf (5001) tcp dport { 5001 } accept;
Links
https://blog.friedlandreas.net/2020/08/linux-iperf3-als-systemd-deamon/
Links
https://wiki.ubuntuusers.de/iperf/
Zurück zu Ubuntu