So you have amiexpress up and running and live on the internet, after a day or some hours the telnet nodes will stop working. Unfortunately, the internet is littered with script kiddies that flood port 23 (telnet). The flooding crashes telnetd.device, but there are a few ways to fix this issue and it all depends on weather you are running emulation or real hardware.
Options for real hardware, which can also be used with emulation:
The easiest method that helps, is to change the standard telnet port of 23 to something like 1541 or any of your choosing that is not a standard port.
Your best option is to attack the problem at the router level.
You can download custom firmware and run scripts to help stop the floods.
Custom firmware
DD-WRT for Linksys and Cisco Routers
https://www.dd-wrt.com/site/
Merlin Firmware for Asus Routers
https://asuswrt.lostrealm.ca/
I would recommend using Winscp to create and edit scripts on your router.
https://winscp.net/
You can always just use a plain text editor and SSH
Some of these custom firmware's allow you to block by countries which is a major help.
Another option is to block by number of connection in a give time, sort of like a brute force block.
Example:
(This is my script for my Asus RT-AC68R, using Merlin Firmware(
iptables -N TELNETBFP -t nat
iptables -A TELNETBFP -t nat -m recent --set --name TELNET --rsource
iptables -A TELNETBFP -t nat -m recent --update --seconds 7200 --hitcount 5 --name TELNET --rsource -j RETURN
This blocks an Ip address that connects to telnet more than 5 times in 120 minutes.
I would also recommend using a country block if your firmware supports it.
--------------------------------------- Complete custom script below this line
#!/bin/sh
logger "firewall" "Applying nat-start rules"
iptables -N TELNETBFP -t nat
iptables -A TELNETBFP -t nat -m recent --set --name TELNET --rsource
iptables -A TELNETBFP -t nat -m recent --update --seconds 7200 --hitcount 5 --name TELNET --rsource -j RETURN
iptables -A TELNETBFP -t nat -p tcp --dport 23 -m state --state NEW -j DNAT --to-destination 192.168.1.57:23
iptables -I VSERVER -t nat -i eth0 -p tcp --dport 23 -m state --state NEW -j TELNETBFP
------------------------------------Custom script ends
Remember to remove any forwards you may have in your gui.
There are specific things needed to get Merlin firmware working on an asus router, including a flash drive.
Emulation via Windows
Routers with custom firmware and changing telnet do a different port can be used here as well.
Peerblock is a great piece of software that can block out entire countries.
http://forums.peerblock.com/
You can find the downloadable files in the forums.
Peerblock can be used with Iblock list that provides all sorts of lists which are being updated constantly. There is a small annual charge for this list.
https://www.iblocklist.com/
I would usually recommend just blocking all countries except for the one's you want.
I also use a software called Protomon with some custom scripts that checks that the bbs is up and running, and if not it will restart Amikit.
http://protomon.net/
The lite version should work fine and it's free.
If you are interested in my custom scripts just reply and I will add on the documentation on how to get it going.
Good Luck!
Black Beard