We just handle this via iptables on our deployments, if you're just
concerned about security rather than which interfaces get used, this will
allow you to control which IPs it can be accessed on:

-A INPUT -p tcp -s <source IP> --sport 1024:65535 -d <destination IP>
--dport <thrift port> -m state --state NEW,ESTABLISHED -j ACCEPT

2012/2/9 谢令 <[email protected]>

> Hi,
>
> I'm using thrift(v0.8.0) in C++ projects, but have some questions below,
> can anyone tell me:
>
> Q1:
> how to bind my server to a specific IP?
> (Or, why the servers(TServerSocket/TSimpleServer/TNonblockingServer) do
> not provide a parameter as IP info?)
>
> Q2:
> In the version 0.8.0, which IP(s) will the
> servers(TServerSocket/TSimpleServer/TNonblockingServer) bind to?
>
>
>
> thank you very much!
>
>
>
> 谢令
> 研发部 IMOS开发工程师

Reply via email to