Difference between revisions of "Iptables"
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
``` | ``` | ||
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/load_balancer_administration/s1-lvs-direct-vsa | https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/load_balancer_administration/s1-lvs-direct-vsa | ||
+ | |||
+ | |||
+ | 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 | ||
+ | ``` |
Revision as of 22:22, 8 August 2020
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