![]() |
請問能限制使用open webmail的IP或網域嗎? 請問請問能限制使用open webmail的IP或網域嗎? 小弟想提升open wabmail的安全,能否限制必須由指定的IP才能連上我的open webmail呢? |
對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兄的解答,小弟在openwebmail.conf.default中發現了幾行 allowed_serverdomain all allowed_clientdomain all allowed_clientip all 好像就是我要的東西了,試了一下 allowed_clientip 只能指定單一IP而不能用 192.168.0.0/24 ,看來我再試試repsol兄的作法了 [QUOTE][i]最初由 repsol 發表[/i] [B]對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> [/B][/QUOTE] |
[QUOTE][i]最初由 REN 發表[/i] [B]感謝repsol兄的解答,小弟在openwebmail.conf.default中發現了幾行 allowed_serverdomain all allowed_clientdomain all allowed_clientip all 好像就是我要的東西了,試了一下 allowed_clientip 只能指定單一IP而不能用 192.168.0.0/24 ,看來我再試試repsol兄的作法了 [/B][/QUOTE] 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. 應該是可行的 請檢查一下你設定的格式 |
原來要這樣設定,感恩啊 |
| 所有時間均為 +8。現在的時間是 12:17 AM。 |
| XML | RSS 2.0 | RSS |
本論壇所有文章僅代表留言者個人意見,並不代表本站之立場,討論區以「即時留言」方式運作,故無法完全監察所有即時留言,若您發現文章可能有異議,請 email :[email protected] 處理。