An open API service indexing awesome lists of open source software.

https://github.com/ravensystem/asuswrt-merlin

Well tested AsusWRT-Merlin Configurations and Options
https://github.com/ravensystem/asuswrt-merlin

asus asus-rog asus-routers asuswrt asuswrt-merlin router

Last synced: about 1 year ago
JSON representation

Well tested AsusWRT-Merlin Configurations and Options

Awesome Lists containing this project

README

          

# RavenSystem's AsusWRT-Merlin configuration

[![Donate](https://img.shields.io/badge/donate-PayPal-blue.svg)](https://paypal.me/ravensystem)

[![Twitter](https://img.shields.io/twitter/follow/RavenSystem.svg?style=social)](https://twitter.com/RavenSystem)

[![Chat](https://img.shields.io/discord/594630635696553994?style=social)](https://discord.gg/v8hyxj2)

This is the configuration from my AsusWRT routers, with [AsusWRT-Merlin firmware](https://www.asuswrt-merlin.net) installed.

I have tested different Asus router models, and I have experience developing some AsusWRT-Merlin Addons. My setup manages more than 70+ network connected devices (60+ wifi devices).

Check [AsusWRT-Merlin supported devices](https://github.com/RMerl/asuswrt-merlin.ng/wiki/Supported-Devices)

Under [Config](Config#main-router-configuration) you will find all config options and screenshots.

Remember to check [AMTM](https://diversion.ch) plugins and options, included with AsusWRT-Merlin.

Router VPN Server for Apple devices: [AAH: Always At Home](https://github.com/RavenSystem/AlwaysAtHome)

## Tips

Some scripts options to customize your router. Please, before read [AsusWRT-Merlin User Scripts](https://github.com/RMerl/asuswrt-merlin.ng/wiki/User-scripts) to know how they works.

### Check and customize SWAP

If your router has a SWAP file installed by [AMTM](https://diversion.ch), you can check and customize it.

To check it, run this command and see value:
```shell
cat /proc/sys/vm/swappiness
```

If value is `0`, or if you want to use a different value, run or add this line with your new value (`72` is an example)...
```shell
echo 72 > /proc/sys/vm/swappiness
```

... into this file...
```shell
/jffs/scripts/post-mount
```

... after line:
```shell
swapon /tmp/mnt/pendrive/myswap.swp # Added by amtm
```

### Remove Asus proprietary connection diagnostic tool

This is a service used to check router ports and show their status in WebUI. It is useless because under Tools menu you can see ports status, and can be disabled to save RAM.

To disable it, add this line...
```shell
service stop_conn_diag
```

... to the end of this file...
```shell
/jffs/scripts/services-start
```

... and restart router.

### Enable Link Aggregation to AiMesh node Ethernet Uplink

By default, only WAN port can be used as uplink to main router or core switch. But if your node supports Link Aggregation, you can use it as uplink.

#### Enable link aggregation in Aimesh node
- Under WebUI AiMesh Menu, select your AiMesh Node, Manage, and enable Link Aggregation. If this option is not available, you can stop here because your node doesn't support it.

#### Enable link aggregation in main router
- Under WebUI LAN Menu, select Switch Control tab, and enable Link Aggregation. If this option is not available, you can stop here because your main router doesn't support it.

#### Add custom script to node
- Enter to your node using SSH.
- Edit this file:
```shell
/jffs/scripts/init-start
```

- Add these commands to remove `eth3` (LAN2) and add `eth0` (WAN) to `bond0` (Link Aggregation Interface):
```shell
#!/bin/sh
ifconfig bond0 down
echo "-eth3" > /sys/class/net/bond0/bonding/slaves
brctl addif br0 eth3
brctl delif br0 eth0
ifconfig eth0 down
echo "+eth0" > /sys/class/net/bond0/bonding/slaves
ifconfig bond0 up
```

- Set file permissions:
```shell
chmod a+x /jffs/scripts/init-start
```

- Enable User Scripts:
```shell
nvram set jffs2_scripts=1
nvram commit
```

- Restart node.
- Connect main router LAN1 and LAN2 ports to node WAN and LAN1 ports.

#### Customize Link Aggregation Policy (Optional)

LACP Policy can be changed using:
```shell
echo 2 > /sys/class/net/bond0/bonding/xmit_hash_policy
```