FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
306 views 3 comments
by anonymous
Hi All:

Is it normal behavior for the /etc/ipsec.conf and /etc/ipsec.secrets files to just disappear after /etc/init.d/ipsec is restarted?

How do I stop that or work around that?

Cheers,

John

1 Answer

0 votes
by
Because /etc/init.d/ipsec generate them on start, you can change information inside that file and it will generate things you want
by anonymous
Ok. How do I preserve the settings?

I edit the file in vi.

Save it.

cat it, its correct.

do this: /etc/init.d/ipsec reload

and my changes are gone.

How can I preserve my updated ipsec.conf and ipsec.secrets?

Cheers,

John
by
Hi:

I change may settings in ipsec.conf and ipsec.secrets, save the files, check them with cat and then issue a /etc/init.d/ipsec reload and presto, my edits are gone and i'm right back where I started before I edited them.

How can I STOP RTUOS from wiping my changed ipsec.conf and ipsec.secrets?

How to a save those files so that when IPSec starts the files are the updated ones?

This is usually simple but you guys are doing some magic with a non-existant /etc/directory that I don't understand.

Cheers,

John
by anonymous
ok, to do this you need to use the uci interface, https://openwrt.org/docs/guide-user/base-system/uci

Cheers,

John