# allow all ssh traffic
SSHD : ALL : ALLOW
# allow specific http
HTTP: 192.168.1.253/255.255.255.0
# allow specific https
HTTPS: 192.168.1.253/255.255.255.0
编辑/etc/hosts.deny拥有
# have console access to your system before putting this in hosts.deny
# you have been warned
# this will disable all traffic, and require explicit definition in hosts.allow for **anything** to work
ALL : ALL
选项1:拔下系统
选项 2:使用tcp_wrappers
编辑
/etc/hosts.allow
拥有编辑
/etc/hosts.deny
拥有man tcpd了解更多信息。