sockets and multiple interfaces

Sean Hinde Sean.Hinde@REDACTED
Thu Nov 30 20:33:37 CET 2000


> > Option {ip, Ipddr} will bind the socket to the
> > interface which has ipaddress IpAddr.
> >
> Use the new name  {ifaddr, Ipaddr} instead !!!

It would also be a nice feature to be able to restrict access to a set of
originating IP adresses or address ranges (as a basic security mechanism).
I've no idea if or how this is supported by the underlying OS.

Some nice option like {accept_from, [{10,1,2,3}, {10,2,0,0}]} would do it :)

In my application at the moment I accept the connection and if it is not
from an allowed address disconnect it immediately. I have seen an unfriendly
client doing retries as fast as it can running on a very fast machine knock
a node over.

Views? Feasibility?

- Sean

This email (including attachments) is confidential.  If you have received
this email in error please notify the sender immediately and delete this
email from your system without copying or disseminating it or placing any
reliance upon its contents.  We cannot accept liability for any breaches of
confidence arising through use of email.  Any opinions expressed in this
email (including attachments) are those of the author and do not necessarily
reflect our opinions.  We will not accept responsibility for any commitments
made by our employees outside the scope of our business.  We do not warrant
the accuracy or completeness of such information.

More information about the erlang-questions mailing list