[환경설정]
https://www.mankier.com/1/iperf3
iperf3 server : 192.168.50.203 으로 ip 할당
iperf3 client : 192.168.50.2 로 ip 할당
root@server~# iperf3 -s --bind 192.168.50.203 & // iperf3 server 실행
[1] 2046140
root@server:~# -----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
[문제]
root@client:~# iperf3 -c 192.168.50.203
iperf3: error - unable to connect to server: Connection timed out
서버에서 로그를 확인해보니 방화벽에 의해 block 되었음
[3808268.498601] [UFW BLOCK] IN=enp1s0 OUT= MAC=xxxxxxxxx SRC=192.168.50.2 DST=192.168.50.203 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=16613 DF PROTO=TCP SPT=48258 DPT=5201 WINDOW=64240 RES=0x00 SYN URGP=0
[해결]
root@server:~# ufw allow 5201
Rule added
Rule added (v6)
root@server:~# ufw status
Status: active
To Action From
-- ------ ----
5201 ALLOW Anywhere
5201 (v6) ALLOW Anywhere (v6)
<client>
root@client:~# iperf3 -c 192.168.50.203
Connecting to host 192.168.50.203, port 5201
[ 5] local 192.168.50.2 port 57806 connected to 192.168.50.203 port 5201
[ ID] Interval Transfer Bitrate Retr Cwnd
[ 5] 0.00-1.00 sec 11.6 MBytes 97.5 Mbits/sec 0 137 KBytes
[ 5] 1.00-2.00 sec 11.2 MBytes 93.8 Mbits/sec 0 137 KBytes
[ 5] 2.00-3.00 sec 11.0 MBytes 92.3 Mbits/sec 0 137 KBytes
[ 5] 3.00-4.00 sec 11.2 MBytes 93.8 Mbits/sec 0 137 KBytes
[ 5] 4.00-5.00 sec 11.2 MBytes 93.8 Mbits/sec 0 137 KBytes
[ 5] 5.00-6.00 sec 11.2 MBytes 93.8 Mbits/sec 0 137 KBytes
[ 5] 6.00-7.00 sec 11.2 MBytes 93.8 Mbits/sec 0 137 KBytes
[ 5] 7.00-8.00 sec 11.2 MBytes 93.8 Mbits/sec 0 137 KBytes
[ 5] 8.00-9.00 sec 11.2 MBytes 93.8 Mbits/sec 0 137 KBytes
[ 5] 9.00-10.00 sec 11.2 MBytes 93.8 Mbits/sec 0 137 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-10.00 sec 112 MBytes 94.0 Mbits/sec 0 sender
[ 5] 0.00-10.00 sec 112 MBytes 93.8 Mbits/sec receiver
iperf Done.
<server>
root@server:~# Accepted connection from 192.168.50.2, port 57796
[ 5] local 192.168.50.203 port 5201 connected to 192.168.50.2 port 57806
[ ID] Interval Transfer Bitrate
[ 5] 0.00-1.00 sec 11.2 MBytes 93.7 Mbits/sec
[ 5] 1.00-2.00 sec 11.2 MBytes 93.8 Mbits/sec
[ 5] 2.00-3.00 sec 11.2 MBytes 93.7 Mbits/sec
[ 5] 3.00-4.00 sec 11.2 MBytes 93.8 Mbits/sec
[ 5] 4.00-5.00 sec 11.2 MBytes 93.8 Mbits/sec
[ 5] 5.00-6.00 sec 11.2 MBytes 93.8 Mbits/sec
[ 5] 6.00-7.00 sec 11.2 MBytes 93.8 Mbits/sec
[ 5] 7.00-8.00 sec 11.2 MBytes 93.8 Mbits/sec
[ 5] 8.00-9.00 sec 11.2 MBytes 93.8 Mbits/sec
[ 5] 9.00-10.00 sec 11.2 MBytes 93.8 Mbits/sec
[ 5] 10.00-10.00 sec 7.07 KBytes 92.4 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate
[ 5] 0.00-10.00 sec 112 MBytes 93.8 Mbits/sec receiver
'Linux' 카테고리의 다른 글
Ubuntu SerialNumber, MAC address 확인 (0) | 2022.12.19 |
---|---|
[linux] tee로 파일 저장하기 (0) | 2022.12.02 |
/dev/ttyUSB* 에러 별 해결 방법 (0) | 2022.11.17 |
[linux] Samba 폴더 내부/외부망에서 mount 하기 (0) | 2022.10.20 |
[linux] cifs_mount failed w/return code (0) | 2022.10.18 |