Page 2 of 3

Re: Iptables stopped after install

Posted: Thu Jan 01, 2015 6:42 am
by empmdk
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?

Re: Iptables stopped after install

Posted: Thu Jan 01, 2015 6:51 am
by joem
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

Re: Iptables stopped after install

Posted: Thu Jan 01, 2015 7:12 am
by empmdk
I'm still getting the same result. No errors during reinstall.

Re: Iptables stopped after install

Posted: Thu Jan 01, 2015 7:24 am
by joem
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 

Re: Iptables stopped after install

Posted: Thu Jan 01, 2015 7:39 am
by empmdk
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

Re: Iptables stopped after install

Posted: Thu Jan 01, 2015 8:31 am
by joem
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

Re: Iptables stopped after install

Posted: Thu Jan 01, 2015 8:41 am
by empmdk

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

Re: Iptables stopped after install

Posted: Thu Jan 01, 2015 8:52 am
by joem
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

Re: Iptables stopped after install

Posted: Thu Jan 01, 2015 3:31 pm
by empmdk

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?

Re: Iptables stopped after install

Posted: Thu Jan 01, 2015 9:33 pm
by joem
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