source /etc/network/interfaces.d/*auto loiface lo inet loopbackauto enp0s31f6iface enp0s31f6 inet static address 94.130.x.x/26 gateway 94.130..x.xauto vmbr0iface vmbr0 inet static address 10.10.10.1/24 bridge-ports none bridge-stp off bridge-fd 0 post-up echo 1 > /proc/sys/net/ipv4/ip_forward post-up iptables -t nat -A POSTROUTING -s '10.10.10.0/24' -o enp0s31f6 -j MASQUERADE post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o enp0s31f6 -j MASQUERADE post-up iptables -t raw -I PREROUTING -i fwbr+ -j CT --zone 1 post-down iptables -t raw -D PREROUTING -i fwbr+ -j CT --zone 1auto vmbr1iface vmbr1 inet static address 172.16.0.1/24 bridge-ports none bridge-stp off bridge-fd 0
OK now the hard part :
A Record example.com pointing to Public IP of Proxmox Server -> 94.130.x.x
iptables -t nat -A PREROUTING -p tcp --dport 10443 -j DNAT --to-destination 10.10.10.10:10443
## Automatically generated configuration.# Do not edit this file manually.#global uid 80 gid 80 chroot /var/haproxy daemon stats socket /var/run/haproxy.socket group proxy mode 775 level admin nbthread 1 hard-stop-after 60s no strict-limits tune.ssl.default-dh-param 2048 spread-checks 2 tune.bufsize 16384 tune.lua.maxmem 0 log /var/run/log local0 info lua-prepend-path /tmp/haproxy/lua/?.luadefaults log global option redispatch -1 timeout client 30s timeout connect 30s timeout server 30s retries 3 default-server init-addr last,libc# autogenerated entries for ACLs# autogenerated entries for config in backends/frontends# autogenerated entries for stats# Frontend: Public_Facing_Pool ()frontend Public_Facing_Pool bind *:443 name *:443 proto h2 bind *:80 name *:80 proto h2 mode http option http-keep-alive maxconn 500 # logging options # ACL: Web-Server acl acl_65baf2832edf80.37086579 hdr_beg(host) -i example.com # ACL: Web-Server1 acl acl_66baf2832edf80.37086579 hdr_beg(host) -i anotherexample.com # ACTION: Web-Server use_backend Web-Server if acl_65baf2832edf80.37086579 # ACTION: Web-Server use_backend Web-Server1 if acl_66baf2832edf80.37086579# Backend: Web-Server ()backend Web-Server # health checking is DISABLED mode http balance roundrobin http-reuse safe server Web-Server 172.16.0.2:443 # Backend: Web-Server1 ()backend Web-Server # health checking is DISABLED mode http balance roundrobin http-reuse safe server Web-Server 172.16.0.3:443 # Backend: acme_challenge_backend (Added by ACME Client plugin)backend acme_challenge_backend # health checking is DISABLED mode http balance source # stickiness stick-table type ip size 50k expire 30m stick on src http-reuse safe server acme_challenge_host 127.0.0.1:43580 # statistics are DISABLED
Please anybody can help to achieve that since it is very important for me and I don't know anymore what to do, coming around to this more than 3 days for hours and hours. I don't know if something wrong with it or lack of my knowledge.