]>
git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/misc-progs/getipstat.c
1 /* IPFire helper program - IPStat
3 * Get the list from IPTABLES -L
11 #include <sys/types.h>
21 safe_system("/sbin/iptables -L -v -n > /srv/web/ipfire/html/iptables.txt");
22 safe_system("/sbin/iptables -L -v -n -t nat > /srv/web/ipfire/html/iptablesnat.txt");
23 safe_system("/sbin/iptables -t mangle -L -v -n > /srv/web/ipfire/html/iptablesmangle.txt");
24 safe_system("chown nobody.nobody /srv/web/ipfire/html/iptables.txt /srv/web/ipfire/html/iptablesnat.txt /srv/web/ipfire/html/iptablesmangle.txt");