Page 1 of 3

Iptables stopped after install

Posted: Thu Dec 18, 2014 7:59 pm
by arikdpc
Hi,
I have installed vestacp on 5 servers without any problems in the last month.
Now I can't get the firewall working on new server.
I tried installing on different servers, on debian 7 64, debian 7 32, and even tried a different hosting..
Nothing - can't get the iptables to work.
also the firewall rules are empty.

Anybody ?
links to screen shots:
http://prntscr.com/5ibmlk
http://prntscr.com/5ibmqh

Arik

Re: Iptables stopped after install

Posted: Thu Dec 18, 2014 8:03 pm
by imperio
HI Arik,
Please reinstall Debian and give me access to your server

Re: Iptables stopped after install

Posted: Mon Dec 22, 2014 9:58 pm
by arikdpc
Hi,
This issue is not resolved and happening constantly on different machines and on different setups.
Please try installing VestaCP on a clean server and see if you are not getting the same result.
Iptables - Stopped and no firewall rules.

Am I the only one that encounter that problem?
Arik

Re: Iptables stopped after install

Posted: Tue Dec 23, 2014 11:05 am
by stelios
Hi there, yes i have the exact same issue. Any update on this?

Just created a new Ubuntu 14.04 x64 on a 1GB Ram(mentioning this as it is considered a micro-server by VestaCP)
So it's a clean server and just installed VestaCP nothing prior this and nothing after, but Iptables in services is stopped and Firewall is empty.

Stelios

Re: Iptables stopped after install

Posted: Sat Dec 27, 2014 7:50 am
by cloudgur
My Os: Debian 7, it's nothing like you arikdpc.

Re: Iptables stopped after install

Posted: Mon Dec 29, 2014 12:12 pm
by Yikmings
same case on Debian 7 64bits

Re: Iptables stopped after install

Posted: Mon Dec 29, 2014 1:21 pm
by mephivio
i have the same problem here
-> ubuntu 14.04 64-bit

Re: Iptables stopped after install

Posted: Mon Dec 29, 2014 2:24 pm
by mephivio
Ok i found the solution

1/ go to /usr/local/vesta/data/firewall directory

2/ you have to create 2 files :

ports.conf

PROTOCOL='TCP' PORT='20'
PROTOCOL='TCP' PORT='21'
PROTOCOL='TCP' PORT='22'
PROTOCOL='TCP' PORT='25'
PROTOCOL='UDP' PORT='53'
PROTOCOL='TCP' PORT='80'
PROTOCOL='TCP' PORT='443'
PROTOCOL='TCP' PORT='110'
PROTOCOL='UDP' PORT='123'
PROTOCOL='TCP' PORT='143'
PROTOCOL='TCP' PORT='3306'
PROTOCOL='TCP' PORT='5432'
PROTOCOL='TCP' PORT='8080'
PROTOCOL='TCP' PORT='8443'
PROTOCOL='TCP' PORT='8083'

rules.conf

RULE='1' ACTION='ACCEPT' PROTOCOL='ICMP' PORT='0' IP='0.0.0.0/0' COMMENT='PING' SUSPENDED='no' TIME='17:13:48' DATE='2014-09-16'
RULE='2' ACTION='ACCEPT' PROTOCOL='TCP' PORT='8083' IP='0.0.0.0/0' COMMENT='VESTA' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25'
RULE='3' ACTION='ACCEPT' PROTOCOL='TCP' PORT='3306,5432' IP='0.0.0.0/0' COMMENT='DB' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25'
RULE='4' ACTION='ACCEPT' PROTOCOL='TCP' PORT='143,993' IP='0.0.0.0/0' COMMENT='IMAP' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25'
RULE='5' ACTION='ACCEPT' PROTOCOL='TCP' PORT='110,995' IP='0.0.0.0/0' COMMENT='POP3' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25'
RULE='6' ACTION='ACCEPT' PROTOCOL='TCP' PORT='25,465,587,2525' IP='0.0.0.0/0' COMMENT='SMTP' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25'
RULE='7' ACTION='ACCEPT' PROTOCOL='UDP' PORT='53' IP='0.0.0.0/0' COMMENT='DNS' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25'
RULE='8' ACTION='ACCEPT' PROTOCOL='TCP' PORT='21' IP='0.0.0.0/0' COMMENT='FTP' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25'
RULE='9' ACTION='ACCEPT' PROTOCOL='TCP' PORT='80,443' IP='0.0.0.0/0' COMMENT='WEB' SUSPENDED='no' TIME='17:04:27' DATE='2014-09-24'
RULE='10' ACTION='ACCEPT' PROTOCOL='TCP' PORT='22' IP='0.0.0.0/0' COMMENT='SSH' SUSPENDED='no' TIME='22:06:35' DATE='2014-10-23'

3/ restart the firewall Service from VestaCP Panel

That's all & enjoy !

Re: Iptables stopped after install

Posted: Mon Dec 29, 2014 11:05 pm
by stelios
Hey mephivio, thank you very much :)

Re: Iptables stopped after install

Posted: Wed Dec 31, 2014 7:43 pm
by fly
This fixed it for me. Thanks!

edit: If it helps the devs, I'm on Ubuntu 14 LTS x64