Last active
May 26, 2019 22:04
-
-
Save AjkayAlan/e5a993a6c55bfa6960c6b0da541faca8 to your computer and use it in GitHub Desktop.
OpenWrtRouterSetup.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ssh | |
ssh [email protected] | |
# Install stuff I care about | |
opkg update | |
opkg install luci | |
opkg install luci-app-sqm | |
opkg install luci-app-upnp | |
# Set new password for root | |
passwd | |
# --- Below settings are for a WRT3200ACM. Your mileage may vary --- | |
# DNS Setup | |
uci del dhcp.@dnsmasq[0].boguspriv | |
uci del dhcp.@dnsmasq[0].filterwin2k | |
uci del dhcp.@dnsmasq[0].nonegcache | |
uci add_list dhcp.@dnsmasq[0].server='1.0.0.1' | |
uci add_list dhcp.@dnsmasq[0].server='1.1.1.1' | |
uci add_list dhcp.@dnsmasq[0].server='2606:4700:4700::1001' | |
uci add_list dhcp.@dnsmasq[0].server='2606:4700:4700::1111' | |
uci set network.wan.peerdns='0' | |
uci set network.wan6.reqaddress='try' | |
uci set network.wan6.reqprefix='auto' | |
uci set network.wan6.peerdns='0' | |
# Wireless | |
uci set wireless.radio0.channel='153' | |
uci set wireless.radio0.country='US' | |
uci set wireless.radio0.legacy_rates='1' | |
uci set wireless.default_radio0.ssid='Kay WiFi 5GHz' | |
uci set wireless.default_radio0.encryption='psk2+ccmp' | |
uci set wireless.default_radio0.key='TODO:ReplaceMe' | |
uci set wireless.radio1.channel='6' | |
uci set wireless.radio1.country='US' | |
uci set wireless.radio1.legacy_rates='1' | |
uci set wireless.default_radio1.ssid='Kay WiFi' | |
uci set wireless.default_radio1.encryption='psk2+ccmp' | |
uci set wireless.default_radio1.key='TODO:ReplaceMe' | |
uci set wireless.radio0.__toggle='Enable' | |
uci set wireless.radio0.disabled='0' | |
uci set wireless.radio1.__toggle='Enable' | |
uci set wireless.radio1.disabled='0' | |
# UPnP | |
uci set upnpd.config.enabled='1' | |
uci del upnpd.config.enable_upnp | |
uci del upnpd.config.enable_natpmp | |
uci del upnpd.config.secure_mode | |
uci del upnpd.config.igdv1 | |
uci del upnpd.config.log_output | |
# SQM - Adjust for your internet settings | |
uci set sqm.eth1.enabled='1' | |
uci set sqm.eth1.download='130000' | |
uci set sqm.eth1.upload='10000' | |
uci set sqm.eth1.debug_logging='0' | |
uci set sqm.eth1.verbosity='5' | |
uci set sqm.eth1.qdisc='cake' | |
uci set sqm.eth1.script='layer_cake.qos' | |
uci del sqm.eth1.ingress_ecn | |
uci del sqm.eth1.egress_ecn | |
uci del sqm.eth1.qdisc_really_really_advanced | |
uci del sqm.eth1.itarget | |
uci del sqm.eth1.etarget | |
# Apply changes and reload | |
uci commit | |
reload_config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment