Missing command?

Discussion in 'Tomato Firmware' started by affer, Jun 4, 2007.

  1. affer

    affer LI Guru Member

    Hmmm... a small mystery here. Where is the iptables-save command?? Since the iptables-restore command is available, it makes no sense that the -save option is not. iptables-save is a standard part of the iptables 1.3.7 package. Can anyone point out what I am doing wrong? A quick search of this forum shows that this seems to have been a long-standing problem, but no one has ever posted any solutions. Has anyone else been able to make iptables-save work?

    I'd like to use iptables-save to backup & restore the statistical traffic counters when rebooting the router. Jon has made it easy to backup the basic (total traffic) stats. But it would be nice to backup all of the ruleset counters when you are running custom scripts that break down the traffic into more sub-categories.

    Tomato v1.07.1039

    BusyBox v1.2.2. (2007.05.06-15:48+0000) Built in shell (ash)
    Enter 'help' for a list of built in commands.

    # iptables-save -h
    -sh: iptables-save: not found
    # iptables-restore -h
    Usage: iptables-restore [-b] [-c] [-v] [-t] [-h]
    [ --binary ]
    [ --counters ]
    [ --verbose ]
    [ --test ]
    [ --help ]
    [ --noflush ]
    [ --modprobe=<command> ]
  2. affer

    affer LI Guru Member

  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