I'm currently setting up my server. I use
proxmox which similar to
Important thing to know is that i only have 1 external IP address. On my server, I forward port 80 and 443 to virtual host
apache using this command :
iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to 10.0.43.113 iptables -t nat -A PREROUTING -p tcp --dport 443 -j DNAT --to 10.0.43.113
My network is also linked with :
iptables -t nat -D POSTROUTING -s '10.0.43.0/24' -o eth0 -j MASQUERADE
Now the problem is that if I do redirect port 80 & 443 this way, apt-get throws 404 Error when i use it from a VM (behind my gate).
How can I redirect port to my VM by having still apt-get working ? What am I doing wrong ?