Page 1 of 1

csf restart with error since I add custom country

Posted: 02 Dec 2014, 14:23
by sauvegardezvous99
hello,

since I added country CA & US to CC_allow_ports, when CSF restarts, I receive that error:

Code: Select all

csf: FASTSTART loading CC_ALLOW_PORTS [ca] (IPv4)
csf: FASTSTART loading CC_ALLOW_PORTS [us] (IPv4)
CC_ALLOWP  all opt -- in !lo out *  0.0.0.0/0  -> 0.0.0.0/0  
ACCEPT  all opt -- in !lo out *  0.0.0.0/0  -> 0.0.0.0/0  state RELATED,ESTABLISHED 
Error: Connection timeout! at /usr/sbin/lfd line 7422,  line 61.
Error: Connection timeout! at /usr/sbin/lfd line 7422,  line 61.
I used the UI of CSF on CentOS6
But if I restart CSF using SSH connection, no problem.

It sounds that it's related to the timeout of the UI (httpd).
thank you for any suggestion, help.
regards,

Re: csf restart with error since I add custom country

Posted: 02 Dec 2014, 16:02
by ForumAdmin
The lfd error message indicates that there was a simple timeout after 30 seconds of processing a request, or simply a connection, initiated through or made to the UI.

I don't see why you are showing csf startup lines and then lfd error log lines.

Re: csf restart with error since I add custom country

Posted: 02 Dec 2014, 16:10
by sauvegardezvous99
I don't see why you are showing csf startup lines and then lfd error log lines.
I show you the last line of the output by the UI page.

So, how can I extend the timeout for the UI by CSF ?

thx

Re: csf restart with error since I add custom country

Posted: 02 Dec 2014, 16:35
by ForumAdmin
That is not configurable.

If csf is taking too long to start due to the server resources available when using the UI you either need to do the commands from the CLI or look at using the LF_IPSET feature.

Re: csf restart with error since I add custom country

Posted: 02 Dec 2014, 16:42
by sauvegardezvous99
yeah, I understand.

I suggest in future version, maybe you can extend that timeout.

thank you for the tips with LF_IPSET.