To pass a CIFS/SMB share to an unprivileged LXC container, we will need to configure the mount on the Proxmox host and then pass this through to the LXC container.
The following steps need to be performed on your Proxmox host:
mkdir -p /mnt/media| # Install build dependencies + appropriate linux-headers package | |
| apt install -y dkms build-essential pve-headers-$(uname -r) | |
| # Download the latest r8125 dkms package | |
| curl -s https://api.github.com/repos/awesometic/realtek-r8125-dkms/releases/latest | | |
| grep "browser_download_url.*amd64.deb" | | |
| cut -d : -f 2,3 | | |
| tr -d \" | | |
| wget -i - | 
This is a super simple bash script that will ping Googles DNS servers every 10 minutes and if there is no response, try an interface down/up before it rebooting the machine.
NOTE:
You will probably need to update the script where it says igc0 with your WAN interfaces name (you can find this easily through the GUI or by running ifconfig).
/usr/local/etc/rc.dchmod 755 ping_check.sh