Hello

I would like to preserve my byte counters over a restart. However, the
following: 
date ; iptaccount -l net-loc
date ; shorewall save -C
date ; shorewall restart -C
date ; iptaccount -l net-loc

returns:
# ./batch 
*****date ; iptaccount -l net-loc *****
Mon Aug  6 11:53:47 AEST 2018

libxt_ACCOUNT_cl userspace accounting tool v1.3

Showing table: net-loc
Run #0 - 1 item found
IP: 192.168.1.26 SRC packets: 64 bytes: 62623 DST packets: 87 bytes:
6533 Finished.
*****date ; shorewall save -C *****
Mon Aug  6 11:53:47 AEST 2018
   Currently-running Configuration Saved to /var/lib/shorewall/restore
*****date ; shorewall restart -C *****
Mon Aug  6 11:53:48 AEST 2018
Stopping Shorewall....
Processing /etc/shorewall/stop ...
Processing /etc/shorewall/tcclear ...
Preparing iptables-restore input...
Running /sbin/iptables-restore...
IPv4 Forwarding Enabled
Processing /etc/shorewall/stopped ...
done.
Starting Shorewall....
Initializing...
Processing /etc/shorewall/init ...
Processing /etc/shorewall/tcclear ...
Setting up Route Filtering...
Setting up Martian Logging...
Setting up Accept Source Routing...
Setting up Proxy ARP...
Preparing iptables-restore input...
Running /sbin/iptables-restore ...
IPv4 Forwarding Enabled
Processing /etc/shorewall/start ...
Processing /etc/shorewall/started ...
done.
*****date ; iptaccount -l net-loc *****
Mon Aug  6 11:53:48 AEST 2018

libxt_ACCOUNT_cl userspace accounting tool v1.3

Showing table: net-loc
Run #0 - 0 items found
Finished.

That is, my byte counters appear to get
into /var/lib/shorewall/restore-iptables but not out again. They are
not preserved. What am I doing wrong?

Regards

Fog Watch

shorewall dump > https://tinyurl.com/y7kwydr7
# shorewall version
5.2.0.4

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Shorewall-users mailing list
Shorewall-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to