Time4VPS uses OpenVZ virtualization so you can’t edit time or kernel.
Not working:
Fail2Ban
Here are my steps to a working time4VPS NethServer:
Start with a fresh CentOS 7.
Install requirements:
yum -y install which rsyslog e2fsprogs
Protect preconfigured files:
chattr +i /etc/sysconfig/network-scripts/ifcfg-venet0*
Set a root password:
passwd
Install NethServer:
yum install -y http://mirror.nethserver.org/nethserver/nethserver-release-7.rpm
nethserver-install
Here it breaks via ssh and you need to reboot. It’s no problem, the process is finished.
If ssh is still not working you need to go to time4vps emergency console and disable shorewall:
shorewall clear
Now ssh should work again for easier copy/paste.
Set route on interface update:
echo ip route add default dev venet0 > /etc/e-smith/events/actions/route-venet0
ln -s ../actions/route-venet0 /etc/e-smith/events/interface-update/S81route-venet0
Set route on boot:
echo 0.0.0.0/0 dev venet0 > /etc/sysconfig/network-scripts/route-venet0
chattr +i /etc/sysconfig/network-scripts/route-venet0
Set network interface - replace 1.2.3.4 with your IP:
db networks set venet0 ethernet ipaddr 1.2.3.4 netmask 255.255.255.255 role green
Shorewall fix:
touch /var/log/firewall.log
shorewall show -f capabilities > /etc/shorewall/capabilities
mv /var/run/.nethserver-fixnetwork ~
mv /var/lib/shorewall/.iptables-restore-input ~
signal-event firewall-adjust
Disable chronyd - we are unable to set time in OpenVZ container:
config setprop chronyd status disabled
Now you should see all services working.