On my server (FreeBSD 9.2-RELEASE) I have several aliased IP addresses from one subnet:
192.168.0.1/24
192.168.0.2
192.168.0.3
And I am wondering how to correctly detect to wich particular IP a client is connecting to (the remote host IP - src-ip - is known)?
The main problem is that a client can already be connected to one IP and I want to know whether it is connecting to another IP-address.
The final goal is to accept or deny a connection based on the username (it is known) and dst-ip of client.