Iptables
Jump to navigation
Jump to search
On Debian Buster
https://wiki.debian.org/iptables
iptables -t nat -A PREROUTING -p <tcp|udp> -d <vip> --dport <port> -j REDIRECT
Instead of LXD proxy for nginx
sudo iptables -t nat -A PREROUTING -p tcp -d 10.x.x.x --dport 443 -j DNAT --to-destination 172.16.x.x