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

How to know if iptables is running?

General questions about VestaCP
Post Reply
  • Print view
Advanced search
21 posts
  • 1
  • 2
  • 3
  • Next
edica
Posts: 126
Joined: Tue May 26, 2015 7:31 pm

How to know if iptables is running?
  • Quote

Post by edica » Thu Jun 04, 2015 5:26 pm

With command. How to know if iptables is running and working?

The control panel is started, but is always: Uptime: 0 minutes.

Thanks.
Top

patstan
Posts: 117
Joined: Wed Jul 30, 2014 10:53 am

Re: How to know if iptables is running?
  • Quote

Post by patstan » Thu Jun 04, 2015 5:27 pm

Do something like

Code: Select all

service iptables start
to make sure its running.
Top

edica
Posts: 126
Joined: Tue May 26, 2015 7:31 pm

Re: How to know if iptables is running?
  • Quote

Post by edica » Thu Jun 04, 2015 5:32 pm

# service iptables start
iptables: unrecognized service
Top

anthony
Posts: 11
Joined: Fri May 29, 2015 7:52 am

Re: How to know if iptables is running?
  • Quote

Post by anthony » Thu Jun 04, 2015 6:08 pm

To restart the service type in SSH logged in as root.

service iptables restart


To ensure that iptables starts when the system is booted, use the following command:

chkconfig --level 345 iptables on

this is for centos.
Top

patstan
Posts: 117
Joined: Wed Jul 30, 2014 10:53 am

Re: How to know if iptables is running?
  • Quote

Post by patstan » Thu Jun 04, 2015 6:14 pm

What is your operating system?
Top

edica
Posts: 126
Joined: Tue May 26, 2015 7:31 pm

Re: How to know if iptables is running?
  • Quote

Post by edica » Thu Jun 04, 2015 6:29 pm

Is Ubuntu 14.04

Not working service iptables start/stop/restart...
Top

anthony
Posts: 11
Joined: Fri May 29, 2015 7:52 am

Re: How to know if iptables is running?
  • Quote

Post by anthony » Thu Jun 04, 2015 6:53 pm

For Ubuntu type


sudo ufw status
Top

edica
Posts: 126
Joined: Tue May 26, 2015 7:31 pm

Re: How to know if iptables is running?
  • Quote

Post by edica » Thu Jun 04, 2015 7:02 pm

I do not understand.

In Control Panel Vesta, iptables is always: Uptime: 0 minutes.

Inactive:

root@hostname:~# sudo ufw status
Status: inactive

Running:

root@hostname:~# v-list-sys-services
NAME STATE CPU MEM RTIME
------ ------ ------ ------ ------
apache2 running 0 761 78
nginx running 0 9 78
named running 0 93 78
exim4 running 0 1 78
dovecot running 0 0 78
spamassassin running 0.2 2443 78
mysql running 0.1 613 78
vsftpd running 0 1 78
cron running 0 0 78
iptables running 0 0 0
fail2ban running 0.1 607 78
Top

anthony
Posts: 11
Joined: Fri May 29, 2015 7:52 am

Re: How to know if iptables is running?
  • Quote

Post by anthony » Thu Jun 04, 2015 8:01 pm

Hi please use this command


sudo ufw reload
Top

Fortron
Posts: 10
Joined: Tue Oct 27, 2015 5:10 pm

Re: How to know if iptables is running?
  • Quote

Post by Fortron » Tue Oct 27, 2015 5:13 pm

Having the same issue as topic poster.
Its a fresh install on a VPS running Debian Wheezy.

Is there a solution for this?
Top


Post Reply
  • Print view

21 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