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
  • Previous
  • 1
  • 2
  • 3
  • Next
empmdk
Posts: 11
Joined: Thu Jan 01, 2015 6:39 am

Re: Iptables stopped after install
  • Quote

Post by empmdk » Thu Jan 01, 2015 6:42 am

I may be having a similar issue. Ubuntu 14.04 x64. IPTables shows as running, but 0% CPU, 0mb ram and 0 minutes. I've tried "service iptables restart" in terminal and it comes up as an unrecognized service. Is this normal?
Top

joem
Posts: 378
Joined: Thu Nov 13, 2014 8:33 am

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

Post by joem » Thu Jan 01, 2015 6:51 am

empmdk wrote:I may be having a similar issue. Ubuntu 14.04 x64. IPTables shows as running, but 0% CPU, 0mb ram and 0 minutes. I've tried "service iptables restart" in terminal and it comes up as an unrecognized service. Is this normal?
Try this

Code: Select all

sudo apt-get --reinstall install iptables
Top

empmdk
Posts: 11
Joined: Thu Jan 01, 2015 6:39 am

Re: Iptables stopped after install
  • Quote

Post by empmdk » Thu Jan 01, 2015 7:12 am

I'm still getting the same result. No errors during reinstall.
Top

joem
Posts: 378
Joined: Thu Nov 13, 2014 8:33 am

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

Post by joem » Thu Jan 01, 2015 7:24 am

empmdk wrote:I'm still getting the same result. No errors during reinstall.

Code: Select all

 nano /usr/local/vesta/conf/vesta.conf 
Make sure the following is in the file if not add it
FIREWALL_SYSTEM='iptables'
You can also try and run this,

Code: Select all

v-update-firewall

Code: Select all

 
service vesta restart
service iptables restart <-- Let me know the output of this please 
Top

empmdk
Posts: 11
Joined: Thu Jan 01, 2015 6:39 am

Re: Iptables stopped after install
  • Quote

Post by empmdk » Thu Jan 01, 2015 7:39 am

That line is already in the file.

Code: Select all

user@server:~# v-update-firewall
user@server:~# service vesta restart
 * Restarting vesta-nginx vesta-nginx
   ...done.
 * Restarting vesta-php vesta-php
   ...done.
user@server:~# service iptables restart
iptables: unrecognized service
Top

joem
Posts: 378
Joined: Thu Nov 13, 2014 8:33 am

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

Post by joem » Thu Jan 01, 2015 8:31 am

empmdk wrote:That line is already in the file.

Code: Select all

user@server:~# v-update-firewall
user@server:~# service vesta restart
 * Restarting vesta-nginx vesta-nginx
   ...done.
 * Restarting vesta-php vesta-php
   ...done.
user@server:~# service iptables restart
iptables: unrecognized service
Whats the output of

Code: Select all

chkconfig --list | grep iptables
/etc/rc.d/init.d/iptables status
Top

empmdk
Posts: 11
Joined: Thu Jan 01, 2015 6:39 am

Re: Iptables stopped after install
  • Quote

Post by empmdk » Thu Jan 01, 2015 8:41 am

Code: Select all

user@server:~# chkconfig --list | grep iptables
-bash: chkconfig: command not found
user@server:~# /etc/rc.d/init.d/iptables status
-bash: /etc/rc.d/init.d/iptables: No such file or directory
Top

joem
Posts: 378
Joined: Thu Nov 13, 2014 8:33 am

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

Post by joem » Thu Jan 01, 2015 8:52 am

empmdk wrote:

Code: Select all

user@server:~# chkconfig --list | grep iptables
-bash: chkconfig: command not found
user@server:~# /etc/rc.d/init.d/iptables status
-bash: /etc/rc.d/init.d/iptables: No such file or directory
What happens when you run this?

Code: Select all

sudo apt-get install iptables
sudo /etc/init.d/iptables start
Top

empmdk
Posts: 11
Joined: Thu Jan 01, 2015 6:39 am

Re: Iptables stopped after install
  • Quote

Post by empmdk » Thu Jan 01, 2015 3:31 pm

Code: Select all

user@server:~# apt-get install iptables
Reading package lists... Done
Building dependency tree
Reading state information... Done
iptables is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
user@server:~# /etc/init.d/iptables start
-bash: /etc/init.d/iptables: No such file or directory
Putting in "iptables-save" gave me an output of all the settings for iptables that VestaCP has set for me.

I've tried setting up a game server with SteamCMD and it would not allow a connection, so I've added the following:

Code: Select all

iptables -A INPUT -p udp -m udp --sport 27000:27030 --dport 1025:65355 -j ACCEPT
iptables -A INPUT -p udp -m udp --sport 4380 --dport 1025:65355 -j ACCEPT
Then, "iptables-save". I tried installing the game with SteamCMD again, and it was able to connect and install the server. So, it appears to actually be working. But, something is causing Ubuntu not to recognize the service?
Top

joem
Posts: 378
Joined: Thu Nov 13, 2014 8:33 am

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

Post by joem » Thu Jan 01, 2015 9:33 pm

empmdk wrote:

Code: Select all

user@server:~# apt-get install iptables
Reading package lists... Done
Building dependency tree
Reading state information... Done
iptables is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
user@server:~# /etc/init.d/iptables start
-bash: /etc/init.d/iptables: No such file or directory
Putting in "iptables-save" gave me an output of all the settings for iptables that VestaCP has set for me.

I've tried setting up a game server with SteamCMD and it would not allow a connection, so I've added the following:

Code: Select all

iptables -A INPUT -p udp -m udp --sport 27000:27030 --dport 1025:65355 -j ACCEPT
iptables -A INPUT -p udp -m udp --sport 4380 --dport 1025:65355 -j ACCEPT
Then, "iptables-save". I tried installing the game with SteamCMD again, and it was able to connect and install the server. So, it appears to actually be working. But, something is causing Ubuntu not to recognize the service?
Thats odd one last thing I can think to try would be

Code: Select all

chkconfig iptables on
Top


Post Reply
  • Print view

26 posts
  • Previous
  • 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