On Fri, Jan 25, 2002 at 11:43:16AM +0530, Binand Raj S. wrote: > Hi, > > Has anyone heard of a tool that reads the output > of ipchains -L and regenerates the /sbin/ipchains > command line? ie, given the input > > Chain forward (policy ACCEPT): > target prot opt source destination ports > MASQ tcp ------ binand.cysphere.com news.cis.dfn.de any -> nntp > > this should generate the commands: > > /sbin/ipchains -P ACCEPT forward > /sbin/ipchains -A forward -p tcp --src binand.cysphere.com --dst > news.cis.dfn.de --dport nntp -j MASQ > > You get the idea - I am thinking of using such a tool to preserve > firewall status across reboots. A similar tool for iptables? > ---end quoted text---
Binand, Have'nt heard of anything of this type. About a year ago I came across a perl thing on freshmeat (IIRC, IPChains.pm). This has a simplified interface for manipulation of ipchains rules. It wont do the thing you are looking for but being a perl thing, can be hacked for your requirements. HTH Bish -- : ####[ Linux One Stanza Tip (LOST) ]########################### Sub : Konquerer (kde) LOST #146 Do you know that konqueror can do much more than web browsing? You can use the following URL schemes, and many more: tar: - to browse tar.gz or tar.bz2 files smb: - to browse Windows shares man: & info: - to browse man and info pages audiocd: - to browse audio CDs ####<[EMAIL PROTECTED]>######################################## : _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
