Menu

#41 IP's from NAT users

open
nobody
None
5
2005-05-16
2005-05-16
Anonymous
No

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!

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.