iperf3 server on wan, and client on lan : but how?
-
@cabledude yeah if the devices are on the same network and connected to each other - they would be able to talk to each other ;)
Doesn't matter how they get ip - be it via dhcp or static setup, etc.
Bit of heads up - when pfsense is not really on a internet connection, and its dns doesn't work the gui can be slow to respond.. Just wait a bit and it will work - but the web gui main page likes to check for updates and stuff, so when it can't its a bit sluggish..
-
@johnpoz Thanks for that notice. I will keep it in mind.
Just a check question : you recommended to disable monitoring, I assume you mean the "Disable Gateway Monitoring" in the System/Routing/Gateways/Edit Menu?Should I also disable "Disable Gateway Monitoring Action"? I suppose not as the system can only take action if monitoring is enabled.
You are really helping me to learn more about pfSense!
Pete
PS As a bit of an exercise I first connected the two MacBooks using a direct cable, setting 172.16.0.1 and 172.16.0.2 and I get gigabit iPerf3 readings (940's). So I am sure I will get the SG-1100 test running now.
-
I did the iperf3 test on the SG-1100. These are my findings:
Test 1 only Macbooks, directly connected, no switches no VLANs:
Macbook1 -> cat6 cable -> SG-1100 (LAN port) ->
SG-1100 (WAN port) -> cat6 cable -> Macbook 2
Macbook1 (LAN side) is on LAN (untagged from SG-1100)
Macbook2 (WAN side): ./iperf3 -s
Macbook1: (LAN side): ./iperf3 -c 172.16.0.2[ ID] Interval Transfer Bandwidth [ 4] 0.00-1.00 sec 86.9 MBytes 729 Mbits/sec [ 4] 1.00-2.00 sec 75.4 MBytes 632 Mbits/sec [ 4] 2.00-3.00 sec 82.8 MBytes 695 Mbits/sec [ 4] 3.00-4.00 sec 81.5 MBytes 684 Mbits/sec [ 4] 4.00-5.00 sec 86.0 MBytes 721 Mbits/sec [ 4] 5.00-6.00 sec 85.6 MBytes 718 Mbits/sec [ 4] 6.00-7.00 sec 77.5 MBytes 650 Mbits/sec [ 4] 7.00-8.00 sec 85.1 MBytes 714 Mbits/sec [ 4] 8.00-9.00 sec 83.1 MBytes 697 Mbits/sec [ 4] 9.00-10.00 sec 82.0 MBytes 688 Mbits/sec - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bandwidth [ 4] 0.00-10.00 sec 826 MBytes 693 Mbits/sec sender [ 4] 0.00-10.00 sec 825 MBytes 692 Mbits/sec receiver
Test 2: Using UniFi stack on LAN side:
Macbook1 -> cat6a cable -> 24p UniFi switch -> cat6a cable -> SG-1100 (LAN port) ->
SG-1100 (WAN port) -> cat6 cable -> Macbook 2
Macbook1 (LAN side) is on VLAN12 (tagged from SG-1100 to the switch and Macbook connected to access port VLAN12)
Macbook2 (WAN side): ./iperf3 -s
Macbook1: (LAN side): ./iperf3 -c 172.16.0.2[ ID] Interval Transfer Bandwidth [ 4] 0.00-1.00 sec 46.3 MBytes 388 Mbits/sec [ 4] 1.00-2.00 sec 71.4 MBytes 599 Mbits/sec [ 4] 2.00-3.00 sec 71.5 MBytes 600 Mbits/sec [ 4] 3.00-4.00 sec 71.1 MBytes 597 Mbits/sec [ 4] 4.00-5.00 sec 65.2 MBytes 547 Mbits/sec [ 4] 5.00-6.00 sec 70.3 MBytes 589 Mbits/sec [ 4] 6.00-7.00 sec 74.1 MBytes 622 Mbits/sec [ 4] 7.00-8.00 sec 72.7 MBytes 610 Mbits/sec [ 4] 8.00-9.00 sec 64.9 MBytes 544 Mbits/sec [ 4] 9.00-10.00 sec 71.4 MBytes 599 Mbits/sec - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bandwidth [ 4] 0.00-10.00 sec 679 MBytes 569 Mbits/sec sender [ 4] 0.00-10.00 sec 678 MBytes 569 Mbits/sec receiver
Test 3: ISP speedtest using SG-1100 and internet (WAN side):
I get consistent 200 - 220 ish download speeds with the SG-1100. I currently have a 500/40 cable connection.
When I connect a UniFi USG with its own UniFi stack (switch, AP) I get consistent 500 Mbps download speeds.
The ifperf3 tests show that the SG-1100 can perform adequately. Any clues where to start looking for clues?
Pete
-
@cabledude said in iperf3 server on wan, and client on lan : but how?:
Any clues where to start looking for clues?
Your wifi, 200mbps seems like a typical 2 stream AC connection with 40mhz channels, ie like a 400 PHY.. Is that via something plugged into the sg1100 interface or via your wifi AP that is connected to the sg1100?
I assume from your iperf that is wired test, and then your browser test if via wifi??
If that is the case - what does the controller show for your wifi connection for your clients PHY? I see 400+ easy via phone and tablets using wifi and unifi AP.. Not on a sg1100, but a sg4860.. But as you show from iperf test your sg110 can route/firewall/nat at 500mbps without too much trouble.
-
@johnpoz thanks for staying with me here. I never do any speed testing over WiFi as I am aware the WiFi connection may be the bottleneck.
so just like the iperf3 test, the internet speed test was performed wired, same LAN side config as the second iperf3 test:
Macbook1 -> cat6a -> UniFi 24p switch -> cat6a -> SG-1100 (LAN) -> SG-1100 (WAN) -> cat6a -> ISP connectbox (modem/router in bridged mode).The SG-1100 that I tested had not been restored to factory defaults prior to testing.
-
@cabledude well that good to know..
Take your switch out of the test.. And also is that browser based test? Use their app.. I have seen slow results with browser mode sometimes.
Also is that single mode or multi mode for the test? I have to assume you tried using different test servers.. The one it auto picks is not always the best.
-
@johnpoz When I bypass the switch I get 300’s for the netgate. so there is definitely something there. But still no 500. The sequence will start around 500 but appears to be throttled down towards the end of the sequence.
I use safari 15.1 browser on big sur, the same method for SG-1100 and USG. I get ultra consistent 500’s on the USG using safari.
I’m on the road for today and tomorrow so further testing will be delayed, sorry.
Pete
-
@cabledude something up if your iperf test shows 500.. I don't have a 1100 to test with.. But I have seen some oddshit with browser at times..
I never have any issues hitting my 500/50 with my sg4860..
-
@johnpoz Today I am ordering a second SG-1100 (1) to have a spare firewall in case of malfunction and (2) to play with and learn. I expect delivery some time next week. Will get back to you as soon as I have tested that box with default settings.
-
@johnpoz I took delivery of my spare SG-1100 and out of the box it is doing 500/40 using a selection of internet based speed tests. I am going to adjust settings on the spare unit and build up the config from a factory reset starting point until I get to identical settings. Will monitor speed after each adjustment to determine which steps or components start slowing it down.
Will be back.
Pete
-
@cabledude possible you had enabled shaping/limiting of some sort?
-
@johnpoz said in iperf3 server on wan, and client on lan : but how?:
@cabledude possible you had enabled shaping/limiting of some sort?
Nope, I did look for something like that, but no traffic shaping in pfSense and none in UniFi, at least not for the VLAN my laptop is in.
Will investigate some more.
Thanks,
Pete