Hi, when opening 'iptables.cgi', three text files are created through '/usr/local/bin/getipstat' in directory '/srv/web/ipfire/html'. These are 'iptables.txt', 'iptablesmangle.txt' and 'iptablesnat.txt', see line 47 in '/srv/web/ipfire/cgi-bin/iptables'. After closing 'iptables.cgi', these three files are not needed anymore and should be deleted by the last three lines (437-439) in 'iptables,cgi': ... system(rm -f "/srv/web/ipfire/html/iptables.txt"); system(rm -f "/srv/web/ipfire/html/iptablesmangle.txt"); system(rm -f "/srv/web/ipfire/html/iptablesnat.txt"); ... This doesn't work, files stay where they are, nothing happens. Changing the code to: ... unlink("/srv/web/ipfire/html/iptables.txt"); unlink("/srv/web/ipfire/html/iptablesmangle.txt"); unlink("/srv/web/ipfire/html/iptablesnat.txt"); ... had no effect, either - '/var/log/httpd/error_log' says: ... cannot unlink '/srv/web/ipfire/html/... : Permission denied, referer: https:... ... Same things seem to happen in '/srv/web/ipfire/cgi-bin/guardian.cgi', line 986 and line 1022-1024. Best, Matthias
Suggested solution: For 'IPTables'-GUI: http://git.ipfire.org/?p=people/mfischer/ipfire-2.x.git;a=commit;h=bf1985fae5baca327fcded31264f45638442f02e For 'guardian': http://git.ipfire.org/?p=people/mfischer/ipfire-2.x.git;a=commit;h=c33f51684c9c7c4108eba1914a2f225de5845b5d Best, Matthias
Guardian: http://git.ipfire.org/?p=ipfire-2.x.git;a=commit;h=d68ead3decfdcc4ca4a1413e33f3c47270799836 IPTables: http://git.ipfire.org/?p=ipfire-2.x.git;a=commit;h=77cdccf4c0a2b1c0a2b8d6e4aab86fbcbd5439b9 Best, Matthias