看板FreeBSD
標 題Re: [問題] 請問如何用防火牆限制telnet的登入ip?
發信站貓空行館 (Thu Sep 29 16:50:44 2005)
轉信站ptt!ctu-reader!ctu-peer!news.nctu!news.cis.nctu!smallcatBBS
※ 引述《[email protected] (PP )》之銘言:
> ※ 引述《[email protected] (randy Randy)》之銘言:
> : kernel 有加入 IPFIREWALL 的選項吧?
> : telnetd? 用 sshd 吧
> : 至於限制方法可以參考 man ipfw
> : ipfw add pass tcp from 允許的IP to me 23
> : ipfw add deny tcp from any to me 23
> 感謝謝大大的回答…
> 目前我的rc.firewall裡設的rule為
> /sbin/ipfw add pass tcp from IP to me 23
> /sbin/ipfw add deny all from any to any
> 可是我設的ip還是無法使用telnet,
> 是因為下面那一行把所有的擋掉了嗎?還是?
> ----------
> 用telnet的原因是要試看看是否能只讓固定ip使用telnet而其他的都能讓
> 防火牆擋掉…^^"
動用到ipfirewall設定應該會稍稍麻煩吧?
我記得freebsd中的inetd有支援使用TCP Wrapper...
不能直接用/etc/hosts.allow中設限嗎?
telnetd : xxx.xxx.xxx.xxx/?? : allow
telnetd : all :deny
--
╭ Fr
om: sw169-250-138.adsl.seed.net.tw ◎────────
──╮
└─
─◎ Origin:政大資科˙貓空行館 bbs.cs.nccu.edu.tw ┘