Difference between revisions of "LXD Wrapper"
Jump to navigation
Jump to search
(Created page with "# a.b.c.d is ip address of LXD host and lxdbr0 is default bridge of host 172.16.0.1/23 is lxdbr0 ip/net # Proxy DNAT - https://discuss.linuxcontainers.org/t/using-proxy-devic...") |
(No difference)
|
Latest revision as of 22:25, 3 November 2021
a.b.c.d is ip address of LXD host and lxdbr0 is default bridge of host 172.16.0.1/23 is lxdbr0 ip/net
Proxy DNAT
lxc config device add testcontainer proxyv4 proxy nat=true listen=tcp:a.b.c.d:7777 connect=tcp:0.0.0.0:7777
Static IPS
lxc stop c1 lxc network attach lxdbr0 c1 eth0 eth0 lxc config device set c1 eth0 ipv4.address 172.168.16.11 lxc start c1