In this video I show you how to setup an Edge Router X and a Unifi Access Point. The ER-X is especially interesting for gamers as it supports SQM, which helps to prevent ping spikes caused by congestion.
Giveaway ended on 2017-12-17
► Support Battle(Non)Sense:
https://www.patreon.com/battlenonsense
► Battle(non)sense Wallpaper: https://goo.gl/51aao7
► Previous video: https://youtu.be/TZSUrZQXGqM
► Next Video: https://youtu.be/KvIyUxaF5pE
5:05 copy/paste mistake 🙁 The USG costs €111.88 / $119.00
Timecodes:
– 2:02 it fixes your marriage?
– 3:36 why an ER-X instead of OpenWRT/LEDE?
– 4:09 why an ER-X instead of an USG?
– 6:27 ER-X basic setup
– 9:19 ER-X Smart Queue configuration
– 10:06 ER-X Port forwarding and UPNP
– 13:13 Unifi Access Point setup
—————————————————–
Hardware Recommendations:
https://battlenonsense.blogspot.co.at/
As previously requested, you can use the Amazon affiliate links from the page above to directly support Battle(non)sense with your purchase!
You don't pay more! I simply get a small percentage from Amazon for every completed purchase made using an affiliate link. 🙂
—————————————————–
Buffer Bloat Test: http://dslreports.com/speedtest
—————————————————–
———– UPNP2 Setup ————
//delete old upnp1 service
delete service upnp
//check if upnp2 is active (it's not if this doesn't return a number):
pidof miniupnpd
//show routes opened by upnp2
show upnp2 rules
//enable upnp2
configure
set service upnp2 listen-on $LAN_INTERFACE_1
…
set service upnp2 listen-on $LAN_INTERFACE_N
set service upnp2 wan $WAN_INTERFACE
set service upnp2 secure-mode enable
set service upnp2 nat-pmp enable
commit
save
exit
———– // UPNP2 Setup ————
► Connect with me:
➜ FB: facebook.com/BattleNonSense
➜ twitter: twitter.com/BattleNonSense
➜ email: chris@battlenonsense.com
► Outro Music:
Many of you asked for the name of the outro song. Sadly I have to tell you that it is not a "song". It is a custom made music to be used for intros/outros that I bought a while ago.
Absolutely agree with Battle(non)sense with his findings. I have seen other users have to really limit their bandwidth to get reasonable BufferBloat results on the NetDuma and other devices. With the EdgeRouter Lite I don’t lose my performance.
However I would suggest the EdgeRouter Lite over the X. Yes it is a little more, I have both, but there is a clear performance difference between the 2. I would even take the Lite over the USG.
I do have an entire Unifi setup, USG Pros, switches and WAPs at my workplace. I do not get paid nor do I have any affiliation with Ubiquiti but I have not had any issues. I really like the administration of all 3 of my networks being in 1 location!
My ISP package is 300Mbps X 20Mbps but without any settings I will see 350Mbps X 28Mbps. I have my own modem (Netgear CM600) and have my EdgeRouter Lite, no ISP equipment at all. I have 2 PS4s and a PS3 that I would like open to the internet so less administration for me.
This is a sample on commands to configure for multiple Xboxs on a single Network. I use the GUI for DHCP reservations, this user didn’t. For multiple Xboxs you need an extra rule to block port 3074.
Access the EdgeRouter CLI
configure
set service dhcp-server shared-network-name LAN1 subnet 192.168.1.0/24 static-mapping XBOX-1 ip-address 192.168.1.241
set service dhcp-server shared-network-name LAN1 subnet 192.168.1.0/24 static-mapping XBOX-1 mac-address 50:1A:C5:A2:A6:51
set service dhcp-server shared-network-name LAN1 subnet 192.168.1.0/24 static-mapping XBOX-2 ip-address 192.168.1.242
set service dhcp-server shared-network-name LAN1 subnet 192.168.1.0/24 static-mapping XBOX-2 mac-address 4C:0B:BE:52:A4:2E
set service upnp2 listen-on eth0
set service upnp2 nat-pmp enable
set service upnp2 secure-mode enable
set service upnp2 wan eth1
set service upnp2 acl rule 10 action deny
set service upnp2 acl rule 10 description “Block default Xbox Live port 3074”
set service upnp2 acl rule 10 external-port 3074
set service upnp2 acl rule 10 local-port 0-65535
set service upnp2 acl rule 10 subnet 192.168.1.0/24
set service upnp2 acl rule 20 action allow
set service upnp2 acl rule 20 description “Allow XBOX-1”
set service upnp2 acl rule 20 external-port 1024-65535
set service upnp2 acl rule 20 local-port 0-65535
set service upnp2 acl rule 20 subnet 192.168.1.241/32
set service upnp2 acl rule 30 action allow
set service upnp2 acl rule 30 description “Allow XBOX-2”
set service upnp2 acl rule 30 external-port 1024-65535
set service upnp2 acl rule 30 local-port 0-65535
set service upnp2 acl rule 30 subnet 192.168.1.242/32
set service upnp2 acl rule 100 action deny
set service upnp2 acl rule 100 description “Deny All other devices”
set service upnp2 acl rule 100 external-port 1024-65535
set service upnp2 acl rule 100 local-port 0-65535
set service upnp2 acl rule 100 subnet 0.0.0.0/0
commit
save
Here is my configuration example. I have my WAN on Eth0.
configure
set service upnp2 listen-on eth1
set service upnp2 nat-pmp enable
set service upnp2 secure-mode enable
set service upnp2 wan eth0
set service upnp2 acl rule 20 action allow
set service upnp2 acl rule 20 description “Allow PS4”
set service upnp2 acl rule 20 external-port 1024-65535
set service upnp2 acl rule 20 local-port 0-65535
set service upnp2 acl rule 20 subnet 10.10.25.80/32
set service upnp2 acl rule 30 action allow
set service upnp2 acl rule 30 description “Allow PS4 Pro”
set service upnp2 acl rule 30 external-port 1024-65535
set service upnp2 acl rule 30 local-port 0-65535
set service upnp2 acl rule 30 subnet 10.10.25.83/32
set service upnp2 acl rule 40 action allow
set service upnp2 acl rule 40 description “Allow PS3”
set service upnp2 acl rule 40 external-port 1024-65535
set service upnp2 acl rule 40 local-port 0-65535
set service upnp2 acl rule 40 subnet 10.10.25.82/32
set service upnp2 acl rule 100 action deny
set service upnp2 acl rule 100 description “Deny All other devices”
set service upnp2 acl rule 100 external-port 1024-65535
set service upnp2 acl rule 100 local-port 0-65535
set service upnp2 acl rule 100 subnet 0.0.0.0/0
commit
save
I have only setup 1 QoS rule. In Smart Queue I have limited my Upload to 25Mbps (even though my upload package is 20Mbps) and I get A across the board with DSLReports speed test.
http://www.dslreports.com/speedtest/26413509
I like the idea of a modular router setup with the wifi being in a separate module. If you want to improve either the wired or wifi section you don’t have to buy an entire new router that way
Hey Chris, again thanks! This thing works tremendously as you said it would. Pain in the butt to setup but , the end result was good. Plus it was cheap. Can’t thank you enough. Good gaming mates!
Glad to hear that! 🙂
I was using the Asus GT-AC5300 (total overpriced junk by the way). I would get terrible spikes. Watched this video and went out right away and bought this stuff and it’s a world of difference. I’m stuck on a 20Mbps/1Mbps connection and struggle to play games as well as run everything in the house. Thanks so much for making this video as I can finally game online.
Hey Chris. If you have both these devices, you can use the poe injector that comes with the WAP to power both the router and the WAP. Put the ethernet cable coming from the modem into the LAN port of the injector and the put the ethernet cable coming from eth0 (poe in) on the router into the POE port of the injector. Next put a ethernet cable into eth4 (poe out) on the router and put the other end into the WAP, now enable POE passthrough on eth4. Now when you power on the poe injector will will power both the router and WAP.
Great video. I am so thankful for it as I am searching the perfect setup for myself since a couple of years and I think I finally found it. I have a Fiber connection with 1Gig Up/Down and couldn’t use my preferred way to go with OpenWRT based devices as these always reduced the speed to max. 400 MBit just because OpenWRT and all other Third party firmwares were not able to handle 1Gig Internet speed.
Now I will just connect all rooms with gaming devices to the edge router directly and the unifi access point in the middle of my home to provide the maximum WiFi performance to phones and laptops.
Not sure if it’s been mentioned but if you’re running the UniFi Controller with the USG Pro (I already owned this device); While accessing the controller, you can click “Devices”, select your USG-PRO to open the properties panel, click the “Configuration” tab, expand WAN1, and then you will find the Smart Queue check box at the bottom. Checking it will then allow you to enter your Up/Down speeds.
Ubiquiti SHOULD be paying you for this. By far the most clear instructions for setting up an edge router and access point. Thank you so much for this. Been having massive lag spikes on Citrix RDP.
You Sir deserve a medal, thank you for your time and knowledge, I just want to say that people like you that share their expertise in online communities make the internet world a little bit better, thanks again, and keep it up!
Just got my new connection and was very pleasantly surprised. Using the Router my ISP provided (Speedport Smart on a VDSL100 line from Telekom) and had practically no bufferbloat!
The DSLReports test gave me a rating of “A”.
I wasn’t looking forward to having to install an additional device to get a rock stable connection at all times.
So for anyone in Germany eyeing a setup like mine: Rejoice, no additional hardware needed!
This is a great video. I actually just purchased the EdgeRouter X and the Unifi AP-AC Lite and was looking for videos on how to set up for when I get fiber connected next week, and this explains everything perfectly. Can’t believe how professional this product suite is at such a reasonable price, much cheaper than those all in one gaming wireless MIMO routers with antenna’s all sticking out the wazoo and seems it may even perform better than this stuff at half the cost. Wasn’t aware of such a thing as Buffer bloat with me being a casual gamer. But you learn something new every day.
amazing work on this tutorial. really clear, good explanations and speed.
This video started me on the dark, seductive path that is home networking, from simple 5 port switch and cable modem router to Ubiquiti USG Pro, APs, Synology backup, and surveillance systems among other goodies. Thank you, Battle(non)sense. I should send you my receipts. lol!
I have had this exact setup since watching this video about 6 months ago. It has been perfect. No lag in gaming and a trouble free up time on my home network.
Why not, Ubiq has network peripherals in very good quality and their provided settings is user friendly, but I prefer more MikroTik for its fully adjustable hardware via RouterOS (but for newbies or less experienced user it is little bit difficult to understand) 🙂 BTW nice video with step-by-step explanation for less experienced user 🙂
Hi Chris. Thanks so much for this vid – excellent as always.
I have only just gotten around to getting an ER-X. Fixes the bufferbloat great, BUT I still find if I use Netflix in Chrome that there are regular burst downloads (about 6MB/s every few seconds) that double my latency in BF1.
Would love any ideas you might have!
Great explanation. Bufferbloat and ping spikes are gone now. Have the newest firmware for the Edgerouter X v2.0.6 and the overall internet speed only fell from 860 mbps to 480 mbps downstream – not too bad a penalty for having an A+ gameplay expiriance for the boys.
One config some should be aware of is this router is PoE passthrough. So best to connect modem > PoE injector > eth0 > eth4 > ac-lite. This way you only need to plug in the PoE injector which will power the router and AP.
I know this video is quite old but the last 6 months ive been using edgerouter x as my router/firewall and i have to say…THANK YOU sir for this video…thanks to you i can now enjoy my games even with all my family online.