Set network accessibility of Trilio GUI
By default is the Trilio GUI available on all NICs on port 443.
To limit this to only one IP the following steps need to be applied.
Network Setup
The Trilio Appliance provides by default the possibility of 4 VIPs.
A general VIP which can be used for everything
A public VIP for the public endpoint
An internal VIP for the internal endpoint
An admin VIP for the admin endpoint
Should an additional VIP be required to restrict the access of the Trilio Dashboard to this VIP the new VIP needs to be created as a new resource inside the PCS cluster.
Nginx setup
When the new dashboard_ip has been created or decided, then the next step is to set up the proxy forwarding inside Nginx, which will make the Trilio GUI available through port 8000.
All of the following steps need to be done all Trilio appliances of the cluster.
Create new conf file at
/etc/nginx/conf.d/tvault-dashboard.conf
. Replace variablesdashboard_ip
andvirtual_ip
as configured or decided.edit
/etc/nginx/nginx.conf
and uncomment line#include /etc/nginx/conf.d/*.conf;
check nginx syntax:
nginx -t
reload nginx conf:
nginx -s reload
Verify if the new cluster resource is visible or not using
pcs resource
command and by accessing thedashboard_ip.
Limit the access of the Dashboard
The configured dashboard_ip will always end on the nginx service on port 8000 and will then be forwarded to the local dashboard service on port 443.
This configuration limits the required access to the local dashboard service to the Trilio appliance cluster itself. All other connections on port 443 can be dropped.
The following commands will set the required iptable rules.
Verify the accessibility as required
At this point is the Trilio GUI only reachable on the dashboard_ip on port 8000. Accessing the Trilio GUI through any other IP or on port 443 is not allowed.
Last updated