apt install nginx
nano /etc/nginx/sites-available/gwproxy
server {
listen 443 ssl;
server_name web.lab.lan;
ssl_certificate /etc/ssl/certs/web.crt;
ssl_certificate_key /etc/ssl/private/web.key;
location / {
proxy_pass https://web.lab.lan;
}
}
server {
listen 443 ssl;
server_name mail.lab.lan;
ssl_certificate /etc/ssl/certs/mail.crt;
ssl_certificate_key /etc/ssl/private/mail.key;
location / {
proxy_pass https://mail.lab.lan;
}
}
ln -s /etc/nginx/sites-available/gwproxy /etc/nginx/sites-enabled/gwproxy
nginx -t
systemctl restart nginx
<gw_ip> web.lab.lan
<gw_ip> mail.lab.lan