請問能限制使用open wabmail的IP或網域嗎?



贊助商連結


REN
2003-09-09, 11:01 PM
請問請問能限制使用open webmail的IP或網域嗎?
小弟想提升open wabmail的安全,能否限制必須由指定的IP才能連上我的open webmail呢?

贊助商連結


repsol
2003-09-10, 09:35 AM
對open webmail的那個目錄作allow ip的設定試看看
ex :
ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"

#
# "/usr/local/apache/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/usr/local/apache/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from xxx.xxx.xxx.xxx --> 這邊改變一下
</Directory>

REN
2003-09-10, 11:37 AM
感謝repsol兄的解答,小弟在openwebmail.conf.default中發現了幾行
allowed_serverdomain all
allowed_clientdomain all
allowed_clientip all

好像就是我要的東西了,試了一下 allowed_clientip 只能指定單一IP而不能用 192.168.0.0/24 ,看來我再試試repsol兄的作法了






最初由 repsol 發表
對open webmail的那個目錄作allow ip的設定試看看
ex :
ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"

#
# "/usr/local/apache/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/usr/local/apache/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from xxx.xxx.xxx.xxx --> 這邊改變一下
</Directory>

repsol
2003-09-10, 12:42 PM
最初由 REN 發表
感謝repsol兄的解答,小弟在openwebmail.conf.default中發現了幾行
allowed_serverdomain all
allowed_clientdomain all
allowed_clientip all

好像就是我要的東西了,試了一下 allowed_clientip 只能指定單一IP而不能用 192.168.0.0/24 ,看來我再試試repsol兄的作法了

openwebmail.conf.default 同一層目錄
有一個openwebmail.conf.help這個file
裡面有提到


allowed_clientip
-----------------------------------------------------------------------
This limits the clients accesses by their ip address
Only clients whose IP address matches these tokens from the beginning can
access the openwebmail system

Example:
allowed_clientip 140.116.72., 192.168.

ps: A valid client has to pass both domain and ip check.

應該是可行的
請檢查一下你設定的格式

REN
2003-09-10, 10:24 PM
原來要這樣設定,感恩啊