View Full Version : Ban ip in AuthD
(Don't know how old this info is but it could be usefull
for the people that just visit this forum.)
Add in your ../authd/etc/config.txt
line:
useForbiddenIPList=true
and make file:
../authd/etc/BlockIPs.txt
and add ban ip's:
1xx.xx3.123.1
1xx.xx3.123.2
:thumbup:
damienstone
01.05.2005, 18:40
can you add IP ranges like 1xx.xx3.123.*
in blockips.txt just list ips? one line per ip.
Not sure, haven't tested this yet.
Just passing it on
porkmaster
06.05.2005, 19:40
Allright, here's an easy way to block out ip addresses on windows.
It does not require very much knowledge and you need some *nix tools ported on mswin.
The tools you're going to need are:
- wipfw (ipfw port for windows) - http://wipfw.sourceforge.net
- winbash (bourn again shell port for windows) http://winbash.tigris.org/servlets/ProjectDocumentList
Download wipfw and bash.exe and put the binaries in one directory.
In the same directory, make a file called "blocked.txt".
Add the IP addresses you want to block in that file, one IP address/subnet on a line.
You can use the IANA network naming convention - this means that:
1.2.3.4 = one IP address
1.2.3.0/24 = class C - from 1.2.3.0 to 1.2.3.255
(google up if you need more info)
Create a file named firewall.sh that should look like this:
#!/the/dir/where/you/have/bash.exe
wipfw flush
for subnet in $(cat blocked.txt); do
wipfw add deny ip from $subnet to any
done
Note that this script will prompt you for a "yes/no" each time you run `wipfw flush` (you gotta dig up a bit to see how you can cancel that out :D).
So, each time you're starting up the machine or adding/removing ip addresses to/from the blocklist, go in to that directory and run:
bash firewall.sh
(you may set up .sh file to be opened by bash).
Further improvements can be done with a bit of RTFM also :)
This will secure all ports, not only 2106 (authd) port.
Friendly warning: do not have a VERY LARGE NUMBER of IP addresses to block.
my BlockIPs.txt
0.0.0.0-2xx.xx5.255.0
in that case no one not to be connected :)
Why on earth reopen such a old post... and with such a stupid comment..