Difference between revisions of "Iptables"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
+ | https://www.hostinger.com/tutorials/iptables-tutorial | ||
+ | |||
# On Debian Buster | # On Debian Buster | ||
Latest revision as of 14:38, 12 September 2022
https://www.hostinger.com/tutorials/iptables-tutorial
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