EdgeOS

From CaveLab

EdgeOS is a fork of Vyatta developed by Ubiquiti Networks.

CLI commands

configure: Enter configure mode
  commit: Commit the current set of changes
  save: Save configuration to a file
# lookup host
host -v vg.no

# discard changes
top ; discard

Set MAC address

configure 
set interfaces ethernet eth0 mac 00:00:00:00:00:01
commit ; save

Change firewall rule

show firewall name DMZ_IN
configure
edit firewall name DMZ_IN rule 10
show
set source address 192.168.5.179
show
commit ; save ; exit

DNS

https://help.ubnt.com/hc/en-us/articles/115010913367-EdgeRouter-DNS-Forwarding-Setup-and-Options

# Modifying the cache size
set service dns forwarding cache-size <nr>

# Defining the name servers
set service dns forwarding name-server <ip-address>
show dns forwarding nameservers
show dns forwarding statistics

# Forwarding URLs to a specific IP
set service dns forwarding options address=/domain.com/192.168.1.10

# Forwarding a domain to another DNS server
set service dns forwarding options server=/domain.local/192.168.1.10

HW offload

https://help.ubnt.com/hc/en-us/articles/115006567467-EdgeRouter-Hardware-Offloading

configure

set system offload ipv4 forwarding enable
set system offload ipv4 gre enable
set system offload ipv4 pppoe enable
set system offload ipv4 vlan enable
set system offload ipv4 bonding enable

set system offload ipv6 forwarding enable
set system offload ipv6 pppoe enable
set system offload ipv6 vlan enable

set system offload ipsec enable

commit ; save

Clear DHCP lease

clear dhcp lease ip 10.0.1.207

Resources