Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
DCC file send / chat issues (IP variables) #413
Even respecting all of the config-file notes about setting nat-up / listen-addr / vhost4 & vhost6 / prefer-upv6. and my-ip, there's one scenario that isn't mentioned:
When a bot is behind a router (NAT) on a single IP (think: home network on a router), while DCC CHAT can be mitigated (somewhat) with the proper combination of variables, DCCSEND (file sending) does not obey this fully!
DCCSEND will obey $::net-ip only.
[s->] PRIVMSG Domino :�DCC SEND leather_wear.txt 128129XXXX 23710 2351
This LONGIP resolves to my WAN IP address (set in $::nat-ip). The only way to get the bot to send directly to me, successfully, is:
(1) set $::nat-ip to the bot's LAN address
(2) with $::nat-ip set to WAN address
No combination works for all circumstances.
I'm a little more confused over what the problem is now, then - there are some networking configuration tricks that need to happen if you're both on the same LAN, but if it outside your LAN, nat-ip should be set to the bot's WAN ip, port forwarding should configured to allow to the reserved portrange.
So, for clarity, this is how I see it should be working, on a bot not on your LAN, with nat-ip set to WAN, and the bot's router properly set to port forward the reserved portrange:
And again, this will not be true if the bot resides on the same LAN as you, this is only for a bot behind a NAT on a different network. Is everything I listed above true for you on this scenario? Thanks