Refresh the list of current services to show the new service and status.
You can follow the compilation progress by looking at the slapos-node-software.log
using:
# tail opt/slapos/log/slapos-node-software.log -f
The Frontend will be installed inside a computer partition and will listen on ports 8080 and 4443. As user permissions in Linux systems prevent accessing ports larger than 1024, incoming traffic on public ports 80 and 443 has to be forwarded to the correct ports the Frontend is listening on.
This can be done using a Firewall with NAT traversal or using Socat. Socat is a relay for bidirectional data transfer between two independent data channels. Data channels can be files, pipes, devices (terminal or modem, etc.), or sockets (Unix, IP4, IP6 - raw, UDP, TCP), etc. For more information, please refer to the Free Software Directory).
To install socat, head to your terminal and:
sudo su
# sudo apt-get install socat
Find the IPv6 adresses used by the Frontend which is in its configuration folder:
# cat /srv/slapgrid/slappart8/etc/apache_frontend.conf
Listen 10.0.176.4:8080
Listen 10.0.176.4:4443
Listen [2401:5180:0:42::xxxx]:8080
Listen [2401:5180:0:42::xxxx]:4443
ServerAdmin admin@example.com
DefaultType text/plain
Use the IPv6 adresses for ports 8080 and 4443.
Listen [2401:5180:0:42::d62a]:8080
Listen [2401:5180:0:42::d62a]:4443
Then call socat:
# socat TCP4-LISTEN:80,fork TCP6:[2401:5180:0:42::xxxx]:8080 &
socat TCP4-LISTEN:443,fork TCP6:[2401:5180:0:42::xxxx]:4443 &
To see whether your bindings are active, you can
root@svenslapostest2:/# ps aux | grep socat
debian 4299 0.0 0.0 12728 2208 pts/0 S+ 11:04 0:00 grep socat
root 24449 0.0 0.0 19644 2696 ? S Mar20 0:00 socat TCP4-LISTEN:80,fork TCP6:[2401:5180:0:42::xxxx]:8080
root 24674 0.0 0.0 19644 2604 ? S Mar20 0:00 socat TCP4-LISTEN:443,fork TCP6:[2401:5180:0:42::xxxx]:4443
You can also verify that the port forwarding is working by accessing your frontend URL (in our case) foobar.slaptest.erp5.net
in a browser. If successful, the listener should forward to the IPv6 address the Apache frontend is listening on.