论坛风格切换切换到宽版
  • 451阅读
  • 2回复

[问题求助]about a tcp_wrappers question [复制链接]

上一主题 下一主题
离线gbbgbb.
 
发帖
2003
C币
-60860
威望
359
贡献值
1
银元
-2
铜钱
4504
人人网人气币
0
只看楼主 倒序阅读 使用道具 楼主  发表于: 2009-05-01
i want to configure to allow .the ssh servi.ce .only from 192.168.0.0/24 excep.t 192.168.0.4,how can i carry out with tcp_wrappers?any cavalier can help me?学习
my way:
vi /etc/hosts..deny    健康
sshd:192.168.0. EXCEPT 192.1.68..0.4.

is that ok?


最佳答案maluyao
http://upload.bbs.csuboy.com/Mon_1004/126_6933_c2515fb4e40125e.gif[/img]这样才可以.学习
/etc/hos.ts.deny学习
sshd:ALL

/etc/hosts..allow电脑
sshd:192.168.0.0/255.255.255.0 EXCEP.T. 192.168.0.4.


评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
离线妖童.
发帖
2015
C币
-235496
威望
383
贡献值
1
银元
-2
铜钱
4444
人人网人气币
0
只看该作者 沙发  发表于: 2010-04-13
Re:about
这样才可以.
/etc/hosts.deny
sshd:ALL

/etc/hosts.allow
sshd:192.168.0.0/255.255.255.0 EXCEPT 192.168.0.4


离线03112.
发帖
2019
C币
-198744
威望
384
贡献值
1
银元
-1
铜钱
4562
人人网人气币
0
只看该作者 板凳  发表于: 2010-04-13
Re:about


QUOTE:原帖由 ad12345 于 2007-3-2 10:29 发表于 1楼  
i want to configure to allow the ssh service only from 192.168.0.0/24 except 192.168.0.4,how can i carry out with tcp_wrappers?any cavalier can help me?
my way:
vi /etc/hosts.deny
sshd:192.168 ...


既然有这样的想法,还是自己亲自实践一下.

快速回复
限100 字节
如果您在写长篇帖子又不马上发表,建议存为草稿
 
上一个 下一个