Refresh the list of current services to show the new service and status.
You can follow the compilation progress by looking at the
# 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 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
Use the IPv6 adresses for ports 8080 and 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.