iptables-save

Discussion in 'Tomato Firmware' started by gawd0wns, Feb 21, 2008.

  1. gawd0wns

    gawd0wns Network Guru Member

    Has anyone managed to get iptables-save to work with Tomato?
     
  2. gawd0wns

    gawd0wns Network Guru Member

    I have been trying pre-compiled binaries, and I also tried compiling iptables to run (as DO_MULTI=1), with no success.... The only version of iptables-save I got to run (without errors) appears to be a pre-compiled version for openwrt whiterussian 0.9 rc5. (http://downloads.openwrt.org/whiterussian/rc5/packages/iptables-utils_1.3.3-2_mipsel.ipk), though it didn't export rules because the versions differed (v1.3.7 with Tomato 1.14, vs iptables 1.3.3 for whiterussian 0.9). v1.3.7 for kamikaze doesn't run.


    Output:

    # ./iptables-save > /tmp/ip/a
    iptables-save: target `DNAT' v1.3.7 (I'm v1.3.3).
    # ./iptables-save
    # Generated by iptables-save v1.3.3 on Sun Feb 24 14:35:22 2008
    *nat
    :pREROUTING ACCEPT [3778:778404]
    :pOSTROUTING ACCEPT [19:4662]
    :OUTPUT ACCEPT [55:6983]
    -A PREROUTING -d 192.168.1.0/255.255.255.0 -i vlan1 -j DROP
    iptables-save: target `DNAT' v1.3.7 (I'm v1.3.3).
    -A PREROUTING -d 99.999.999.999 -p icmp -j DNAT #

    Any thoughts?
     
  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