IP Tables help
Hi All,
May I know iptables rules to allow/deny particular source/ports till particular time. For example I want to allow ftp to source 192.168.137.123 till 3 days. And after 3 days that rule should automatically get delete from the INPUT chain. How this can be achieved? Expecting your kind help. |
I don't kmow any way to create a rule with a timestamp that automatically deletes the rule after a specified time.
What you can do is to write a small shell-script that deletes the rule, then add the script to crontab. |
Thanks for the reply pingu.
Ok, if not able delete the rule automatically, I can delete it either manually or with script. But at least can we add IPTables rule to accept ftp till further 3 days by counting epoch value from now. |
All times are GMT -5. The time now is 05:42 PM. |