Changing iptables on the fly

Hi,

I wonder what the right solution is for following setup:

I have created a small program to run on a Windows PC. This program sends a unique token via apache

formatting link
were 12345 also contains the IP address in an encrypted way. If the token is correct, the check.php file should now do something to enable FTP for that IP address. I was thinging to change iptables rules to accept TCP on port 21 for that IP address. After a timeout period, the iptable rule will be removed.

- Is that a good and healthy way to think?

- Are there better solutions?

- Do I have to restart iptables every time I change something or is there another way?

- If I always have to restart, wont this interfere with other services that run on that server?

I'm sure some of you gurus can give me the correct answers.

Thanks in advance Jan

read more and respond »

Posted 5 years ago by jandoemen in Networking Firewalls

Report misuse

Image for Changing iptables on the fly