Edgerouter Lite Configuration
Posted in:admin
EdgerouterLiteConfiguration
How to configure Edge. Router Lite via CLIThis blog post is part of a series on Edge. Router Lite. You may want to check them all out Introduction. This is part two of the How to configure Edge. Router Lite via CLI blog post. If you havent read the part one, you might want to read that first. In part one, I covered what I think are the essential configurations to get a user going in a typical home environment setup. Ubiquiti/EdgeRouter%20Lite/Latestfirmwareversion110.png' alt='Edgerouter Lite Config File' title='Edgerouter Lite Config File' />In this post, I will talk about features that I personally use at home at the time of writing. Though, I did include one feature that I turned on for few days and decided to turn it off because of issues that I encountered with it being on. UPDATE While there are some security related configurations covered in this series, there are still some security concerns with the configuration. That said, I created the Hardening Edge. How To Setup Edgerouter Lite
Router Lite series to address the security concerns. Please check the link above. Configure IPv. 6I would say that IPv. CategoryConfig.png' alt='Ubiquiti Edgerouter X' title='Ubiquiti Edgerouter X' />US. As far I know I could be wrong, IPv. US residential networks has only been around two to three years. I actually did not know that my ISP ComcastXfinity has been IPv. In fact, I accidentally found that out when I was troubleshooting my slow download speed connection. Once I found out, I started researching on how to configure it on my router. My ISP uses prefix delegation, which provides a mechanism for automated delegation of IPv. DHCP. There are two Edge. Die private Website von Michael Stapelberg mit. Ubiquiti EdgeRouter Lite Erlite. Configuring the EdgeRouter Lite for fiber7. In my configuration. Ubiquiti EdgeRouter Lite Setup Part 1 The Basics. For reference Ill maintain a collection of links to all my posts about EdgeRouter Lite configuration here. Download Free Alien Ant Farm Live In Germany Rar on this page. Can you give a recipe for setting up VLANs between an EdgeRouter Lite and an EdgeSwitch Lite Each VLAN will have its own DHCP server within the EdgeRouter. Configure Ubiquiti EdgeRouter for Azure VPN I recently got myself a Ubiquiti EdgeRouter Lite at home, and of course the first thing to do is establish an Azure VPN Since the EdgeRouter does not support route based VPNs the configuration will be based on Policy. Just wondering if your EdgeRouter Lite Configuration article from 2013 is still applicable Thanks. How to configure EdgeRouter Lite using the CLI for home use. Part one mainly focuses in a basic home environment and advanced users should read part two. EdgeMAX Configuration Examples Knowledge Base Search the Knowledge Base. EdgeMAX VTI Example on EdgeRouter 0 5 11192014 1023 AM. UBNTstig. EdgeMAX. EdgeRouter Lite OpenVPN Server and Client Configuration Files Creating the PKI and related items is faster, more convenient and secure on the Windows PC versus directly on the EdgeRouter. You also have to use Apple iTunes on the PC to sync the iPhone OpenVPN client configuration file. I recently picked up a new routerfirewall for my home, and chose the Ubiquiti EdgeRouter Lite ERLite3. This device comes with a lot of bells and whistles. OS configurations I found that worked for me, but I will only show the one that I think is the best out of the two that I tried. Pay attention to the prefix length that youre asking for. In residential networks, ComcastXfinity allows the user to ask for a maximum of 1. In business class accounts, they can ask for 5. In addition to the above configurations, you may want to configure the IPv. To verify that you received IPv. Below is my sanitized output that shows both IPv. IPv. 6 addresses. Codes S State,L Link,u Up,D Down,A Admin Down. Interface IP Address SL Description eth. WAN 2. LAN0 2. LAN1 2. MGMT 2. SERVER 2. LAN2 2. If you do not get an IPv. DHCPv. 6 renew. release dhcpv. Heres a better way to verify that the configuration actually worked. PING google. comnuq. C google. comping statistics 4packets transmitted,4received,0packet loss,time. Mac mini Andrewping. PING65. 64. 088bytes2. C netflix. comping. Configure sub interfaces. As you can see above, I have few sub interfaces configured. There used to be a DMZ configured but I moved it to a pf. Sense virtual machine. I actually talked a little about it here. LAN1set interfaces ethernet eth. MGMTset interfaces ethernet eth. SERVERset interfaces ethernet eth. VLAN offload feature is supported in Edge. Router Lite so you may want to turn that on. Configure Firewall. In this section, I am still sticking with the ACL style firewall configuration instead of the Zone based firewall ZBFZBFW configuration. In this firewall configuration example, I am blocking a couple of 8 networks that repeatedly brute force attacked my Linux computer. Also, I disabled the auto firewall feature. SSH ATTACKERS descriptionKnown Brute Force SSH Attackersset firewall group network group SSH ATTACKERS network. SSH ATTACKERS network. WAN INdefault action dropset firewall name WAN INdescriptionWAN IPv. LANset firewall name WAN INenable default logset firewall name WAN INrule. WAN INrule. 1descriptionDeny Invalidset firewall name WAN INrule. WAN INrule. 1state invalid enableset firewall name WAN INrule. WAN INrule. 2descriptionDeny SSH Attackersset firewall name WAN INrule. WAN INrule. 2log enableset firewall name WAN INrule. WAN INrule. 2source group network group SSH ATTACKERSset firewall name WAN INrule. WAN INrule. 3descriptionAllow SSH to Linux Computerset firewall name WAN INrule. WAN INrule. 3log enableset firewall name WAN INrule. WAN INrule. 4action acceptset firewall name WAN INrule. Allow establishedrelated stateset firewall name WAN INrule. WAN INrule. 4state established enableset firewall name WAN INrule. WAN INAlternatively, if you do not want to manually add networks to the list then you can configure a different rule set. How To Install Ocarina Cheat Code Manager Download on this page. With this rule set, it will basically match recently seen sources to help prevent brute force attack for certain amount of time. In this example, it will limit SSH connection attempts from the same source to three attempts within one week. I actually have Fail. Ban installed on my Linux box that handles anything that goes through, which was covered here. Thats a better solution in my opinion. However, I believe the best solution to prevent SSH brute force attack is to implement the use of SSH key authentication and disable password authentication. WAN INrule. 1action dropset firewall name WAN INrule. Prevent SSH brute force attackset firewall name WAN INrule. WAN INrule. 1destination port. WAN INrule. 1state newenableset firewall name WAN INrule. WAN INrule. 1recent time. Since I configured IPv. I also need to make sure my firewall is turned on. Since I do not have any external facing servers using IPv. I didnt use the BOGON filter in this case because its a very long list and it could potentially slow down the router. WAN6 INdefault action dropset firewall ipv. WAN6 INdescriptionWAN IPv. LANset firewall ipv. WAN6 INenable default logset firewall ipv. WAN6 INrule. 1action acceptset firewall ipv. WAN6 INrule. 1descriptionAllow establishedrelated stateset firewall ipv. WAN6 INrule. 1state established enableset firewall ipv. WAN6 INrule. 1state related enableset firewall ipv. WAN6 INrule. 2action dropset firewall ipv. WAN6 INrule. 2descriptionDeny invalid stateset firewall ipv. WAN6 INrule. 2state invalid enableset firewall ipv. WAN6 LOCAL default action dropset firewall ipv. WAN6 LOCAL descriptionWAN IPv. WAN6 LOCAL enable default logset firewall ipv. WAN6 LOCAL rule. WAN6 LOCAL rule. Allow establishedrelated stateset firewall ipv. WAN6 LOCAL rule. WAN6 LOCAL rule. WAN6 LOCAL rule. WAN6 LOCAL rule. Allow DHCPv. 6set firewall ipv. WAN6 LOCAL rule. WAN6 LOCAL rule. WAN6 LOCAL rule. WAN6 LOCAL rule. WAN6 LOCAL rule. Allow ICMPv. WAN6 LOCAL rule. WAN6 LOCAL rule. WAN6 LOCAL rule. Deny invalid stateset firewall ipv. WAN6 LOCAL rule. WAN6 INset interfaces ethernet eth. WAN6 LOCALConfigure Remote Access VPNIn this section, I will only cover the configuration for L2. TP over IPsec. The Open. VPN feature is also available in Edge. OS but its not covered here because I prefer L2. TPIPsec than Open. VPN. set vpn ipsec ipsec interfaces interfaceeth. If you have static WAN IP address then the configuration will be something like the one below. Firewall needs to be configured as well or it wont work. The example below will modify the existing firewall configuration in part one. WAN LOCAL rule. 3action acceptset firewall name WAN LOCAL rule. Allow NAT Tset firewall name WAN LOCAL rule. WAN LOCAL rule. 3log enableset firewall name WAN LOCAL rule. WAN LOCAL rule. 4action acceptset firewall name WAN LOCAL rule. Allow ESPset firewall name WAN LOCAL rule. WAN LOCAL rule. 4protocol. WAN LOCAL rule. 5action acceptset firewall name WAN LOCAL rule. Allow L2. TPset firewall name WAN LOCAL rule. WAN LOCAL rule. 5log enableset firewall name WAN LOCAL rule. Las. Labs Blog Initial Configuration Ubiquiti Edge. Router Lite. This tutorial will walk you through setting up a Ubiquiti Edge. Router Lite for use in a SOHO environment using CLI commands. Below physical architecture diagram of the network we will be creating Login to ERL via SSH, go to configure mode. Interfaces In this section, we will setup our network interfaces per the above physical network diagram. Note that the WAN IP is assigned via DHCP in this configuration. LAN. edit interfaces ethernet eth. LAN. set address 1. WLAN. set address 1. WAN DHCP. edit interfaces ethernet eth. WAN. set address dhcp. User Management This step is to create a new user to replace the default ubnt user. Create new user Note the plain text password will be encrypted upon commitedit system login user newuser. New User. set level admin. Logout, then log back in as the new user. Delete the default ubnt user. DHCP Server Now we will create DHCP servers for the LAN and WLAN subnets. We need to create one server per subnet. Global DHCP options. LANDHCP. set authoritative disable. WLANDHCP. set authoritative disable. Forward DNS Requests In the DHCP servers that we just setup, we defined the router address as the primary DNS server. We will now need to enable DNS forwarding on both the LAN and WLAN interfaces in order to support this setting. Enable DNS forwarding. Dynamic DNS Updater This process will allow your ERL to automatically update a supported Dynamic DNS service upon WAN DHCP renewal, and is completely optional. Create an account with a supported service provider. As of now, they are. Set the service provider, login, and password. Modify the service from dyndns to your service provider, and the usernamepassword to match your credentials. USERNAME. set password PASSWORD Set the hostname to update, modifying my domain for yours. You can also repeat this step for multiple host names. DOMAINNAME Move back to the top of the config. WAN Masquerading Now we will need to setup WAN masquerading to allow local machines access to the internet. If you also need to add port forwarding rules to allow inbound traffic, check out this tutorial. Configure NAT rule for WAN Masquerading. WANMASQ. set log disable. SNMP Now we will configure SNMP settings. David Lasley. set location Server Room. Basic Firewall We will now configure a basic firewall that is not recommended in a production environment. We will set it up to allow any outbound traffic from LAN, WLAN, or the router itself, but will drop all inbound traffic. Set global firewall rules. Create ruleset for WAN WLAN. We will add rules to drop Invalid packets and accept established ones. WANIN. set description Inbound WAN to WLAN. Allow EstablishedRelated. Drop Invalid. set rule 5. Create ruleset for WAN Local router. We will add rules to drop Invalid packets and accept established ones. Note that this is basically identical to the last ruleset, except it will be applied to traffic destined for the routeredit firewall name WANLOCAL. Inbound WAN to Local Router. Allow EstablishedRelated. Drop Invalid. set rule 5. Add firewall rules to WAN interface. WANIN. set local name WANLOCAL. Define System Settings Now we will set the system settings such as hostname, nameserver, time zones, etc. Hostname domain name. Nameservers. set system name server 8. Timezone Timezones can be listed by traversing the directories in usrsharezoneinfoset system time zone AmericaLosAngeles. Add Debian repositories optional. Make sure to perform an apt get update if you do this. Final Config Attached is the final configuration that will be generated with this tutorial. I have left the default ubntubnt user in this configuration. You can upload this file to configconfig. SCP, or follow the directions here to upload via the Web.