csf restart with error since I add custom country

Post Reply
sauvegardezvous99
Junior Member
Posts: 9
Joined: 27 Nov 2014, 01:29

csf restart with error since I add custom country

Post 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,
ForumAdmin
Moderator
Posts: 1523
Joined: 01 Oct 2008, 09:24

Re: csf restart with error since I add custom country

Post 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.
sauvegardezvous99
Junior Member
Posts: 9
Joined: 27 Nov 2014, 01:29

Re: csf restart with error since I add custom country

Post 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
ForumAdmin
Moderator
Posts: 1523
Joined: 01 Oct 2008, 09:24

Re: csf restart with error since I add custom country

Post 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.
sauvegardezvous99
Junior Member
Posts: 9
Joined: 27 Nov 2014, 01:29

Re: csf restart with error since I add custom country

Post by sauvegardezvous99 »

yeah, I understand.

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

thank you for the tips with LF_IPSET.
Post Reply