LXC - Docker_Wireguard not able to forward packets

Hi Team, Unfortunately, i was not able to enable “ip forwarding packets” :

root@fd531ae7c943:/# cat /proc/sys/net/ipv4/ip_forward*

0

*root@fd531ae75245:/# sysctl -w net.ipv4.ip_forward=1
sysctl: setting key “net.ipv4.ip_forward”: Read-only file system

=> root@fd531ae75245:/# vim /etc/sysctl.conf*

Even when if i change sysctl.conf file:

     - net.ipv4.ip_forward=1
  • Do we have a solution ???

Thanks in advance !

Dee

Is this inside the container?

Hi Thomas,

  • Yes. It is inside the LXC container + docker.

By any chance, would you be able to help on this ?

Thanks in advance!

Dee

Which container are you running that in the LXC one or the docker one?