Hello everyone,
I'm looking to replace an older Linksys E1200v2 router with Freshtomato installed on it with a better router that provides higher throughput on OpenVPN client connections and better WiFi reach. Therefore, I bought an RT-AC68U (ver. E1) and installed the latest version of Merlin on it (384.13).
One important bit of information. My ISP (cable) doesn't offer the option of cable modem (i.e. configuring the public IP address on the AC68U). Therefore, the public IP address needs to be on the cable router they provide.
As Merlin is based on Tomato, I'm assuming everything I have configured on my old router will be doable on the new one. However, I'm finding that most of what I need can't be configured through the GUI (at least I can't figure out how).
Therefore, I'm hoping you might help me with a few questions:
Also attached is a helpful diagram of the default bridges and VLANs I found here (originally for DD-WRT, but still helpful).
Thanks in advance!
Configuration:
## Configure bridges and VLANs
brctl delif br0 vlan1
brctl addif br0 vlan2
## Will changing the configuration of br0 mess up the default firewall configuration?
robocfg vlan 3 ports "3 4 5t"
robocfg vlan 1 ports "1 2 5t"
vconfig add eth0 3
ifconfig vlan3 up
brctl addbr br1
brctl addbr br2
brctl addif br1 vlan1
brctl addif br2 vlan3
ifconfig br1 up
ifconfig br2 up
## br0 - WAN, Wireless 2.4GHz, Wireless 5GHz
## br1 - LAN 1 and 2 (tun11)
## br2 - LAN 3 and 4 (tun12)
## Create IP addresses <-- can this be done through the web interface??
ip addr add 192.168.10.5/24 brd 192.168.10.255 dev br0
ip addr add 192.168.20.5/24 brd 192.168.10.255 dev br1
ip addr add 192.168.30.5/24 brd 192.168.10.255 dev br2
ip addr del 192.168.1.1/24 brd 192.168.1.255 dev br0
## Policy based routing (this is how it's configured on my Tomato router, but it doesn't work on the AC68U)
echo 500 BR1 >> /etc/iproute2/rt_tables
echo 600 BR2 >> /etc/iproute2/rt_tables
## Error message: "can't create /etc/iproute2/rt_tables: Read-only file system"
ip rule add iif br1 table BR1
ip rule add iif br2 table BR2
ip route add default dev tun11 table BR1
ip route add 192.168.10.0/24 dev vlan2 table BR1
ip route add default dev tun12 table BR2
ip route add 192.168.10.0/24 dev vlan2 table BR2
## Firewall
Haven't gotten around to this yet
I'm looking to replace an older Linksys E1200v2 router with Freshtomato installed on it with a better router that provides higher throughput on OpenVPN client connections and better WiFi reach. Therefore, I bought an RT-AC68U (ver. E1) and installed the latest version of Merlin on it (384.13).
One important bit of information. My ISP (cable) doesn't offer the option of cable modem (i.e. configuring the public IP address on the AC68U). Therefore, the public IP address needs to be on the cable router they provide.
As Merlin is based on Tomato, I'm assuming everything I have configured on my old router will be doable on the new one. However, I'm finding that most of what I need can't be configured through the GUI (at least I can't figure out how).
Therefore, I'm hoping you might help me with a few questions:
- Am I going about this the right way or is there an easier way to do it? (i.e. which parts of the configuration could I do through the web interface?)
- Should I assign router IP addresses to the bridge (i.e. br1) or the VLAN (i.e. vlan1)?
- On my Tomato-based router, I'm using policy based routing with iproute2. Is that the recommended approach on Merlin? (I seem to recall seeing somewhere that this could be implemented with iptables instead)
- If the answer to question 3 is yes, what's the right way to add some lines to /etc/iproute2/rt_tables?
- Any links / HOWTO's to configure DHCP relay?
- How can I configure DHCP servers on br1 and br2?
Also attached is a helpful diagram of the default bridges and VLANs I found here (originally for DD-WRT, but still helpful).
Thanks in advance!
Configuration:
## Configure bridges and VLANs
brctl delif br0 vlan1
brctl addif br0 vlan2
## Will changing the configuration of br0 mess up the default firewall configuration?
robocfg vlan 3 ports "3 4 5t"
robocfg vlan 1 ports "1 2 5t"
vconfig add eth0 3
ifconfig vlan3 up
brctl addbr br1
brctl addbr br2
brctl addif br1 vlan1
brctl addif br2 vlan3
ifconfig br1 up
ifconfig br2 up
## br0 - WAN, Wireless 2.4GHz, Wireless 5GHz
## br1 - LAN 1 and 2 (tun11)
## br2 - LAN 3 and 4 (tun12)
## Create IP addresses <-- can this be done through the web interface??
ip addr add 192.168.10.5/24 brd 192.168.10.255 dev br0
ip addr add 192.168.20.5/24 brd 192.168.10.255 dev br1
ip addr add 192.168.30.5/24 brd 192.168.10.255 dev br2
ip addr del 192.168.1.1/24 brd 192.168.1.255 dev br0
## Policy based routing (this is how it's configured on my Tomato router, but it doesn't work on the AC68U)
echo 500 BR1 >> /etc/iproute2/rt_tables
echo 600 BR2 >> /etc/iproute2/rt_tables
## Error message: "can't create /etc/iproute2/rt_tables: Read-only file system"
ip rule add iif br1 table BR1
ip rule add iif br2 table BR2
ip route add default dev tun11 table BR1
ip route add 192.168.10.0/24 dev vlan2 table BR1
ip route add default dev tun12 table BR2
ip route add 192.168.10.0/24 dev vlan2 table BR2
## Firewall
Haven't gotten around to this yet