DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2010-11-24 18:57:16

atabaska
New member
Registered: 2010-11-22
Posts: 2

op_server 3 3 3 - What the evil process? :)

Sorry about my poor English...

About three days passed of searching the way to turn off my DNS-323 (F/W 1.09, ffp 0.5 with installed cleanboot 2.1 and transmission 2.11-1) in case of loss connection to ADSL-modem using "ping"-script.

My NAS connected with D-Link ADSL modem using UTP-cable (100 M/bit net).
NAS supply by UPS Ippon Back Power 500 and ADSL-modem not using UPS.
I trying use NUT package, but none drivers wanna see my UPS data.
Then I found the way to solve my problem another way.

I prepare to use next script as one of the "crond" scheduler task (based on script from http://dns323.kood.org/forum/viewtopic.php?id=5403), which I run every 5 min:


#!/ffp/bin/sh

PING=`/ffp/bin/ping -c 3 192.168.1.1 | /ffp/bin/grep % | awk '{print $7}'`

if [ "$PING" == "100%" ]
        then
        echo "" >> /ffp/etc/power.log
        date >> /ffp/etc/power.log
        echo "Ping test failure! Starting shutdown procedure..." >> /ffp/etc/power.log
        /ffp/start/transmission.sh stop
        echo "Waiting 60 sec for transmission client stop..." >> /ffp/etc/power.log
        sleep 60s
        date >> /ffp/etc/power.log
        echo "Shutdown now..." >> /ffp/etc/power.log
        /sbin/shutdown
        else
        echo "" >> /ffp/etc/power.log
        date >> /ffp/etc/power.log
        echo "Ping test successful." >> /ffp/etc/power.log
fi


If I run this script manually (change IP-address of my ADSL-modem, but connection was at working state), all work fine.

But... here I found very upsetting issue: if ADSL-modem loss it's power (or was power off), "shutdown" command doesn't turn off NAS! Shutdown complete only if I turning on my modem.

Finally I found the "troublemaker". It was the process named as "op_server 3 3 3". I add "op_server" substring into the "/ffp/etc/cleanboot.conf" file and script starts working correctly.

Maybe someone face the same problem, and then my story will be useful for them.

P.S. If someone can tell me, what the process is "op_server" and for what it is, I will be very pleased.

Last edited by atabaska (2010-11-25 20:52:15)

Offline

 

#2 2010-11-24 20:58:15

rsd76
Member
Registered: 2010-04-18
Posts: 47

Re: op_server 3 3 3 - What the evil process? :)

Hi atabaska,

No I do not specifically know what the op_server process does. It is something the dns-323 firmware (maybe even CH3NAS).
I do know how it is started:
Using the /etc/inittab the init (pid = 1) process start /etc/rc.sh.
In this script all kind copying, linking and starting of processes is done (Als the fun_plug check script: /usr/sbin/chk_fun_plug) without it ffp would not be possible easily.
In this script (for my firmware: 1.08) this script also starts ex_opserver. This process starts "op_server 3 3 3".
Using strings to look for readible characters you see the following:
/sys/custom/default/sib.conf
CF-SYS-MODEL-STR
DNS-323
3 3 3
duo35lr
7 3 1
CH3SNAS
6 6 6
0 0 0
This seems to me a check. Read /sys/custom/default/sib.conf, get CF-SYS-MODEL-STR and check what it is. (CF-SYS-MODEL-STR = "DNS-323").
So it gets the 3 3 3 arguments.

Using strings on /usr/sbin/op_server (linked to /sys/crfs/sbin/op_server) you get much more output.
You get a lot of commands. Commands for network interfaces, commands for harddisks changes and much more.
I believe this program might be used from the dns-323 web interface for changes or for retrieval of info to the web interface and such.

Hope this helps! Maybe someone else has a idea?


Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us. (Calvin & Hobbes)

Offline

 

#3 2010-11-25 08:52:36

atabaska
New member
Registered: 2010-11-22
Posts: 2

Re: op_server 3 3 3 - What the evil process? :)

Thank you for your info, rsd76! I will analyze it...

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB