This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

iptables rules for botnet

Old posts that have not been replied to for several years.
Locked
^
^CJ^
Voice
Posts: 12
Joined: Sat Sep 10, 2005 10:09 am

iptables rules for botnet

Post by ^CJ^ »

Hi,

I'm running eggdrop behind an iptables firewall which is kind of restrictive. Because of that, I can't run my eggdrop as a botnet hub as incoming connections from the highportrange are dropped which means userfiles cant be received. Can anyone suggest some good rules to make it work without being too unsecure? I found an eggdrop-conntrack in the patch-o-matic but it requires a 2.6 kernel which i dont have.

thanks!
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

Code: Select all

/usr/sbin/iptables -A INPUT -s 0/0 -p TCP --dport 10000:10020 -j ACCEPT
will allow inbound TCP connections from anywhere on your reserved-portrange 10000:10020
^
^CJ^
Voice
Posts: 12
Joined: Sat Sep 10, 2005 10:09 am

Post by ^CJ^ »

ok i know how to do that but how do i teach my eggdrop to use those specific ports for userfile exchange?
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

# If you want all dcc file transfers to use a particular portrange either
# because you're behind a firewall, or for other security reasons, set it
# here.
#set reserved-portrange 2010:2020
reading rulez

so when opening 10000-10020, you could use 10000 for users, 10001 for bots and 10002-10020 for dcc.
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
^
^CJ^
Voice
Posts: 12
Joined: Sat Sep 10, 2005 10:09 am

Post by ^CJ^ »

De Kus wrote:reading rulez
it indeed does :oops:

thank you!
Locked