Comment on Godaddy VPS Review by SEO Dave.

Godaddy VPS ReviewDecided to give it another go, at $15 a month for a 4GB RAM VPS it’s worth another try. I have 30 days to get the server running or request another refund.

Found a Godaddy forum post about this issue at : https://uk.godaddy.com/community/Developer-Cloud-Portal/Problems-with-firewalld-and-CentOS7-VPS/m-p/22949#M995 there’s also some info about the iptables issue at https://www.centos.org/forums/viewtopic.php?f=51&t=54469

Unfortunately Godaddy’s forum software sucks, I get an Access Denied error if I post anything complicated, can only post simple lines of text! So posting here instead:

I’m having this issue with a new Centos 7 VPS and looks like it’s to do with the OpenVZ container.

The server starts with all ports except 22 and 80 closed and iptables enabled, but NOT active because the default iptables file (/etc/sysconfig/iptables/) fails on line 14 (the commit line). This is the entire file:

# sample configuration for iptables service
# you can edit this manually or use system-config-firewall
# please do not ask us to add additional ports/services to this default configuration
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
there's a blank line here

The COMMIT line is line 14, but I’ve tried adding commit between each rule (after each -A INPUT” rule) and it fails at the first rule.

Can only get iptables to run via the “service iptables save” command which results in iptables running, but no rules saved.

# iptables -S
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT

The weird thing is ports 22 and 80 are open even when iptables is disabled at boot or has no rules.

I’ve tried disabling iptables and rebooting and ports 22 and 80 are still open, everything else blocked.

Firewalld wasn’t installed, after disabling iptables and installing firewalld

# sudo firewall-cmd --state
not running

and

# firewall-cmd --set-default-zone=public
Warning: ZONE_ALREADY_SET: public
success

and

# sudo systemctl status firewalld -l
â firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2016-12-30 17:49:36 UTC; 14min ago
Docs: man:firewalld(1)
Main PID: 698 (firewalld)
CGroup: /system.slice/firewalld.service
ââ698 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid

Dec 30 17:49:36 s######.secureserver.net firewalld[698]: WARNING: ipset not usable, disabling ipset usage in firewall.
Dec 30 17:49:36 s######..secureserver.net firewalld[698]: WARNING: ip6tables not usable, disabling IPv6 firewall.
Dec 30 17:49:36 s######..secureserver.net firewalld[698]: WARNING: '/usr/sbin/iptables-restore -n' failed:
Dec 30 17:49:36 s######..secureserver.net firewalld[698]: WARNING: '/usr/sbin/ebtables-restore --noflush' failed:
Dec 30 17:49:36 s######..secureserver.net firewalld[698]: ERROR: COMMAND_FAILED
Dec 30 17:50:41 s######..secureserver.net firewalld[698]: ERROR: ZONE_ALREADY_SET: public

The "sudo ifconfig" command outputs "sudo: ifconfig: command not found"

At this point I’m stuck.

I know iptables isn’t working as it should and firewalld when installed says it’s not running.

To confuse things even further I’m trying to install Virtualmin and it installs and opens ports for MYSQL and Usermin (port 20000), but fails to open other ports for Webmin (10000), POP3, FTP…

Godaddy support are useless, they don’t appear to understand the concept that the server is starting with a fault in the iptables setup.

What I’d really like to know is how ports 22 and 80 are open when iptables and firewalld aren’t enabled? Is there another firewall built into Godaddy servers by default???

David Law