Give persistent acces to internet for a second bridge network


I create a second bridged network ‘lxdbr1’:

dns.domain: lxdbr1
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 ! -d -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)

Have you tried setting ipv4.nat=true?

1 Like

Thanks a lot !!

It works like a charm ;o)

1 Like