proftpd如何绑定ip地址

由 franktom 在 06-21-2003 12:16 发表:

proftpd如何绑定ip地址

请问双网卡的服务器安装proftpd,如何只绑定一个地址,我的服务器老是提示我

unable to determine IP address of 'lfs'

我的系统是LFS,eth0:192.168.0.1 eth1:192.168.1.2


我爱linux www.5ilinux.com


由 lanmaster 在 06-21-2003 13:39 发表:


它可不可以先apache一样可以用listen eth0 OR eth1这样呢。

如果可以我想就可以了。因为它只监听那一个IP地址的请求(我也没有测试过,如有错误请指正)


成长中的菜鸟!

E-Mail:qcy_[email protected]

QQ :7118899


由 franktom 在 06-21-2003 22:33 发表:


好像不行!! apache是怎么做的?


我爱linux www.5ilinux.com


由 cnchin 在 06-26-2003 10:07 发表:


unable to determine IP address of 'lfs'<--在/etc/hosts和/etc/hostname里面加入你自己主机的名字IP对应项就ok.

如果你想在两个ip地址上都提供ftp服务,可以用bind选项设置.


由 cnchin 在 06-26-2003 10:13 发表:

例子

设置两ip两port的ftp服务

ServerName "Debian"

ServerType standalone

ShowSymlinks on

DefaultServer on

TimeoutNoTransfer 600

TimeoutStalled 600

TimeoutIdle 1200

DisplayLogin welcome.msg

DisplayFirstChdir .message

#此处port要设置为0

Port 0

MaxInstances 100

User nobody

Group nogroup

 1<virtualhost "192.168.0.1"="">   
 2  
 3ServerName "01 Server"   
 4  
 5Bind 192.168.0.1   
 6  
 7Port 2121   
 8  
 9Group nogroup   
10  
11User nobody   
12  
13De</virtualhost>
Published At
Categories with 服务器类
Tagged with
comments powered by Disqus