FX30 I cant save the config

I put my commands and everything goes well until I turn off and then turn on when I lose everything i did I use Linux any help pls !!

Do you mean some of the files disappeared?
How do you power off?
According to fx30 user guide, you need to trigger pin3.

echo > /etc/resolv.conf
cm data connect & iptables --flush
iptables -t nat -A POSTROUTING --out-interface rmnet_data0 -j MASQUERADE
iptables -A FORWARD -o usb0 -i rmnet_data0 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i usb0 -o rmnet_data0 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward
cat /etc/resolv.conf

I use this config but when I try to save the file I can’t find the config inside it

my knowledge of Linux is weak so maybe I do something wrong can u tell me the config save steps

Which file are you trying to write?

/etc/resolv.conf this file i try to save it but I don’t find anything inside to save

you need to use “vi” command to modify the file.

Hi @a.douma,
To add firewall rules, please modify the file “/etc/iptables.rules” directly instead of trying to modify the ‘resolv.conf’ file.

Note, this makes a copy of the iptables riles into the overlay, which can be deleted if the unit is factory reset.