!!急iptables 的参数能不能从文件中读取!?!

由 keiven 在 12-24-2003 12:40 发表:

!!急iptables 的参数能不能从文件中读取!?!

好象如下

iptables -t nat -A PREROUTING -s 61.189.. -d 61.189.. -p tcp --dport 80 -j DNAT --to 192.168.0.211

.....................................................^^^^^^这里的IP地址能不能从一个文件中读取出来 例如 -loadform ip.txt 有没有这样类似的参数


由 黯然销魂 在 12-24-2003 12:44 发表:


你做一个循环,读一个参数,执行一个iptable语句?。。

然后记得save语句,下次restore就可以了。。


-- Hacking is "an appropriate application of ingenuity.." --

--If Linux doesn't have the solution, you have the wrong problem.--

^^ LFS 511(/w udev) + BLFS CVS ^^

XOrg R681 + KDE 3.3.0


由 keiven 在 12-24-2003 12:45 发表:


不太明白,能不能给个例子?!


由 大熊宝宝 在 12-24-2003 12:53 发表:


请看一下我帖的iptables指南


请兄弟们正确发贴,把问题发到相关版块 发贴标题请简明扼要 谢谢大家配合.

新会员发贴前请学会搜索论坛 有可能你的问题已经有答案了


由 黯然销魂 在 12-

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus