Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Govo

Pages: [1] 2 3 ... 10
1
Developers / Re: PHP to execute sudo command
« on: Today at 02:29:05 pm »
Sneak preview of DansGuardian config file,  https://www.dropbox.com/s/ve728b7qvlfyefs/dnsg%20config%20file.mp4?dl=0

You will be able to update the configuration file in a nice rich PHP format, instead of having use  VI OR Nano  the terminal.

Cheers
Gov!

2
Developers / Re: PHP to execute sudo command
« on: Today at 12:32:38 pm »
Hi Folks

Just given a quick update.

Quote
In the video I didn't update DansGurdian on the categories section as some of the blacklist files are missing, and in return DansGurdian won't restart as it cannot include the files.

I have updated the blacklist folder from the below url  this even and after extracting more files and folders  are missing.
http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&file=bigblacklist

Update,  I have put in check  to see if the folder exist, if the folder doesn't highlight in RED warning else give a green tick that every is OK to enable

see screen shot here https://www.dropbox.com/s/3dolzlwtweh6520/category%20warning%20.png?dl=0

Update 2
I have now added in a new section to add categories to the database, so if you are updating from http://urlblacklist.com ensure to check their live list taken from the category description file in the last build of the blacklist, if you missing some just add the name  of  the one missing, it will create it and save it as disabled by default.

screen shot here  https://www.dropbox.com/s/5er1oao9k8sv4rc/addcategory.png?dl=0


Update 3
Quote
Import MD IP address to the exception IP address from the pluto_main database.

I have now got this to import MD IP address on first setup.



Cheers
Gov!

3
Developers / Re: PHP to execute sudo command
« on: Today at 12:11:35 am »
Hi Folks

First, I would like to say to Alblasco well done on working on the web-filter and proxy, I had a look at your php scripts and to be honest, they are way to complicated for my PHP skills, but great work tough,  I really need to understand global php verbs.!

I have done great progress in my own project, have fully understood how to execute  sudo commands in PHP, Phenigma, /usr/pluto/bin  is the correct place for .sh files, thanks for the advice.

On that Note..let me get to were  it is.

I can now disable & enable categories .ie blacklist folder,  I can disable and enable the filtering on & off for the system at the click of button, great for when you are web designing and stuff.

So the project is going so good,  with a click of a button I can

Blocked & delete websites 
Add & delete exception IP address
Add & delete exceptional file types
Add & delete  allowed websites
Enabled & disable Categories  .ie blacklist

Check out the this short video clip to  see it in action. https://www.dropbox.com/s/scxmtf8datd2t1m/enable%20and%20disable%20filters%20%20plus%20categories.mp4?dl=0


In the video I didn't update DansGurdian on the categories section as some of the blacklist files are missing, and in return DansGurdian won't restart as it cannot include the files.

I have updated the blacklist folder from the below url  this even and after extracting more files and folders  are missing.
http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&file=bigblacklist

When testing this morning I was only missing the below list , but after updating some of them are back and some of them are gone.

Adult
childcare
forums
Publicite
redirector
ringtones
Violence
virus Infected

So if anyone has a full list/backup please zip it and give me a link to download them so I can fully test it, I would be great full.


To do
Allow time access
Import MD IP address to the exception IP address from the pluto_main database.
Create an Android app for access to the site, for now the browser works well
Add login and password box.

Overall its going good and thanks for reading ...!

Gov





4
Developers / Re: PHP to execute sudo command
« on: August 27, 2015, 11:13:31 pm »
Hi phenigma

No problem at all, I will try and hook up in IRC, it would great if the LMCE users went this, I am offer this for free when I am finish.

What I got done to day is added in the categories to database  and then allow them to be enabled through buttons,  tomorrow I will finish this section off so that it updates the DSG. this was  huge file to get in!

Check this short video clip.

https://www.dropbox.com/s/fdu4cakckxp5hrx/categories.mp4?dl=0

I have also found away to disable filtering and enable it again, but it brings me back visudo to get the command to executed, I go at that tomorrow.

Time to call it night for now  !


Cheers Gov




5
Developers / Re: PHP to execute sudo command
« on: August 27, 2015, 01:30:18 am »
Hi Posde & Phenigma

Thanks for the replies.

The problem wasn't the PHP script, you had to allow access in the visudo  ( Posde thanks for pointing me in right the direction ), according to a topic on the the internet the permission is


# Cmnd alias specification
Cmnd_Alias DANSGUARDIAN = /etc/init.d/dansguardian, /usr/sbin/dansguardian

# User privilege specification
root ALL=(ALL) ALL
www-data ALL=NOPASSWD: DANSGUARDIAN
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
%www-data ALL=NOPASSWD: DANSGUARDIAN

This allowed PHP to executed the command to restart DansGuardian.

You can see it working in this quick video, to get around the error of no response received from the server after submitting the command,  I put in a 10 second delay, and  then a finish button to bring you back home.

https://www.dropbox.com/s/mv2m300lhf0rjf8/videoclip2%20DansGuardian%20restart.mp4?dl=0


In order for the PHP scripts to work,  visudo has to be edited with the above code, writes access given to the dansguardian LISTS folder.

I have written a  PHP script to check if the database exists, if not, create the database and import the tables.

Here's a short video of it creating the database and then importing the sql file

https://www.dropbox.com/s/vh83kyopg86sxkl/databaseimportandcreate.mp4?dl=0

I am working on this as a plugin, it has its own folder inside  the /var/www/lmce-admin, this allows me to move it to any version of LMCE, the only cache is, DansGuardian and squid3 have to be installed first and some editing done to the IP-tables.


On that note, thanks for the replies I will keep you posted!


Gov.

6
Developers / Re: PHP to execute sudo command
« on: August 25, 2015, 01:57:49 pm »
Ah spot on, done some research last night and got it to work, just need to figure out why the page returns an error of no response back from server.

other than that, the project goes. on.

I can now update  blocked sites, added exceptional Ip address and allow  exceptional file types such as .mp3 .zip.

Thanks for the advice Posde much appreciated

Gov.

7
Developers / PHP to execute sudo command
« on: August 24, 2015, 10:38:21 pm »
Hi Folks

Working on a little project for dansguardian and squid3, mostly dansguardian,  but have ran into a problem,  is there away for PHP to execute sudo command.

I need to execute  /etc/init.d/dansguardian restart using PHP, I have seen the command in some php files in lmce-admin, but I just  can't get it to work. do I need to include some files belonging to LMCE?

Once I get pass this part my project will rolling, here is a quick video of what I have achieved so far

https://www.dropbox.com/sh/b4kwchpa153e6sr/AADbS964eH9DpuBLFCEKSON6a?dl=0

I have made some changes since this video..etc added in a delete button to remove blocked sites.

Any help would be great,
Govo

8
Installation issues / Re: Issue with 12.4 video play back of mp4
« on: August 17, 2015, 09:18:41 pm »
I never had an issue with the play back of these files on 8.10, I'll do some home work,

Do you know of any other sites other then yifi !

cheers
Gov

9
Installation issues / Re: Volume levels drop on MD
« on: August 02, 2015, 06:59:03 pm »
Hi

This seems to have resolved itself on the last update,

the command was ssh DCErouter  - ssh moon(DEVICE) - alsamixer  --then increase volume.

but its working now .


10
Installation issues / Re: Issue with 12.4 video play back of mp4
« on: August 02, 2015, 06:15:23 pm »
Hi

This is the best I can do, 50MB

https://www.dropbox.com/s/k8qoykqjxv59b08/My%20Video.mp4?dl=0

I you wanted hole film you can grab a copy at yifi movies .


Cheers
Gov

11
Installation issues / Re: Volume levels drop on MD
« on: July 26, 2015, 02:27:46 pm »
My apologizes, just trying to keep track of my issues in one place. I see the topic you raised


Kind regards
Gov

12
Hi Alblasco1702

Completed the upgrade.

There is  no option to port_forward and the only boxes that allow input is  source port, Limit to IP*

Destination Port and Destination IP are not editable and do not allow you input your data, such as the Ip address .

Please advise

Kind regards
Gov


13
Installation issues / Firewall issues (was: Volume levels drop on MD)
« on: July 19, 2015, 01:48:44 pm »
Just going to jump on the back of my topic.

FIREWALL is not posting to mysql, when I added a new port forward it does not save.


Please advise.

Kind regards
Gov
LMCE 12.4


14
Installation issues / Re: Volume levels drop on MD
« on: July 17, 2015, 01:36:41 pm »
Thanks.

15
Installation issues / Volume levels drop on MD
« on: July 15, 2015, 11:29:57 pm »
Hi folks

Don't know if this is an bug, but every time I power on my MD  I have to increase the volume through ssh

So its clear, my MD'S work with with 8.10 prefect I am currently running 12.4.

I also don't want to come across a moan, but I am testing and reporting issues back to that we can all benefit.

As every one's hard ware is different.

The volume was increase on the initial setup under Av wizard  to 100%, but every time I boot up the MD the volume is low and I have to ssh into MD and up it.

let me know  if there is a command I can run to report the issue in more detail.

Cheers
Gov
 

 

Pages: [1] 2 3 ... 10