I am playing with netfilters. I am trying to create a netfilter hook which will do basic NAT operation.. so the incoming TCP port and IP address will be mapped to a different IP and a port number. My question is how do I find a port number which is not used and whatever port number I am selecting, it should be blocked for further use(since this port is used in NAT translation)? Any help is appreciated!