Any Linux firewall (iptables/nftables) experts/admins here?
Can this be done on a Linux server with iptables (or nftables) firewall? :
Say I want to make every 5 minutes an updated version of a web page, but need to prevent the server from uncooperative bad users who endlessly make new connection attempts to get the newest version of the file as quickly as possible, instead of trying it only every 60 seconds or so as instructed on the web page.
Protecting (by time-limiting) access to a specific TCP port on our server, like https://www.example.com:8001/index.html
If remote client makes a new connection attempt before 60 seconds have elapsed since the last connection, then the firewall shall redirect the client to another TCP port (say port 8002; this other port will show a warning explaining the access limit plus showing a link for a retry).
Ie. it's normal REST access to a normal standard webserver, w/o any streaming involved.
And the clients (users) are just normal guest users, w/o any login requirement.
Looking for a firewall solution only, not doing it in the webserver source code files etc.
Has someone an example demonstrating this?
Or can give a link dealing with this problem?
Can this be done on a Linux server with iptables (or nftables) firewall? :
Say I want to make every 5 minutes an updated version of a web page, but need to prevent the server from uncooperative bad users who endlessly make new connection attempts to get the newest version of the file as quickly as possible, instead of trying it only every 60 seconds or so as instructed on the web page.
Protecting (by time-limiting) access to a specific TCP port on our server, like https://www.example.com:8001/index.html
If remote client makes a new connection attempt before 60 seconds have elapsed since the last connection, then the firewall shall redirect the client to another TCP port (say port 8002; this other port will show a warning explaining the access limit plus showing a link for a retry).
Ie. it's normal REST access to a normal standard webserver, w/o any streaming involved.
And the clients (users) are just normal guest users, w/o any login requirement.
Looking for a firewall solution only, not doing it in the webserver source code files etc.
Has someone an example demonstrating this?
Or can give a link dealing with this problem?
Last edited: