I was able to restore to a previous config and get it working again. Here is the config that was working for at least a week (maybe until reboot?)... can someone tell where I might have some conflicts with this?
firewall { all-ping enable broadcast-ping disable ipv6-receive-redirects disable ipv6-src-route disable ip-src-route disable log-martians enable name WAN_IN { default-action drop description "WAN to internal" enable-default-log rule 10 { action accept description "Allow established/related" state { established enable related enable } } rule 20 { action drop description "Drop invalid state" state { invalid enable } } } name WAN_LOCAL { default-action drop description "WAN to router" enable-default-log rule 1 { action accept description "Allow established/related" state { established enable related enable } } rule 2 { action accept description SSH destination { port 10022 } log disable protocol tcp source { } } rule 3 { action accept description GUI destination { port 443 } log disable protocol tcp } rule 4 { action accept description "Allow l2tp" destination { port 500,1701,4500 } log disable protocol udp } rule 5 { action accept description "Allow ESP" log disable protocol 50 } rule 6 { action drop description "Drop invalid state" state { invalid enable } } } options { mss-clamp { mss 1412 } } receive-redirects disable send-redirects enable source-validation disable syn-cookies enable } interfaces { ethernet eth0 { address dhcp description "Internet (PPPoE)" duplex auto pppoe 0 { default-route auto firewall { in { name WAN_IN } local { name WAN_LOCAL } } mtu 1492 name-server auto password ******* user-id ******** } speed auto traffic-policy { out UPLOAD-POLICY } } ethernet eth1 { description Local duplex auto speed auto } ethernet eth2 { description Local duplex auto speed auto traffic-policy { out DOWNLOAD-POLICY } } ethernet eth3 { description Local duplex auto speed auto traffic-policy { out DOWNLOAD-POLICY } } ethernet eth4 { description Local duplex auto speed auto } loopback lo { } switch switch0 { address 192.168.1.1/24 description Local mtu 1500 switch-port { interface eth1 { } interface eth2 { } interface eth3 { } interface eth4 { } vlan-aware disable } } } protocols { static { interface-route *************/22 { next-hop-interface pppoe0 { } } } } service { dhcp-server { disabled false hostfile-update disable shared-network-name LAN { authoritative disable subnet 192.168.1.0/24 { default-router 192.168.1.1 dns-server 192.168.1.1 lease 86400 start 192.168.1.38 { stop 192.168.1.243 } } } } dns { dynamic { interface eth0 { service dyndns { host-name all.dnsomatic.com login ******* password ********** server updates.dnsomatic.com } web dyndns web-skip "Current IP Address: " } } forwarding { cache-size 1000 listen-on switch0 name-server 208.67.222.222 name-server 208.67.220.220 system } } gui { http-port 80 https-port 443 older-ciphers enable } nat { rule 5010 { description "masquerade for WAN" log disable outbound-interface eth0 protocol all source { } type masquerade } } ssh { port 10022 protocol-version v2 } } system { host-name ***** login { user ******* { authentication { encrypted-password ****************** } level admin } } name-server 208.67.222.222 name-server 208.67.220.220 ntp { server 0.ubnt.pool.ntp.org { } server 1.ubnt.pool.ntp.org { } server 2.ubnt.pool.ntp.org { } server 3.ubnt.pool.ntp.org { } } syslog { global { facility all { level notice } facility protocols { level debug } } } time-zone US/Central traffic-analysis { custom-category LIMIT_ITUNES { name iTunes } custom-category LIMIT_NF { name Netflix name HBOGO } custom-category LIMIT_YT { name YouTube } custom-category SSLandPlex { name SSL/TLS } dpi enable export enable } } traffic-control { advanced-queue { branch { queue 100 { bandwidth 896kbit description Upload parent 1 } queue 200 { bandwidth 6mbit description Download parent 1 } } filters { match 100 { attach-to 1 description "WAN upload" ip { source { address 192.168.1.0/24 } } target 100 } match 199 { attach-to 100 description Default target 199 } match 200 { attach-to 1 description "WAN download" ip { destination { address 192.168.1.0/24 } } target 200 } match 201 { application { custom-category LIMIT_ITUNES } attach-to 200 description "limit Itunes" target 201 } match 202 { application { custom-category LIMIT_NF } attach-to 200 description "limit Netflix" target 202 } match 203 { application { custom-category LIMIT_YT } attach-to 200 description "limit YouTube" target 203 } match 204 { application { custom-category SSLandPlex } attach-to 200 description "SSL and Plex" target 204 } match 299 { attach-to 200 description Default target 299 } } leaf { queue 199 { bandwidth 896kbit description default parent 100 queue-type FQCODEL_UP } queue 201 { bandwidth 512kbit ceiling 4mbit description LIMIT_ITUNES parent 200 priority 7 } queue 202 { bandwidth 256kbit ceiling 5mbit description LIMIT_NF parent 200 priority 2 } queue 203 { bandwidth 256kbit ceiling 4mbit description LIMIT_YT parent 200 priority 2 queue-type FQCODEL_DOWN } queue 204 { bandwidth 4mbit ceiling 6mbit description SSLandPlex parent 200 priority 0 } queue 299 { bandwidth 1mbit ceiling 6mbit description default parent 200 priority 1 queue-type FQCODEL_DOWN } } queue-type { fq-codel FQCODEL_DOWN { } fq-codel FQCODEL_UP { } } root { queue 1 { attach-to global bandwidth 100mbit } } } } traffic-policy { shaper DOWNLOAD-POLICY { bandwidth 6mbit default { bandwidth 15% burst 15k ceiling 100% queue-type fair-queue } } shaper UPLOAD-POLICY { bandwidth 896kbit default { bandwidth 10% burst 15k ceiling 100% queue-type fair-queue } } } vpn { ipsec { auto-firewall-nat-exclude disable ipsec-interfaces { interface eth0 } nat-networks { allowed-network 0.0.0.0/0 { } } nat-traversal enable } l2tp { remote-access { authentication { local-users { username ****** { password ********** } } mode local } client-ip-pool { start 192.168.3.101 stop 192.168.3.111 } dhcp-interface eth0 dns-servers { server-1 8.8.4.4 } ipsec-settings { authentication { mode pre-shared-secret pre-shared-secret *********** } ike-lifetime 3600 } mtu 1492 } } }
Otherwise, here is the config that I reuploaded and is now working. I'd like to reimplement the advanced queue to prevent youtube/netflix from having priority over bandwidth. I'd like to have everything (including plex) have priority over kids streaming youtube videos and netflix.
firewall { all-ping enable broadcast-ping disable ipv6-receive-redirects disable ipv6-src-route disable ip-src-route disable log-martians enable name WAN_IN { default-action drop description "WAN to internal" enable-default-log rule 10 { action accept description "Allow established/related" state { established enable related enable } } rule 20 { action drop description "Drop invalid state" state { invalid enable } } } name WAN_LOCAL { default-action drop description "WAN to router" enable-default-log rule 1 { action accept description "Allow established/related" state { established enable related enable } } rule 2 { action accept description SSH destination { port 10022 } log disable protocol tcp source { } } rule 3 { action accept description GUI destination { port 443 } log disable protocol tcp } rule 4 { action accept description "Allow l2tp" destination { port 500,1701,4500 } log disable protocol udp } rule 5 { action accept description "Allow ESP" log disable protocol 50 } rule 6 { action drop description "Drop invalid state" state { invalid enable } } } options { mss-clamp { mss 1412 } } receive-redirects disable send-redirects enable source-validation disable syn-cookies enable } interfaces { ethernet eth0 { address dhcp description "Internet (PPPoE)" duplex auto pppoe 0 { default-route auto firewall { in { name WAN_IN } local { name WAN_LOCAL } } mtu 1492 name-server auto password ******* user-id ******** } speed auto } ethernet eth1 { description Local duplex auto speed auto } ethernet eth2 { description Local duplex auto speed auto } ethernet eth3 { description Local duplex auto speed auto } ethernet eth4 { description Local duplex auto speed auto } loopback lo { } switch switch0 { address 192.168.1.1/24 description Local mtu 1500 switch-port { interface eth1 { } interface eth2 { } interface eth3 { } interface eth4 { } vlan-aware disable } } } protocols { static { interface-route ***************/22 { next-hop-interface pppoe0 { } } } } service { dhcp-server { disabled false hostfile-update disable shared-network-name LAN { authoritative disable subnet 192.168.1.0/24 { default-router 192.168.1.1 dns-server 192.168.1.1 lease 86400 start 192.168.1.38 { stop 192.168.1.243 } } } } dns { dynamic { interface eth0 { service dyndns { host-name all.dnsomatic.com login ******* password ************ server updates.dnsomatic.com } web dyndns web-skip "Current IP Address: " } } forwarding { cache-size 1000 listen-on switch0 name-server 208.67.222.222 name-server 208.67.220.220 system } } gui { http-port 80 https-port 443 older-ciphers enable } nat { rule 5010 { description "masquerade for WAN" log disable outbound-interface eth0 protocol all source { } type masquerade } } ssh { port 10022 protocol-version v2 } } system { host-name ubnt login { user ******* { authentication { encrypted-password ***************** } level admin } } name-server 208.67.222.222 name-server 208.67.220.220 ntp { server 0.ubnt.pool.ntp.org { } server 1.ubnt.pool.ntp.org { } server 2.ubnt.pool.ntp.org { } server 3.ubnt.pool.ntp.org { } } syslog { global { facility all { level notice } facility protocols { level debug } } } time-zone US/Central traffic-analysis { dpi enable export enable } } traffic-control { advanced-queue { branch { } root { } } } vpn { ipsec { auto-firewall-nat-exclude disable ipsec-interfaces { interface eth0 } nat-networks { allowed-network 0.0.0.0/0 { } } nat-traversal enable } l2tp { remote-access { authentication { local-users { username ******* { password ************* } } mode local } client-ip-pool { start 192.168.3.101 stop 192.168.3.111 } dhcp-interface eth0 dns-servers { server-1 8.8.4.4 } ipsec-settings { authentication { mode pre-shared-secret pre-shared-secret *************** } ike-lifetime 3600 } mtu 1492 } } }