ASUS AC86U

ASUS AC86U

2020-04-19. Category & Tags: Router, Ads, Asus, DNS

Firmwares #

官改、梅林改版下载:

http://koolshare.cn/forum-96-1.html

“改”=“+ Koolshare”

File Transfering #

SCP/WinSCP. (SFTP is not available by default)

or, install & use FileBrowser in koolshare app store.

Manually Install Koolshare App Offline #

  • upload to /tmp
  • tar xvzf …
  • rm …tar.gz (to get some space)
  • cd /tmp/my_app_name
  • sh my_installer.sh (usually, it will remove this installer folder by itself)

Warn: DO stop the FileBrowser app after transfering files.

Remove Advertisements/Ads via Asus Router #

by hosts #

vi /jffs/configs/dnsmasq.conf.add
addn-hosts=/jffs/configs/hosts
vi /jffs/scripts/services-start
/usr/sbin/cru a ScheduledAdHosts "0 4 * * * wget https://raw.githubusercontent.com/vokins/yhosts/master/hosts -O tmp --no-check-certificate && \
cat /jffs/configs/hosts.default > /jffs/configs/hosts && \
cat tmp >> /jffs/configs/hosts && \
cp /jffs/configs/hosts /etc/hosts && \
service restart_dnsmasq"

# see ref: /linux-init
echo -n '127.0.0.1 ' >> /jffs/configs/hosts && cat /proc/sys/kernel/hostname >> /jffs/configs/hosts # to avoid sudo waiting during network down time

(4 am daily)

for web http #

Adbyby

for web https #

KoolProxy (adding new root cert and some delay, not recommeded)

Refs:
https://www.chiphell.com/thread-1112333-1-1.html
https://www.cnblogs.com/h2zZhou/p/8733580.html

Static DHCP #

Get/Export by:
nvram get dhcp_staticlist > nvram-get-dhcp_staticlist.txt

Set/Import by:
nvram set dhcp_staticlist=<mac-address-1>ip-address-1>name-1<mac-address-2>ip-address-2>name-2...

ref

Flush ARP & DHCP #

# clear arp cache
ip neigh flush all

# forget DHCP releases
killall dnsmasq && \
rm /var/lib/misc/dnsmasq.leases && \
service restart_dnsmasq