iptables.c changes submitted argv value
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 3 lines · Sascha
Quoted 1 line
The recommended method for doing this is using iptables-restore via a pipe from your daemon.
That's not the point. I'm developing on an embedded device and i have no space for
iptables-store.c,iptables-restore.candiptables.c.
All you need is iptables-restore. It has all functions of iptables plus more and is very well suited for batch or daemon operations. What iptables-restore is is a efficient batch interface using the same syntax as iptables (well, it is even the same code so..)
libiptc is considered private to iptables/iptables-save/iptables-restore and is not meant to be used outside these applications.
Regards
Henrik
Quoted 5 lines · Henrik Nordstrom
Quoted 1 line · Sascha
That's not the point. I'm developing on an embedded device and i have no space for
iptables-store.c,iptables-restore.candiptables.c.All you need is iptables-restore. It has all functions of iptables plus more and is very well suited for batch or daemon operations. What iptables-restore is is a efficient batch interface using the same syntax as iptables (well, it is even the same code so..)
You probably want to have iptables still for debugging/diagnostics. If so, get the latest version of iptables from CVS and enable DO_MULTI. This combines all three programs into the one binary.
Signature · 1 line
Philip Craig - SnapGear, A CyberGuard Company - http://www.SnapGear.com
Quoted 6 lines
You probably want to have iptables still for debugging/diagnostics. If so, get the latest version of iptables from CVS and enable
DO_MULTI. This combines all three programs into the one binary.
Additionally if you need to save space, you can use the strip utility:
iptables (orig) 64486 bytes
#strip -s iptables
iptables (stripped) 56612 bytes
Yea! 87.8% of the original size!
(I used gcc 3.4.1 2004-6-11 on iptables-1.2.11 2004-8-12 snapshot)
There are a number of other ways to easily cut the size down much smaller and keep the same functionality.