LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-15-2019, 04:04 AM   #1
netaccs
Member
 
Registered: Mar 2018
Posts: 42

Rep: Reputation: Disabled
edit linux settings on asus router


Hello everyone !

I have Asus RT-AC1200GU with ssh access. I don't know what kind of linux is installed.
uname -a
Linux (none) 2.6.36 #1 SMP Fri Nov 9 19:58:54 CST 2018 mips GNU/Linux

I am trying to edit vsftpd.conf file
I can edit and save the configuration file, but don't know how to reload it.
Try several commands like kill -HUP, killall -HUP, killall -1, without success.
After router restart, it reloads original vsftpd.conf, somehow reset my settings.
There is /jffs partition, which I understand is writable, with two files inside -> nmp_client_list and syslog.log

Also after every restart I have to enter this command manually -> arp -i br0 -s ipaddress macaddress

There is cru installed. I try with
*/10 * * * * arp -i br0 -s ip mac
but static route was not added, after router reboots.

Is there anyway to make my changes permanent?

Thanks in advance !

Last edited by netaccs; 10-16-2019 at 09:21 AM.
 
Old 10-16-2019, 02:03 PM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
I suggest you to use the GUI of the router. It has a very special configuration and it is definitely far from the "usual" distros.
here you can find some info: https://mycyberuniverse.com/linux/fu...mand-line.html but you may need to look for other info too.
 
Old 11-19-2019, 02:31 AM   #3
netaccs
Member
 
Registered: Mar 2018
Posts: 42

Original Poster
Rep: Reputation: Disabled
Hello.
I can't connect using telnet, so used ssh access.
I have no output for command "flash all". When I type "flash" I get this:
Quote:
flash
Usage:
flash -r <offset> -c <count> - read <count> bytes from <offset>
flash -w <offset> -o <value> - write <offset> with <value>
flash -f <start> -l <end> - erase from <start> to <end>
Note:
<count> is decimal, the other parameters are hexadecimal
One of the problems is that I can't passive ports for /tmp/etc/vsftpd.conf.
I can edit the file, but cannot restart ftp server. When changes are made, after reboot all gone.
 
Old 11-19-2019, 04:11 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
yes, this is the way how it designed/works. /tmp contains only temporary files, all these settings are generated. That's why I suggested you to use the GUI of the router to make permanent changes.
the flash command is not really the tool you need, you may kill your router with that command, be careful.
 
Old 12-03-2019, 07:48 AM   #5
netaccs
Member
 
Registered: Mar 2018
Posts: 42

Original Poster
Rep: Reputation: Disabled
Ok, but router somehow safe changes after reboot - for example ip, password and etc and etc.
Can they be found somehow, where I can edit files, so changes be kept?

Thanks !
 
Old 12-03-2019, 07:55 AM   #6
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Is there some reason you're so averse to using the GUI that was designed to do exactly that?
 
Old 12-03-2019, 09:07 AM   #7
netaccs
Member
 
Registered: Mar 2018
Posts: 42

Original Poster
Rep: Reputation: Disabled
For example static route after system reboot.
 
Old 12-03-2019, 09:44 AM   #8
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
For example grilled cheese? I'm totally baffled by what that reply is supposed to mean...
 
Old 12-03-2019, 03:42 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
The OP is trying to make a static route from command line. I'm kind of surprised that Asus kept ssh in.

Because you are running an odd version of linux on a special file/storage I assume these are the correct instructions. https://www.snbforums.com/threads/ad...-server.45298/
 
Old 12-03-2019, 05:27 PM   #10
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
To be fair, I know that, I was asking why he doesn't just use the GUI (which Asus HAS that ability in the GUI in most of their routers), so it seems he just wants to avoid the gui, I was wondering WHY since they kinda created it specifically to AVOID having people mess around in ssh...
 
Old 12-03-2019, 05:51 PM   #11
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
My impression: The OP doesn’t know how to use the GUI.
netaccs, using a web browser, enter http://IP-of-router Example... http://192.168.1.1
 
Old 12-04-2019, 02:14 AM   #12
netaccs
Member
 
Registered: Mar 2018
Posts: 42

Original Poster
Rep: Reputation: Disabled
I know how to use the web gui, I made all the settings from there.
Just asus this asus router doesn't support static route using the gui.
If static route is not configured, Wake up on lan (wol) packages are not passthrough.

So... if in /jffs partition I create "scripts" folder it should be read it by the system?
 
Old 12-09-2019, 04:21 AM   #13
PeterAlberto
LQ Newbie
 
Registered: Dec 2019
Posts: 1

Rep: Reputation: Disabled
Reply to the editing of linux settings on ASUS router

I agreed to the comment of using the GUI. You need to login properly in the GUI by looking in the codes and implementing them properly. Thanks for the link and the solution for solving this router problem.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Router died, considering new ASUS router sneakyimp Linux - Networking 11 08-19-2014 07:58 AM
Baud rate and other settings settings for Linux UART drivers through ioctls. kauuttt Linux - Kernel 1 10-18-2012 12:50 PM
cannot ping wireless router or access router settings. wireless works, wired doesn't mattca Linux - Networking 1 06-09-2010 09:28 PM
asus p5b or asus p5b-e on f edora core 6? cizzi Linux - Software 0 01-31-2007 04:46 PM
Does SuSe 8.0 support Asus A7V333 and Asus V7100 Magic GeForce 2? chansky Linux - Hardware 2 08-26-2002 01:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration