PacketFence - BTS - PacketFence 1.7 | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0000328 | PacketFence 1.7 | public | 2008-05-28 15:16 | 2008-06-02 11:51 | |
Reporter | jsnapp | ||||
Assigned To | user4 | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | Fixed in Version | ||||
fixed in mtn revision | |||||
Summary | 0000328: iptables.bak should be saved and restored when a restart is run too | ||||
Description | While troubleshooting an issue I reported in http://www.packetfence.org/mantis/view.php?id=327 [^] I found what IMHO was some convoluted code in pf/bin/pfcmd, pf/bin/start and pf/bin/stop. The "control" function code is identical in each of these three files. The main issue I have is that the "control" function code doesn't do anything in terms of saving or restoring iptables when "control" receives the "restart" command. I also think that even when it does decide whether to do a "save_iptables" or a "restore_iptables" it does an inefficient job of it. I believe that when a "restart" command is sent to "control" function the function should effectively call itself again with a "stop" command and then again with a "start" command. This way we can have a full restart that includes restarting iptables. I also think it is important to move the restore_iptables test after the call to "service_ctl" since that way we can know for sure whether any services are still running before we restore_iptables. I know it may be a long shot but I have attached a rewrite of the code for the "control" function that belongs in pf/bin/pfcmd, pf/bin/start and pf/bin/stop. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | PFCMD_Control_Function.txt (1,403) 2008-05-28 15:16 https://www.packetfence.org/bugs/file_download.php?file_id=35&type=bug | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2008-05-28 15:16 | jsnapp | New Issue | |||
2008-05-28 15:16 | jsnapp | File Added: PFCMD_Control_Function.txt | |||
2008-05-28 23:08 | user4 | Status | new => assigned | ||
2008-05-28 23:08 | user4 | Assigned To | => user4 | ||
2008-06-02 11:48 | user4 | Note Added: 0000730 | |||
2008-06-02 11:51 | user4 | Status | assigned => closed | ||
2008-06-02 11:51 | user4 | Note Added: 0000731 | |||
2008-06-02 11:51 | user4 | Resolution | open => fixed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|