(Dec 29) New version 0.9.8-18 has been released. More you can find here

Iptables stopped after install Topic is solved

General questions about VestaCP
Forum rules
Before creating a new topic or reply on the forum you should fill out additional fields "Os" and "Web" in your profile section.
In case of violation, the topic can be closed or response from the support will not be received.
arikdpc
Posts: 4
Joined: Thu Dec 18, 2014 7:51 pm
Contact:

Iptables stopped after install

Postby arikdpc » Thu Dec 18, 2014 7:59 pm

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

imperio
VestaCP Team
Posts: 5802
Joined: Sat Dec 01, 2012 12:37 pm
Contact:

Re: Iptables stopped after install

Postby imperio » Thu Dec 18, 2014 8:03 pm

HI Arik,
Please reinstall Debian and give me access to your server
-> DigitalOcean competition - please, support us
-> fix for phpmyadmin - nice and sweet now

arikdpc
Posts: 4
Joined: Thu Dec 18, 2014 7:51 pm
Contact:

Re: Iptables stopped after install

Postby arikdpc » Mon Dec 22, 2014 9:58 pm

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

stelios
Posts: 6
Joined: Tue Dec 23, 2014 11:00 am

Re: Iptables stopped after install

Postby stelios » Tue Dec 23, 2014 11:05 am

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

cloudgur
Posts: 20
Joined: Mon Sep 22, 2014 9:50 am

Re: Iptables stopped after install

Postby cloudgur » Sat Dec 27, 2014 7:50 am

My Os: Debian 7, it's nothing like you arikdpc.

Yikmings
Posts: 16
Joined: Fri Nov 22, 2013 4:51 pm

Re: Iptables stopped after install

Postby Yikmings » Mon Dec 29, 2014 12:12 pm

same case on Debian 7 64bits

mephivio
Posts: 174
Joined: Thu Mar 27, 2014 7:35 am

Os: Debian 9x
Web: nginx + php-fpm

Re: Iptables stopped after install

Postby mephivio » Mon Dec 29, 2014 1:21 pm

i have the same problem here
-> ubuntu 14.04 64-bit

mephivio
Posts: 174
Joined: Thu Mar 27, 2014 7:35 am

Os: Debian 9x
Web: nginx + php-fpm

Re: Iptables stopped after install

Postby mephivio » Mon Dec 29, 2014 2:24 pm

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 !

stelios
Posts: 6
Joined: Tue Dec 23, 2014 11:00 am

Re: Iptables stopped after install

Postby stelios » Mon Dec 29, 2014 11:05 pm

Hey mephivio, thank you very much :)

fly
Posts: 3
Joined: Wed Dec 31, 2014 7:37 pm

Re: Iptables stopped after install

Postby fly » Wed Dec 31, 2014 7:43 pm

This fixed it for me. Thanks!

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


Return to “General Discussion”



Who is online

Users browsing this forum: No registered users and 1 guest