RT-N12 B1 FW Tomato can't access modem

Discussion in 'Tomato Firmware' started by sonicnan, Nov 24, 2011.

  1. sonicnan

    sonicnan Addicted to LI Member

    WRT54GL can access modem, I copy script config init and Firewall to RT-N12
    can't access modem FW = Version 1.28 RAF by shibby (1.28.0000 MIPSR2-079V K26 VPN)

    Init
    sleep 20;ip addr add 192.168.0.2/30 dev vlan1 brd +
    Firewall
    iptables -t nat -I POSTROUTING -o vlan1 -d 192.168.0.1/30 -j MASQUERADE

    AND
    Init
    sleep 10;add 192.168.0.2/30 dev $(nvram get wan_ifname) brd +

    Firewall
    iptables -I POSTROUTING -t nat -o $(nvram get wan_ifname) -d 192.168.0.1/30 -j MASQUERADE

    i can ping 192.168.0.2
    menu Routing have Route Table 192.168.0.0 255.255.255.252
    can't ping 192.168.0.1

    Help Me!!!

    Thanks
     
  2. sonicnan

    sonicnan Addicted to LI Member

    init
    sleep 5;ip addr add 192.168.0.2/30 dev $(nvram get wan_ifname) brd +

    Firewall
    iptables -t nat -I POSTROUTING -o $(nvram get wan_ifname) -d 192.168.0.1/30 -j MASQUERADE
    iptables -A FORWARD -i $(nvram get lan_ifname) -o $(nvram get wan_ifname) -j ACCEPT

    For Asus RT-N12 :D
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice