sysctl and iptables rule after reboot

  • Hi,

    I installed the VPN Manager, configured a profile from my VPN provider, and it works great. Now I enabled ipforwarding with

    Code
    sysctl -w net.ipv4.ip_forward=1

    and added iptable rules

    Code
    ~ # iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
    ~ # iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE

    it works great, now i can access the internet throug my libreelec-device over my vpn provider

    But: After Reboot, the ipforwarding is disabled and the iptable rules are lost.

    How can I make them persistent? I can't apt-get install iptable-persistent, and i cant create a /etc/sysctl.conf file.

    Thanks!