You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
331 B
8 lines
331 B
#!/usr/sbin/nft -f
|
|
|
|
# Lego listens on port 80 and Quay on port 8443
|
|
add rule inet itix-fw input tcp dport { 80, 8443 } counter accept
|
|
|
|
# Redirect port 443 to 8443 (Quay)
|
|
add rule inet itix-nat prerouting tcp dport 443 counter redirect to 8443
|
|
add rule inet itix-nat output ip daddr 127.0.0.1 tcp dport 443 counter redirect to 8443
|
|
|