DB Hub Support Forum Forum Index DB Hub Support Forum  
  Linux/Unix hub software for Direct Connect      FAQ      Search      Memberlist / Usergroups      Statistics  
  · Log in Register · Profile · Log in to check your private messages · Usergroups  



Previous topic «» Next topic
IP Filtering?
Author Message
blue18

Joined: 26 Apr 2007
Posts: 8
Posted: 2007-05-02, 08:24   IP Filtering?

Is it possible to only allow a certain ip range to download from the hub?

Currently the hub is serving users on a LAN. What i want to be able to do is have the hub accessible to the outside world (internet) but people connected from the outside world only be able to chat, not to download.

Is this already possible?
 
 
Sponsor



Posty: 0
Skąd: Google






Centurion 
Administrator


Hub address:
sadistic.no-ip.org:6669
Age: 25
Joined: 31 Mar 2006
Posts: 430
Location: Poland
Posted: 2007-05-02, 08:44   

yes, it's possible with combination of ipgags and ipgag_type

http://dbhub.zendor.eu/bin/view.pl/DBHub/IpgagType

you have to ipgag all ranges different than LAN range, best way is using wildcars for that
an example for 192.168.*, note where are dots
!gagip 10*
!gagip 11*
!gagip 12*
!gagip 13*
!gagip 14*
!gagip 15*
!gagip 16*
!gagip 17*
!gagip 18*
!gagip 19.*
!gagip 1.*
!gagip 2*
!gagip 3*
!gagip 4*
!gagip 5*
!gagip 7*
!gagip 8*
!gagip 9*

at the end do
!set ipgag_type 1

disadvantage of this way will be sending "you were gagged from" message when user is logging in
 
 
blue18

Joined: 26 Apr 2007
Posts: 8
Posted: 2007-05-04, 01:33   

Cheers for that!

ill give that a go
 
 
blue18

Joined: 26 Apr 2007
Posts: 8
Posted: 2007-05-10, 01:14   

is there a way to gag all members from downloading?
at the moment when a VIP connects they are still able to download. and they dont get the security message
 
 
Centurion 
Administrator


Hub address:
sadistic.no-ip.org:6669
Age: 25
Joined: 31 Mar 2006
Posts: 430
Location: Poland
Posted: 2007-05-10, 16:53   

IP gags affect all classes less than ADMIN
however due to bug no message is send to non-REGULAR users
 
 
Centurion 
Administrator


Hub address:
sadistic.no-ip.org:6669
Age: 25
Joined: 31 Mar 2006
Posts: 430
Location: Poland
Posted: 2007-05-10, 17:26   

fixed in CVS
http://dbhub.cvs.sourcefo....132&view=patch

replaced on SF.net also here:
http://sadistic.one.pl/~test/dbhub-0.439.tar.gz
 
 
nagash 

Joined: 08 May 2008
Posts: 3
Posted: 2008-05-08, 18:15   

hello
thank you for your great work :)
but... i need to grant access ONLY to the next networks:
88.205.252.0-88.205.255.255
88.205.218.0-88.205.219.255
212.220.11.0-212.220.13.255
90.150.28.0-90.150.29.255
90.150.56.0-90.150.57.255
90.150.59.0-90.150.59.255
90.150.62.0-90.150.62.255
90.150.168.0-90.150.169.255
90.151.48.0-90.151.49.255
90.151.54.0-90.151.55.255

there's too much work if i'll use gags
please, make a simple ip-filtering...
 
 
LoKo 

Hub address:
nova.hubhost.net
Joined: 30 Apr 2008
Posts: 2
Location: Private lan
Posted: 2008-05-13, 22:57   

nagash wrote:
hello
thank you for your great work :)
but... i need to grant access ONLY to the next networks:
88.205.252.0-88.205.255.255
88.205.218.0-88.205.219.255
212.220.11.0-212.220.13.255
90.150.28.0-90.150.29.255
90.150.56.0-90.150.57.255
90.150.59.0-90.150.59.255
90.150.62.0-90.150.62.255
90.150.168.0-90.150.169.255
90.151.48.0-90.151.49.255
90.151.54.0-90.151.55.255

there's too much work if i'll use gags
please, make a simple ip-filtering...


then do allow (!allow) to:
88.205.252.*
88.205.255.*
88.205.218.*
88.205.219.*
212.220.11.*
212.220.13.*
90.150.28.*
90.150.29.*
90.150.56.*
90.150.57.*
90.150.62.*
90.150.168.*
90.150.169.*
90.151.48.*
90.151.49.*
90.151.54.*
90.151.55.*

next banip:
*.*.*.* with reason whatever u want :)
 
 
Sponsor



Posty: 0
Skąd: Google






nagash 

Joined: 08 May 2008
Posts: 3
Posted: 2008-05-17, 11:14   

LoKo wrote:


then do allow (!allow) to:


next banip:


thank you :)
 
 
Drastic

Joined: 24 Jul 2008
Posts: 1
Posted: 2008-07-24, 16:24   

Hi!
You already told us how to restrict downloads from certain IPs. Thanks. It was really helpful!
Now, how to give my OPs ability to mute users with certain IPs that aren't in the ipgaglist? The ipgag_type is set to 1. So, if OP will gag some ip, the user still will be able to write messages to main chat. Right?
!gag ain't helpful, cuz gagged user can reconnect with another name.

I'm going to run a dc++ hub in a LAN that has access to the Internet. So I want to restrict downloads for user from Internet but to allow them to chat. At the same time I want OPs to mute some bad lan users for a while, so they would sit still downloading whatever they want without bothering other people.

P.S.: The hub is running on a router, so up-to-date *.ipk releases are really needed.
 
 
Display posts from previous:   
Reply to topic
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
You cannot attach files in this forum
You can download files in this forum
Add this topic to your bookmarks
Printable version

Jump to:  

Powered by phpBB modified by Przemo © 2003 phpBB Group • Mapa forumStatisticsReferer
Template modified by Mich@l

SourceForge.net Logo


supplements