Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

Iptables stopped after install

General questions about VestaCP
Post Reply
  • Print view
Advanced search
26 posts
  • 1
  • 2
  • 3
  • Next
arikdpc
Posts: 4
Joined: Thu Dec 18, 2014 7:51 pm
Contact:
Contact arikdpc
Website

Iptables stopped after install
  • Quote

Post by 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
Top

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

Re: Iptables stopped after install
  • Quote

Post by imperio » Thu Dec 18, 2014 8:03 pm

HI Arik,
Please reinstall Debian and give me access to your server
Top

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

Re: Iptables stopped after install
  • Quote

Post by 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
Top

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

Re: Iptables stopped after install
  • Quote

Post by 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
Top

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

Re: Iptables stopped after install
  • Quote

Post by cloudgur » Sat Dec 27, 2014 7:50 am

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

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

Re: Iptables stopped after install
  • Quote

Post by Yikmings » Mon Dec 29, 2014 12:12 pm

same case on Debian 7 64bits
Top

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

Os: Debian 8x
Web: nginx + php-fpm
Re: Iptables stopped after install
  • Quote

Post by mephivio » Mon Dec 29, 2014 1:21 pm

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

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

Os: Debian 8x
Web: nginx + php-fpm
Re: Iptables stopped after install
  • Quote

Post by 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 !
Top

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

Re: Iptables stopped after install
  • Quote

Post by stelios » Mon Dec 29, 2014 11:05 pm

Hey mephivio, thank you very much :)
Top

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

Re: Iptables stopped after install
  • Quote

Post by 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
Top


Post Reply
  • Print view

26 posts
  • 1
  • 2
  • 3
  • Next

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password