Hi,
I create a second bridged network ‘lxdbr1’:
config:
dns.domain: lxdbr1
ipv4.address: 10.0.1.1/24
ipv4.dhcp.ranges: 10.0.1.10-10.0.1.254
ipv6.address: fd42:8e21:5f17:6bed::1/64
ipv6.nat: “true”
I can give access to internet at this network with an iptables rule:
iptables -t nat -A POSTROUTING -s 10.0.1.0/24 ! -d 10.0.1.0/24 -j MASQUERADE
I would like to make this rule persistent.
I tried iptables-save without success coz my rule is deleted by lxd.service
Is there a way to define it in lxd ?
Thanks for your help ;o)