What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Accidentally overwrote dnsmasq.conf file

bruggy

New Around Here
Hello, noob here...

As my title states I think that I accidentally wrote over my firmware's dnsmasq.conf file. Is there any way of adding it back? After researching I have found that this file is dynamically built by the firmware so I did a factory reset of my router and flashed Merlin's newest on the device but still a no go...

The issue that I'm now having is that when attempting to run an OpenVPN client on my Asus 56u I keep getting the following error in my log:

Dec 31 22:28:45 rc_service: httpd 432:notify_rc start_vpnclient2
Dec 31 22:28:47 openvpn[1159]: Options error: You must define CA file (--ca) or CA path (--capath)
Dec 31 22:28:47 openvpn[1159]: Use --help for more information.

The reason I was messing around with the config file is a whole other project itself but I really seemed to muff up my VPN client in the process.

Any insight from the pros would be much appreciated :)

Thanks
 
Hello, noob here...

As my title states I think that I accidentally wrote over my firmware's dnsmasq.conf file. Is there any way of adding it back? After researching I have found that this file is dynamically built by the firmware so I did a factory reset of my router and flashed Merlin's newest on the device but still a no go...

The issue that I'm now having is that when attempting to run an OpenVPN client on my Asus 56u I keep getting the following error in my log:

Dec 31 22:28:45 rc_service: httpd 432:notify_rc start_vpnclient2
Dec 31 22:28:47 openvpn[1159]: Options error: You must define CA file (--ca) or CA path (--capath)
Dec 31 22:28:47 openvpn[1159]: Use --help for more information.

The reason I was messing around with the config file is a whole other project itself but I really seemed to muff up my VPN client in the process.

Any insight from the pros would be much appreciated :)

Thanks
Hello, noob here...

As my title states I think that I accidentally wrote over my firmware's dnsmasq.conf file. Is there any way of adding it back? After researching I have found that this file is dynamically built by the firmware so I did a factory reset of my router and flashed Merlin's newest on the device but still a no go...

The issue that I'm now having is that when attempting to run an OpenVPN client on my Asus 56u I keep getting the following error in my log:

Dec 31 22:28:45 rc_service: httpd 432:notify_rc start_vpnclient2
Dec 31 22:28:47 openvpn[1159]: Options error: You must define CA file (--ca) or CA path (--capath)
Dec 31 22:28:47 openvpn[1159]: Use --help for more information.

The reason I was messing around with the config file is a whole other project itself but I really seemed to muff up my VPN client in the process.

Any insight from the pros would be much appreciated :)

Thanks


Okay so I was way off on the problem... After looking in the etc/ directory it seems that the dnsmasq.conf file was rebuilt most likely when I re-flashed the firmware. The error was mere stupidity on my end by not re-adding the Certificate which is now evident by the error.
 
A reboot or restarting dnsmasq would have done the same:
Code:
service restart_dnsmasq
 
The reason I was messing around with the config file is a whole other project itself but I really seemed to muff up my VPN client in the process.
Before tinkering with any of the conf files, it is best to read through the relevant wiki.
https://github.com/RMerl/asuswrt-merlin/wiki/Custom-config-files

Basically, if you place this in /jffs/scripts/:
- placing dnsmasq.conf replaces the content of /etc/dnsmasq.conf (only do this if you exactly know what you do)
- placing dnsmasq.conf.add adds to /etc/dnsmasq.conf
- placing dnsmasq.postconf adds or changes /etc/dnsmasq.conf (best option in most cases)
 
Thanks for the info regarding the Custom Config files. I guess if you're not breaking things you aren't learning :)

Thanks again!
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!

Staff online

Back
Top