[Solved] Cannot Access ONU in Rmerlin Can Do in Tomato

  • ATTENTION! As of November 1, 2020, you are not able to reply to threads 6 months after the thread is opened if there are more than 500 posts in the thread.
    Threads will not be locked, so posts may still be edited by their authors.
    Just start a new thread on the topic to post if you get an error message when trying to reply to a thread.

Toink

Occasional Visitor
Setup:
FTTH Optical Network Unit (ONU) is set to bridge mode with IP address 192.168.0.1

Asus Router has IP address: 192.168.1.1

OBJECTIVE: I need to access the ONU from my computers connected to the Asus router.

I've had a Linksys router flashed with Tomato. I can always access the ONU by adding this script in the firewall setting of Tomato for years now:

iptables -I POSTROUTING -t nat -o vlan1 -d 192.168.0.0/30 -j MASQUERADE
ip addr add 192.168.0.2/30 dev vlan1 brd +


But when I add the same script in 'firewall-start' in RMerlin, it won't work:

#!/bin/sh

iptables -I POSTROUTING -t nat -o vlan1 -d 192.168.0.0/30 -j MASQUERADE
ip addr add 192.168.0.2/30 dev vlan1 brd +


Script.jpg


I can replicate this by switching from my Linksys router and my current Asus router.

Can someone help, with the correct way to do it, please? Thanks!
 
Last edited:

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top