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 

DCC Problem, completely baffled.

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


Joined: 08 Sep 2010
Posts: 61

PostPosted: Fri Jan 14, 2011 12:59 am    Post subject: DCC Problem, completely baffled. Reply with quote

Eggdrop version: v1.6.19 + eggdrop-1.6.19-ssl_and_md5_and_thread-durex.patch

Hey all! I'll appreciate greatly, any support or idea that anyone can offer on this problem.. is quite strange.

I'll go ahead and do /ctcp <bot> chat .. The bot DCC Chat's me.. I accept it, I login to the bot's partyline.. Everythings good right? Yup!

AH! Thats what you think. If I stay active, by doing various commands on the bot, I don't have any problems. However, it seems if i'm idle for say, 10-15 minutes I loss connection. However, it doesn't tell me the DCC was closed until I a command after being idle for X amount of time.

In mirc options, Connect > Options > Advanced .. DCC is checked, ports are from 1024 -> 5000. On my bot I have, "listen 62921 users" .. I'm behind a rounter so i also have:

set my-ip "192.168.1.3"
set nat-ip "<my real OUTSIDE ip>"

On my router, I have setup port forwarding for 62000-62500 and 1024-5000 and they are all forwarded to the server at my house, 192.168.1.3

I'm completely baffled at this and I'll fell really dumb if its a stupid question. I've actually been hesitant to post here.. out of fear of being ridiculed. Very Happy

Thanks to any and all that reply!
Back to top
View user's profile Send private message
hm2k
Halfop


Joined: 11 Sep 2006
Posts: 57
Location: UK

PostPosted: Fri Jan 14, 2011 9:50 am    Post subject: Reply with quote

Why aren't you using eggdrop 1.6.20?
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Jan 14, 2011 1:20 pm    Post subject: Reply with quote

Hi kenh83,
Sounds to me like it's an issue with your router... Since it's doing NAT, it has to keep track of current sessions (established tcp connections and others). Most firmwares does this by using a States-table, which is refreshed whenever a new packet passes through the router. Older (no traffic for a while) sessions are dropped from the States-table, in order to make room for newer sessions.
If a state is dropped for a still-established session, your router will then have no information where or how to forward inbound packets to the end system (port forwarding generally only appies to SYN-packets - connection requests), so any further packets will be dropped. Also, no TCP RST or ICMP Destination Unreachable packets can be forwarded to the client (to signal that the connection was closed or lost), as there once again is no information available to identify the session anymore.

Depending on how advanced control you've got of your router, you might be able to increase the lifetime of States, but other than that, the only thing else you could do is to keep traffic over the connection to refresh the State...
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Fri Jan 14, 2011 2:03 pm    Post subject: Reply with quote

nml375:

For what it is worth:

I've experienced the same thing, some time ago. I just lived with it, and never reported it.

Normally now, it doesn't happen. In other words, I can now DCC chat one of my bots, and leave it logged into the partyline for hours, and the connection will still be good. Almost all the time, anyway... occasionally it will still die.

What has changed?

Nothing on my end. Same DSL service, same little DSL "modem that is also a router"... no config changes to it.

What changed... that I can recall... is the bot's server... and OS.
I'm pretty sure that the bot that did the dropping most often, back then, was on a Windows shell.
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Jan 14, 2011 2:38 pm    Post subject: Reply with quote

Hi willy,
Keep in mind that different OS'es implement their IP-stacks differently; especially when it comes to the SO_KEEPALIVE sockopt.

That said, tracking down these issues is rarely trivial due to the numerous factors in play; though thankfully not that common.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Fri Jan 14, 2011 2:45 pm    Post subject: Reply with quote

nml375 wrote:
Hi willy,
Keep in mind


I haven't got a clue ... ... I'll believe you.
heheh


Quote:

that different OS'es implement their IP-stacks differently; especially when it comes to the SO_KEEPALIVE sockopt.
...


ditto.

Smile
Back to top
View user's profile Send private message
kenh83
Halfop


Joined: 08 Sep 2010
Posts: 61

PostPosted: Fri Jan 14, 2011 2:47 pm    Post subject: Reply with quote

hm2k: because the ssl patch by rootie or whatever that is available here does not work. It compiles and everything, but when starting the eggdrop I get an error and it will not run. SSL is a requirement and is not optional.

nml375: I've got a linux router running DD-WRT v24-sp2 (10/10/09) micro (SVN revision 13064)... any ideas on any more specific options for my router that I could try?


EDIT and added bonus. This happens on all eggdrops, whether its on my personal server, a shell account i've got and even on this linux vps i have. So I guess its likely a router issue.. just kind of looking for some sort of answers and most people here are pretty intelligent so thats why i posted here Smile
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Jan 14, 2011 3:09 pm    Post subject: Reply with quote

Hi kenh83,
That sounds like a reasonable conclusion, even though DD-WRT is usually considered one of the more stable firmwares out there.

Try this though:
In your webadmin interface, head to the Administration->Management page
Check the values of the "IP Filter Settings"; especially the Max Ports and TCP Timeout.
Increasing these values will cause your router to use more memory, but should reduce the dropped connections. See if you can't find a combination of values that works out for you.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
kenh83
Halfop


Joined: 08 Sep 2010
Posts: 61

PostPosted: Fri Jan 14, 2011 3:33 pm    Post subject: Reply with quote

nml375:
Maximum Ports: 4096
TCP Timeout (in seconds): 300

According to the page, the maximum port is 4096.

I've never changed these settings, I can assure you of this.

More notably, this problem I'm having has only seemed to reared its ugly head for about the last month of so.. Say 2 months ago, I could be connected to an eggdrop on partyline for 5 days if I wanted to be.
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Jan 14, 2011 3:37 pm    Post subject: Reply with quote

The Tcp timeout is very low: 5minutes..
Try increasing this to 3600 (60 minutes or 1h).
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
kenh83
Halfop


Joined: 08 Sep 2010
Posts: 61

PostPosted: Fri Jan 14, 2011 3:46 pm    Post subject: Reply with quote

That was suggested by someone else.. I just changed it to 3600 about 5 minutes ago, we'll see how it goes.
Back to top
View user's profile Send private message
kenh83
Halfop


Joined: 08 Sep 2010
Posts: 61

PostPosted: Fri Jan 14, 2011 5:11 pm    Post subject: Reply with quote

I believe this has solved my issues. Smile
Back to top
View user's profile Send private message
TheVillageIdiot
Voice


Joined: 10 Apr 2011
Posts: 2

PostPosted: Tue Apr 12, 2011 4:21 am    Post subject: Reply with quote

I have this same problem with my Eggdrop bot (latest no-addons version)... DCC CHAT will dissapear if i've been inactive for a while - say 10-15mins... sometimes longer.

However, i also have putty running... and it stays connected for days!

Both the eggdrop bot and the putty connections run on/to the same dedicated server, which makes this fairly unusual. I've checked the eggdrop config file for any setting that might relate to an idle timeout or something... and found nothing relevant.

What i might try... is telling the eggdrop bot to send me status infos every 5mins (or whatever). Which should fix the problem permanently.

But i've got other scripts to work on at the moment... so i might leave that til later.



Regards,

TheVillageIdiot
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