Is there a way to reject an incoming IP connection made to BinkD?
Is there a way to reject an incoming IP connection made to BinkD?
Is there a way to reject an incoming IP connection made to BinkD?
/path/to/iptables -I INPUT 1 -s x.x.x.x -p tcp --dport 24554 -j DROP where x.x.x.x = remote IP.
Paul Hayton wrote to All <=-
/path/to/iptables -I INPUT 1 -s x.x.x.x -p tcp --dport 24554 -j DROP
where x.x.x.x = remote IP.
Many thanks for the info / help :)
Paul Hayton wrote to All <=-
/path/to/iptables -I INPUT 1 -s x.x.x.x -p tcp --dport 24554 -j DROP where x.x.x.x = remote IP.
Many thanks for the info / help :)
Glad to offer the assistance. Scripts like fail2ban are "ok" but one really should learn the apps that scripts such as those control. If you wish to block an IP from accessing anything on your box, drop from the "-p .. to 24554
of the above line. If you just wish to append the filter you can use -A instead of -I too. If your bink is running on a different port than change the --dport to what your bink is.
Dumas Walker wrote to BRIAN ROGERS <=-
How would you format it if you want to drop a whole range or block of
IP addresses?
How would you format it if you want to drop a whole range or block of
IP addresses?
I made a utilty for myself which I call "ipblock". It handles whatever string I wish to enter whether it's IPv4 or IPv6, a single IP or a block. It writes to a file called /etc/blocked.ips which is then called upon bootup as part of my firewalling. In doing a whole block enter in the cidr shorthand. Ex:
/sbin/iptables -I INPUT -s 49.7.0.0/16 -j ROP
/sbin/iptables -I OUTPUT -d 49.7.0.0/16 -j DROP
/sbin/iptables -I FORWARD -s 49.7.0.0/16 -j DROP
This filters a scanbot block from my box. :)
Further questions, feel free to netmail me as this really isn't Bink information. I'll be happy to try and answer.
You can also add logging and such if you desire. I don't feel that if
I'm denying a block that I need to see my work did the job I
programmed it to do though.
Or take it to the INTERNET and/or TCPIP areas, so we can all learn! ;)
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 412 |
Nodes: | 16 (2 / 14) |
Uptime: | 22:35:57 |
Calls: | 8,625 |
Calls today: | 11 |
Files: | 13,238 |
Messages: | 5,936,886 |