My chains.conf is corrupt, how to recreate it?

Hello all,

My /usr/local/hestia/data/firewall/chains.conf is corrupted on restart, how to recreate/fix/restore it?

I’m not sure for the cause. Maybe it’s because I’ve run /usr/local/hestia/bin/v-add-firewall-chain hestia 80 TCP. It’s cutted in the middle off like…

80’ PROTOCOL=‘TCP’
CHAIN=‘RECIDIVE’ PORT=‘1:111’ PROTOCOL=‘TCP’
CHAIN=‘FTP’ PORT=‘444’ PROTOCOL=‘TCP’
CHAIN=‘MAIL’ PORT=‘55,66’ PROTOCOL=‘TCP’
CHAIN=‘HESTIA’ PORT=‘77’ PROTOCOL=‘TCP’
CHAIN=‘WEB’ PORT=‘88,99’ PROTOCOL=‘TCP’
CHAIN=‘SSH’ PORT=‘00’ PROTOCOL=‘TCP’

Hello @mssjstaff,

1.- Delete chains.conf file:

rm /usr/local/hestia/data/firewall/chains.conf

2.- Recreate chains:

for i in SSH FTP MAIL WEB HESTIA RECIDIVE; do v-add-firewall-chain "$i"; done

Cheers,
sahsanu

3 Likes

It’s work. Thank you so much.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.