So as of today wanted to try out VM’s rather than containers as I noticed that when I migrated containers from one server to another, it had some issues. The containers did work, but were slightly bugged that I can’t rely on them. So wanted to give VM a try… however, when using something like:
lxc config device add container myport80 proxy listen=tcp:0.0.0.0:22 connect=tcp:127.0.0.1:22
It says it only supports NAT. And when I use nat=true, getting:
Cannot listen on wildcard address "0.0.0.0" when in nat mode
I prefer using LXC’s config feature rather than iptables. Obviously I cannot use 0.0.0.0, but what would I replace it with? If anyone can help me with this, I greatly appreciate it.
lxc network forward port add lxdbr0 lxchostip tcp 22 containerip 22