sakaki- / gentoo-on-rpi-64bit

Bootable 64-bit Gentoo image for the Raspberry Pi4B, 3B & 3B+, with Linux 5.4, OpenRC, Xfce4, VC4/V3D, camera and h/w codec support, weekly-autobuild binhost
GNU General Public License v3.0
921 stars 126 forks source link

5001 port is not open and unable to open it #64

Closed manash-biswal closed 5 years ago

manash-biswal commented 5 years ago

5001 port is not open and unable to open it As we are planning to use iperf in UDP mode, the port 5001 needs to be open. Pleas help.

sakaki- commented 5 years ago

@manash-biswal,

as shipped, the image does not have any firewall rules active, so, unless you have set some yourself, no ports should be being blocked. Also, iperf3 ships with the image. To run it on port 5001 (it defaults to 5201), issue e.g.:

demouser@pi64 ~ $ sudo iperf3 --server --version4 --port 5001

You can check it is listening by running netstat -vatn in another terminal (the control connection is TCP, even for UDP tests). Now determine the IP address of your RPi3, using e.g. ifconfig in another terminal. Suppose it is e.g. 192.168.1.100

Then, on a Linux PC on the same subnet, you can connect (assuming you have the iperf3 software installed there too; or, just use another RPi3!):

user@linuxpc ~ $ iperf3 --client 192.168.1.100 --port 5001 --udp

Substitute the address you get from ifconfig for 192.168.1.100 in the above.

Just tried this locally and it seems to work OK here. You can of course daemonize the iperf3 server, or run it as a service, once you know it is working.

hth, sakaki

sakaki- commented 5 years ago

Closing. Please feel free to re-open if my comments above did not address the issue for you. Best, sakaki