I have added this feature in my nginx_tcp_proxy_module. You can do it as a
reference:
https://github.com/yaoweibin/nginx_tcp_proxy_module/commit/fcacae8236444261d5e9301c144e085b706d5f32#diff-5
2011/10/19 mikiso <nginx-forum@nginx.us>
> Hi,
>
> I am running nginx 1.0.8 for mail proxy , and I would like to add access
> control feature(by IP address) to this proxy.
> For HTTP, there is http access module for this purpose, however mail
> module doesn't seem to have this feature.
> Do someone know how to implement this feature?
>
> I found ngx_tcpwrapper on https://launchpad.net/ngx-tcpwrappers ,
> but unfortunately this is also only for HTTP.
>
>
>
> Thanks and Regards,
> Soichiro
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,216892,216892#msg-216892
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx