Tag Archives: CrashPlan

Crashplan PROe on CentOS 7

SELINUX

First thing we are going to do is set selinux to allow the two ports in use by CrashPlan (4280 and 4282)

semanage port -a -t http_port_t -p tcp 4280
semanage port -a -t http_port_t -p tcp 4282

FIREWALL

Next we want to edit the rules for firewalld to allow the CrashPlan ports. To do so we create a new service for CrashPlan and add that service to the public zone.

Create a new file:
/etc/firewall/services/crashplan.xml

Add the following lines:

<?xml version="1.0" encoding="utf-8"?>
<service>
<short>CrashPlan</short>
<description>CrashPlan Service</description>
<port protocol="tcp" port="4280"/>
<port protocol="tcp" port="4282"/>
</service>

Next edit the file:
/etc/firewalld/zones/public.xml

Append the following line:
<service name="crashplan"/>

We need to restart the firewall after changing the rules.

systemctl restart firewalld

SYSTEMD

CentOS 7 has moved to systemd, so instead of using init scripts we are going to create a systemd service. This will allow us to use systemd to stop and start the CrashPlan service.

First remove the legacy scripts from init.d created during installation

rm /etc/rc3.d/S99proserver
rm /etc/init.d/proserver

Create a systemd service file:
/etc/systemd/system/proserver.service

Add the following lines:
[Unit]
Description=CrashPlanEngine
After=network.target

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/opt/proserver/bin/proserver start
ExecStop=/opt/proserver/bin/proserver stop

[Install]
wantedBy=multi-user.target

Enable the service to start on boot

systemctl enable proserver