Page 1 of 3
How to know if iptables is running?
Posted: Thu Jun 04, 2015 5:26 pm
by edica
With command. How to know if iptables is running and working?
The control panel is started, but is always: Uptime: 0 minutes.
Thanks.
Re: How to know if iptables is running?
Posted: Thu Jun 04, 2015 5:27 pm
by patstan
Do something like
to make sure its running.
Re: How to know if iptables is running?
Posted: Thu Jun 04, 2015 5:32 pm
by edica
# service iptables start
iptables: unrecognized service
Re: How to know if iptables is running?
Posted: Thu Jun 04, 2015 6:08 pm
by anthony
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.
Re: How to know if iptables is running?
Posted: Thu Jun 04, 2015 6:14 pm
by patstan
What is your operating system?
Re: How to know if iptables is running?
Posted: Thu Jun 04, 2015 6:29 pm
by edica
Is Ubuntu 14.04
Not working service iptables start/stop/restart...
Re: How to know if iptables is running?
Posted: Thu Jun 04, 2015 6:53 pm
by anthony
For Ubuntu type
sudo ufw status
Re: How to know if iptables is running?
Posted: Thu Jun 04, 2015 7:02 pm
by edica
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
Re: How to know if iptables is running?
Posted: Thu Jun 04, 2015 8:01 pm
by anthony
Hi please use this command
sudo ufw reload
Re: How to know if iptables is running?
Posted: Tue Oct 27, 2015 5:13 pm
by Fortron
Having the same issue as topic poster.
Its a fresh install on a VPS running Debian Wheezy.
Is there a solution for this?