Welcome, Guest. Please login or register.
Did you miss your activation email?
Tuesday 19 November 2024, 06:26:09 pm

Login with username, password and session length

Visit the Official Endian Reference Manual  HERE
14258 Posts in 4377 Topics by 6515 Members
Latest Member: hulteends
Search:     Advanced search
+  EFW Support
|-+  Support
| |-+  General Support
| | |-+  How to stop /start firewall from command line
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: How to stop /start firewall from command line  (Read 22326 times)
aykuty
Jr. Member
*
Offline Offline

Posts: 4


« 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
Logged
fqureshi
Sr. Member
****
Offline Offline

Posts: 126


« Reply #1 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
Logged
aykuty
Jr. Member
*
Offline Offline

Posts: 4


« Reply #2 on: Friday 22 March 2013, 07:13:00 am »

which command is stopping or starting outgoing firewall?
Logged
fqureshi
Sr. Member
****
Offline Offline

Posts: 126


« Reply #3 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.
Logged
aykuty
Jr. Member
*
Offline Offline

Posts: 4


« Reply #4 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 Sad
Logged
aykuty
Jr. Member
*
Offline Offline

Posts: 4


« Reply #5 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
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Page created in 0.078 seconds with 18 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com