1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

3g is up but not route to vlan

Discussion in 'Tomato Firmware' started by goon86, Dec 6, 2010.

  1. goon86

    goon86 Networkin' Nut Member

    hi ,
    my version is tomato 1.28. usb modem pppd is up and ping ok ,but computers in vlan can't ping through 3g ppp0.

    I do as http://www.dd-wrt.com/wiki/index.php/Cellular_Phone/USB_Modem_as_WAN_connection,
    add this iptables rule,but not work
    iptables -A FORWARD -i br0 -o ppp0 -j ACCEPT
    iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

    #cat /proc/sys/net/ipv4/ip_forward
    1

    / # iptables -L
    Chain INPUT (policy DROP)
    target prot opt source destination

    DROP all -- anywhere 192.168.0.148
    DROP all -- anywhere anywhere state INVALID
    ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
    ACCEPT all -- anywhere anywhere
    ACCEPT all -- anywhere anywhere

    Chain FORWARD (policy DROP)
    target prot opt source destination
    ACCEPT all -- anywhere anywhere
    DROP all -- anywhere anywhere state INVALID
    TCPMSS tcp -- anywhere anywhere tcp flags:SYN,RST/SYN TCPMSS clamp to PMTU
    ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
    wanin all -- anywhere anywhere
    wanout all -- anywhere anywhere
    ACCEPT all -- anywhere anywhere
    ACCEPT all -- anywhere anywhere

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination

    Chain wanin (1 references)
    target prot opt source destination

    Chain wanout (1 references)
    target prot opt source destination
    / #

    Could you tell me howto do? thanks alot.
     

Share This Page