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?
>
> Binand

can u use the ipchains or iptables save feature in redhat 7.1?
for eg.
first create rules in rc.masq, then,
$ ./rc.masq
$ /etc/rc.d/init.d/ipchains save

This saves u're rules in /etc/sysconfig/ipchains
Similar for iptables

--
arc_of_descent
 

_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to