SOLVED:
It seems to work if I add the following lines to vmbr0:
post-up iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to 10.10.10.2:80
post-down iptables -t nat -D PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to 10.10.10.2:80
Hi,
So far I have been able to setup Proxmox on a server with a public IP.
I do have a LXC VM running and it has internet.
Now I want to forward a port to my VM and I found this manual online.
Still, whatever I do, nothing seems to work (I disabled the firefwall on Proxmox).
My interfaces file...
Hi Manu,
Thanks for helping me out!!
I tried this part already but I must have made a mistake.
I tried again and gave the VM an IP: 10.10.10.50/24 and gateway 10.10.10.1 and everything works fine!
Hi,
I've read nearly all forum topic about this, but still I can't figure out how to set up an ip for my lxc containers.
- I have a server directly connected to the internet so I have 1 public ip.
- On this server I run a fresh installation of proxmox.
- I create one lxc container with Debian...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.