2009年8月18号FX--linux中网段的表示方法
时间:2010-06-17 来源:linscora
l各种挂载方法:
NFS:
server1:/var/ftp/pub /mnt/server1 nfs defaults 0 0 Samba:
mount -t cifs //192.168.0.15/public /mnt/ -o username=redhat
//192.168.0.2/public /mnt cifs username=redhat%redhat 0 0
//192.168.0.2/public /mnt cifs credentials=/etc/samba/credentials.txt
vim /etc/samba/credentials
username=redhat
password=redhat Connect:缺省是拒绝
Connect:192.168.0.15 RELAY
格式:
Connect:192.168.0
Connect:example.com
From: 缺省是允许 不能用IP表示
From:[email protected] REJECT
To: 缺省是允许
To:[email protected] REJECT
from:cracker.org DISCARD
To:nobody@ REJECT linux中网段的表示方法:
一、Tcp Wrapper中表示网段的方法:
192.168.0. 192.168.0.0/255.255.255.0
.example.com 二、NFS
192.168.0.0/24 192.168.0.0/255.255.255.0
*.example.com
三、Samba中表示的方法:
192.168.0. 192.168.0.0/255.255.255.0 192.168.0.0/24
.example.com
四、sendmail中表示网段的方法:
192.168.0是/etc/mail/access中的写法。 192.168.0. 192.168.0.0/255.255.255.0 example.com
五、iptables中表示网段的方法:
192.168.0.0/24 192.168.0.0/255.255.255.0
六、http:
192.168.0.0/24 192.168.0.0/255.255.255.0 .example.com
*** 0.0.0.0/255.255.255.0的网段表示方法只在xinetd的telnet中不能使用,其它的服务都能使用。
NFS:
server1:/var/ftp/pub /mnt/server1 nfs defaults 0 0 Samba:
mount -t cifs //192.168.0.15/public /mnt/ -o username=redhat
//192.168.0.2/public /mnt cifs username=redhat%redhat 0 0
//192.168.0.2/public /mnt cifs credentials=/etc/samba/credentials.txt
vim /etc/samba/credentials
username=redhat
password=redhat Connect:缺省是拒绝
Connect:192.168.0.15 RELAY
格式:
Connect:192.168.0
Connect:example.com
From: 缺省是允许 不能用IP表示
From:[email protected] REJECT
To: 缺省是允许
To:[email protected] REJECT
from:cracker.org DISCARD
To:nobody@ REJECT linux中网段的表示方法:
一、Tcp Wrapper中表示网段的方法:
192.168.0. 192.168.0.0/255.255.255.0
.example.com 二、NFS
192.168.0.0/24 192.168.0.0/255.255.255.0
*.example.com
三、Samba中表示的方法:
192.168.0. 192.168.0.0/255.255.255.0 192.168.0.0/24
.example.com
四、sendmail中表示网段的方法:
192.168.0是/etc/mail/access中的写法。 192.168.0. 192.168.0.0/255.255.255.0 example.com
五、iptables中表示网段的方法:
192.168.0.0/24 192.168.0.0/255.255.255.0
六、http:
192.168.0.0/24 192.168.0.0/255.255.255.0 .example.com
*** 0.0.0.0/255.255.255.0的网段表示方法只在xinetd的telnet中不能使用,其它的服务都能使用。
相关阅读 更多 +