Proxmox/SSL Redirect

From Omnia
Revision as of 02:14, 24 March 2024 by Kenneth (talk | contribs) (Created page with " Tempoary: iptables -t nat -A PREROUTING -d 10.0.0.21 -p tcp --dport 443 -j REDIRECT --to-port 8006 Persist: /etc/network/interfaces post-up iptables -t nat -A PREROUTING -d 10.0.0.21 -p tcp --dport 443 -j REDIRECT --to-port 8006 || true <pre> auto vmbr0 iface vmbr0 inet static address 10.0.0.121/24 gateway 10.0.0.1 bridge-ports enp3s0 bridge-stp off bridge-fd 0 post-up iptables -t nat -A PREROUTING -d 10.0.0.21 -p t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Tempoary:

iptables -t nat -A PREROUTING -d 10.0.0.21 -p tcp --dport 443 -j REDIRECT --to-port 8006

Persist:

/etc/network/interfaces
 post-up iptables -t nat -A PREROUTING -d 10.0.0.21 -p tcp --dport 443 -j REDIRECT --to-port 8006 || true
auto vmbr0
iface vmbr0 inet static
        address 10.0.0.121/24
        gateway 10.0.0.1
        bridge-ports enp3s0
        bridge-stp off
        bridge-fd 0
        post-up iptables -t nat -A PREROUTING -d 10.0.0.21 -p tcp --dport 443 -j REDIRECT --to-port 8006 || true
#Public