GitXplorerGitXplorer
k

asus-vlan-script

public
0 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
2566db3d46ebe50505a0bd57cd2034acb240c3f8

feat: vlan support under asus-wrt router

kkis87988 committed 4 months ago
Verified
83d006eee506a0d40ec1329d75fb9e5633a62fc1

Initial commit

kkis87988 committed 4 months ago

README

The README file for this repository.

asus-vlan-script

Overview

Goal: Setup a isolate port(s) under the Asus-wrt router

Use case: I want to create a isolate networks under existing network enviroment

The Asus 3005 version+ support vlan nativily, but not all the router is supporting that

Quick Start

  1. copy all the script to /jffs/scripts
  2. execute below command
echo 'sh /jffs/scripts/vlan-start' > /jffs/scripts/services-start
echo 'sh /jffs/scripts/vlan-firewall-start' > /jffs/scripts/firewall-start
echo 'sh /jffs/scripts/vlan-nat-start' > /jffs/scripts/firewall-start
# below is configure DHCP assign IP to 192.168.150.0/24
touch /jffs/configs/dnsmasq.conf.add
cat <<EOF >> /jffs/configs/dnsmasq.conf.add
interface=br1
# DHCPv4 range: 192.168.150.2 - 192.168.150.254, netmask: 255.255.255.0
# DHCPv4 lease time: 86400s (1 day)
dhcp-range=br1,192.168.150.2,192.168.150.254,255.255.255.0,86400s
# DHCPv4 router (option 3): 192.168.150.1
dhcp-option=br1,3,192.168.150.1
EOF
service restart_dnsmasq

Referance and Thanks

  1. Renjie Wu's blog: https://wu.renjie.im/blog/network/ax88u-vlan/