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 

Can a hub link out instead of in?

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


Joined: 13 Jan 2005
Posts: 38

PostPosted: Tue Sep 18, 2007 9:16 am    Post subject: Can a hub link out instead of in? Reply with quote

I'd prefer not to open a port on my hub. Is there any way to make the hub connect to the leaves instead of the leaves connecting to the hub?
Back to top
View user's profile Send private message
YooHoo
Owner


Joined: 13 Feb 2003
Posts: 939
Location: Redwood Coast

PostPosted: Tue Sep 18, 2007 9:19 am    Post subject: Reply with quote

that's a good question, not real clear on the specifics of the way ports open/close... have you tried to manually link the bots via the .link command, instead of letting the bot auto-connect?
_________________
Mr. Green
Johoho's TCL for beginners
Mr. Green
Back to top
View user's profile Send private message Send e-mail
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Tue Sep 18, 2007 12:32 pm    Post subject: Reply with quote

From a single eggdrop's point of view, +h ("hub") basically means always try to keep a direct link with this bot. The same goes with +a ("althub") if there is no other +h or +a bot directly linked.

Remove any +h and/or +a flags, and you could easily set up the links manually using .link, as suggested by YooHoo. Any automated linking would require some non-trivial scripting.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
user
 


Joined: 18 Mar 2003
Posts: 1452
Location: Norway

PostPosted: Tue Sep 18, 2007 4:14 pm    Post subject: Reply with quote

I've never tried this, but it might work... on the leafs, add the hub with no botaddr (so they won't try to link), then on the hub, make sure you have botaddrs for all your leafs, .chattr them +L (that's the custom user flag "L" as I'm guessing you don't want them to be .botattr +l), then add this little script to make the hub try to link to them every minute:
Code:
bind time - * checkLinks
proc checkLinks args {
   foreach bot [userlist bL&] {
      if {![islinked $bot]} {link $bot}
   }
}

_________________
Have you ever read "The Manual"?
Back to top
View user's profile Send private message
anotheregglover
Voice


Joined: 13 Jan 2005
Posts: 38

PostPosted: Tue Sep 18, 2007 5:49 pm    Post subject: Reply with quote

Thanks, I'll give that a shot!

One more question: Is it possible to make eggdrop listen on a specific IP instead of 0.0.0.0?
Back to top
View user's profile Send private message
user
 


Joined: 18 Mar 2003
Posts: 1452
Location: Norway

PostPosted: Tue Sep 18, 2007 5:58 pm    Post subject: Reply with quote

I've never seen an eggdrop listening on 0.0.0.0, but I always set "my-ip" in the .conf - that might be the solution.
_________________
Have you ever read "The Manual"?
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Tue Sep 18, 2007 6:10 pm    Post subject: Reply with quote

Simple answer:
Setting my-ip will affect any listen-command (as well as any outbound connection apart from the socket-command) executed after it has been set, it will however not affect any previous sockets.


Some further info, perhaps not directly related to topic:
With some care, you could craft some more advanced setups..
Imagine your server has several subnets routed to it, such as 10.1.1.253 and 192.168.73.18. Then you could do a setup such as this:

Code:
set my-ip 10.1.1.253
listen 4432 bots
set my-ip 192.168.73.18
listen 5213 users
unset my-ip

Here bots will have to connect to a completely different ip than normal users, making it alittle more complicated to join a rogue bot..
Meanwhile, it will still rely on the host's routing-tables for outbound connections.
_________________
NML_375, idling at #eggdrop@IrcNET
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