What's new

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

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Toink

Regular Contributor
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:

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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