egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Ok.. I give up, and I'm waving the white flag

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
digilink
Voice


Joined: 26 Jun 2011
Posts: 1

PostPosted: Sun Jun 26, 2011 9:54 pm    Post subject: Ok.. I give up, and I'm waving the white flag Reply with quote

I've been trying to get my bot going for the better part of a week and it's just not working out for me and I'm going crazy trying to make it work.

Here's my setup:
dedicated VPS server
I use ZNC to connect my clients, Eggdrop is by itself. ZNC and Eggdrop are latest versions compiled from source. I connect to the IRC networks I'm on via IPv6 when possible, and ssl on the server and client side. IPv4 and IPv6 stacks are both protected with iptables, by default all outbound traffic is allowed.

As for Eggdrop... it is connected to the IRC network as a normal user (not through the bouncer), non-ssl. If I attempt to connect via DCC, it fails, whether or not I'm through my bouncer or as a standalone user. However, it will connect if I use /ctcp botnick chat as a standalone user, but not through the bouncer. I can also telnet to the bot on the port I have specified for it.

I've eliminated the firewall, bouncer, etc. for troubleshooting, but the problems remain persistent. I use mIRC most of the time for a client, and I have connected from 2 different networks with the same results.

If anyone can shed any light on this, it would be greatly appreciated.
Back to top
View user's profile Send private message
arfer
Master


Joined: 26 Nov 2004
Posts: 436
Location: Manchester, UK

PostPosted: Fri Jul 08, 2011 9:18 pm    Post subject: Reply with quote

You are not alone in your issues with DCC chat. I'm afraid I can't respond with specifics regarding your dedicated VPS server because I don't use one, but I can give some hints at the type of problem that can occur.

My setup is a broadband connection through a router to several PCs, some wired and some wireless. I also usually use mIRC to access IRC on one of the wired PCs.

If I use /ctcp botnick chat or telnet to access the eggdrop (running on an external shell) my router seems capable of dealing with at least one thing without my intervention. Specifically, it directs the response to the PC that made the request.

This is not the case for DCC chat. The chat request is initiated over whatever ports are set in mIRC for DCC chat (in my case 10051 through 10060). The bot tries to respond but the router does not know which PC to send the response to.

Solution :-

Ensure that the PC I use for IRC has a reserved internal IP address on the router (static rather that simply chosen by the routers DHCP server). Then setup a virtual server on the router to direct incoming traffic on those same DCC chat ports to this reserved static internal IP address.

My router now knows which machine to send the response to and DCC chat functions as expected.

I hope this offers up some clues.
_________________
I must have had nothing to do
Back to top
View user's profile Send private message
tamouse
Voice


Joined: 20 Jul 2011
Posts: 2

PostPosted: Wed Jul 20, 2011 12:44 am    Post subject: Reply with quote

I think all you need to do is set up the router to port forward a set of ranges to the computer you are initiating the DCC chat request from.
Back to top
View user's profile Send private message
arfer
Master


Joined: 26 Nov 2004
Posts: 436
Location: Manchester, UK

PostPosted: Wed Jul 20, 2011 3:00 am    Post subject: Reply with quote

I have recollections of struggling with this problem several years ago. In particular I couldn't get simple port forwarding to work. I now have a modern fast router and as confirmation I switched off the DCC virtual server and installed port forwarding as you suggested. It doesn't work.

I know I tried to study the technical details relating to this problem and the concensus was that both port forwarding and port triggering is required for DCC to function (perhaps some routers do both simultaneously). I resolved the problem as explained above.

This is why DCC gives so many people so much hassle.
_________________
I must have had nothing to do
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber