I am running opendchub for people behind a NAT. What
I need to do is write a script that can determine what
the NAT user's IP is and do the following with the script:
Very least:
-Auto kick the user based on the user's IP inside the
NAT, rather than banning the whole NAT
-Of course, unbanning those
(maybe easier to implement the usage of $ban and/or
$unban)
Desirable Features:
-Keep a running log of people who were connected from
an IP inside the NAT
-Find a user based on the internal IP while in the main
chat or talking to the script
I've done some research observing the included scripts
odc put in its package and I found that the way to
determine the internal IP of a user would be to
$ConnectToMe or $RevConnectToMe. However, when
looking at the data received, I see that it includes the
port, which is information I should parse it out.
Any ideas/suggetions would be appreciated... Thanks!