Starting with version 8, FreeBSD supports the IP_BINDANY socket option, which is indicated on the manual page:
If the IP_BINDANY parameter is included in SOCK_STREAM, SOCK_DGRAM, or SOCK_RAW, you can bind (2) to any address that is not even bound to any available network interface in the system. This functionality (in combination with special firewall rules) can be used to implement transparent proxies. PRIV_NETINET_BINDANY privilege is required to install this option.
Is it possible to write a Java program that can use this functionality? I checked the SocketOptions docs and obviously does not list this option. So is there a workaround?
taking into account,
Rajah
source
share