EFW Support

Support => General Support => Topic started by: aykuty on Friday 22 March 2013, 06:14:00 am



Title: How to stop /start firewall from command line
Post by: aykuty on Friday 22 March 2013, 06:14:00 am
Hi,

I want to turn off firewall between noon. But endiand firewall rules dont have time limits. İ want to stop and start firewall between noon from crontab. how can i do?

regards
aykut


Title: Re: How to stop /start firewall from command line
Post by: fqureshi on Friday 22 March 2013, 06:51:56 am
You can create a script and add it to cron job.

Location is /etc/cron.daily


Title: Re: How to stop /start firewall from command line
Post by: aykuty on Friday 22 March 2013, 07:13:00 am
which command is stopping or starting outgoing firewall?


Title: Re: How to stop /start firewall from command line
Post by: fqureshi on Friday 22 March 2013, 07:31:33 am
I never tried to disable firewall from console. But what i can suggest is you can log in to console check the system logs under /var/log/messages (most probably) and while monitoring logs turn off firewall from GUI and the command will show up in logs. Or you can also monitor logs from GUI under logs tab and then system.


Title: Re: How to stop /start firewall from command line
Post by: aykuty on Friday 22 March 2013, 05:03:19 pm
Hi,
thanks for answers. I have check log files while stopping and starting firewall but i can't find anythings :(


Title: Re: How to stop /start firewall from command line
Post by: aykuty on Wednesday 03 April 2013, 05:41:26 am
hi,
if anyone wondering about this question; i have used iptables-save and restore commands to save and restore firewall rules. then created a script in crond.hourly folder to check minutes and run restore command before and after noon.

regards
aykut