Online / Offline Status Notification System via push
-
How does this really differ from FreeNAS?
-
I need some clarification here - Do you mean NAS like NAS in Network Attached Storage?
Regards
Daniel S. Haischt -
Beside my understanding issue why you associate the acronym NAS with m0n0wall or pfSense, I would like to suggest to at least publish the sources of your server. That way people would be able to install the server at their side if necessary.
Regards
Daniel S. Haischt -
NAS = Network Access Server aka Router (I used it so that i dont have ro feferre to both pfSense and Mono at the time)
So it has nothing to do with network attached storage.
As to the source dodes for the server, yes I might think of releasing them but i have 2 problems w. that: a) Setup Complexity (Althoughr yes I can do installer) b) Security: This functionality is a part of our propriatary system, so if I release everything some ppl can get full functionality of our propriatary system
-
NAS is somehow confusing. You should try to find a yet unused name imo.
-
ok renaming it to Router how is that?
-
I just placed my script on the pfSense Dev image and when I was trying to execute it (bash script i got errors)
a) No bash ?
b) no DIR commands?I've chaked the bin rirectory and ddint find the command there, so i will try to add them. But the question is, if i add them therewill they will be included in compiled image?
also i will neeed those commands:
- case
2)grep
3)cut
4)awk
5)wget
- case
-
replace bash shell with tcsh or sh shell
replace youre wget commands with fetch commands
all the other commands are all ready in embedded 1.01dir is called ls on bsd systems
-
Ok, so now I know what is a dofference in BSD and Linux.
"…all the other commands are all ready in embedded 1.01 " I didnt find any dev image for 1.01 so i used 1.0 but i did that long upgrade that it oferred, didnt really the the thing adding the commands but O look again today
-
Ok skript works now… one thing to get more reliable picture i wnat to check which interface assigned to LAN and WAN, I assome there is a file somwhere that says LAN=eth0 WAN=eth1
If I can get the interface names i can extract the IP values ... sure I can get them from config file, but i rather get the aluef directly from the OS (besides i have no idea how to make bach script to read XML) -
you may might be able to utilize some code from interfaces>assign or status>interfaces. Both these screens show information on which nic is assigned to which uinterfacename.
-
do you refer to PHP pages?
-
Yes.
-
I'm there now, still cant find the file weher intergface assigments are stored… unles its webguiconfig.in
-
$g['varrun_path'] . "/lan.conf.dirty";
Is that config I need? what tha value of g[varrun_path]?
-
/etc/inc/globals.inc
-
actually I was fullish and miss the part in the main confog file that is cleraly saying LAN=eth1 etc in the XML file, just as usual…. so now im looking on how to read XML w/ bash script... aperantly i have no idea how to do that...
-
Erm, I dont think there is a EASY way to do this. Good luck!
-
Good, so at the end you wont tell me that my script is too easy :-P
-
Technically you could call php from your bash script and echo out the values after parsing but this is going to be SLLLOOOW.