2024-08-07 16:25:14 +02:00
|
|
|
# HAProxy Rules for the Fixed IPv4 Provider
|
2024-02-07 00:21:45 +01:00
|
|
|
|
|
|
|
In case I don't have a fixed IPv4 address, I use these rules to route the services through a fixed IPv4 provider like Oracle Cloud.
|
2024-08-05 21:37:16 +02:00
|
|
|
|
2024-08-07 16:25:14 +02:00
|
|
|
## Pre-Requesites
|
|
|
|
|
|
|
|
* Install HAProxy on the server : `sudo dnf install -y haproxy`
|
|
|
|
* Copy the configuration file: `sudo cp /home/opc/bin/NAT/haproxy.cfg /etc/haproxy/haproxy.cfg`
|
|
|
|
* Enable the service: `sudo systemctl enable --now haproxy`
|
|
|
|
* Open the ad-hoc ports (bound from haproxy.cfg) in the firewall, for instance: `sudo firewall-cmd --add-port=80/tcp --permanent`
|
|
|
|
|
2024-08-05 21:37:16 +02:00
|
|
|
## IP Addresses in Use
|
|
|
|
|
2024-08-06 15:56:10 +02:00
|
|
|
| Public IP (Oracle) | Internal IP (Oracle) | Wireguard client IP | Description |
|
|
|
|
| --- | --- | --- | --- |
|
|
|
|
| 129.151.211.229 | 10.0.0.104 | 10.0.100.10 | fastlight (Hostux FR) |
|
|
|
|
| 129.151.214.116 | 10.0.0.143 | 10.0.100.20 | norrsken (Hostux SE) |
|