由 cholin 在 01-03-2004 17:13 发表:
iptables怎样让局域网内的一台机器可以连接外网21端口,其他的机器都不能连?
这个规则应该怎么写呀?
由 szkingrose 在 01-04-2004 09:57 发表:
回复: iptables怎样让局域网内的一台机器可以连接外网21端口,其他的机器都不能连?
> quote:
>
> * * *
>
> 最初由 cholin 发表
>
> 这个规则应该怎么写呀?
>
> * * *
iptables -t nat -A FORWARD -s 192.168.0.222 -p tcp -m tcp --dport 21 -j ACCEPT
由 大熊宝宝 在 01-04-2004 12:11 发表:
呵呵 这样其他机器还上可以连的
请兄弟们正确发贴,把问题发到相关版块 发贴标题请简明扼要 谢谢大家配合.
新会员发贴前请学会搜索论坛 有可能你的问题已经有答案了
由 cholin 在 01-04-2004 12:24 发表:
谢谢,已经搞好啦
谢谢楼上的2位
由 bluejesica 在 01-06-2004 17:11 发表:
怎么搞好的,说出来听听啊,老规矩,把自己调试的步骤]经验说出来
学海无涯,回头也看不到岸
由 Snoopy 在 01-06-2004 17:27 发表:
iptables -A INPUT -p tcp -m tcp --dport 21 -j DROP
iptables -A INPUT -p tcp -m tcp -s 给它连的ip --dport 21 -j ACCEPT
And then in the evening light, when the bars of freedom fall
I watch the two of you in the shadows on the wall
How in the darkness steals some of the choices from my hand
Then will I begin to under
由 Snoopy 在 01-06-2004 17:29 发表:
要不就这样
iptables -t nat -A FORWARD -s 不给连的网段 -p tcp -m tcp --dport 21 -j DROP
iptables -t nat -A FORWARD -s 给它连的ip -p tcp -m tcp --dport 21 -j ACCEPT
And then in the evening light, when the bars of freedom fall
I watch the two of you in the shadows on the wall
How in the darkness steals some of the choices from my hand
Then will I begin to under
由 bluejesica 在 01-09-2004 13:23 发表:
哦,是我对楼主的说法理解错了,我看成其他的功能了,呵呵,不好意思啊,不过还是要谢谢pinksnoopy