Old 12-09-2007, 11:46 AM   #11
jimtb
 
jimtb's Avatar

Member
Join Date: Nov 2007
Location: Athens, Greece
Country: Greece
Posts: 61
Default Re: A new moblock GUI

I finished the MoblockControl class which I think works great as well as the MoblockInfo class, and I made some changes to the GUI to test them.





Having finished all the necessary classes for now, I've started developing the final GUI from scratch. However I would be grateful if someone could test the old one, just to make sure my classes work.

Here is the link for the latest code:
http://rapidshare.com/files/75411518...1a.tar.gz.html

You need to have the packages libqt4-core, libqt4-gui and libqt4-dev to compile it. Use the following commands to compile and run the program.
Code:
tar -xvf mobloquer-0.01a.tar.gz
cd mobloquer
qmake
make
./mobloquer
PS. The program does NOT change the blocklists.list at the moment, it just creates a file named templists.list in the working directory with the new settings.
jimtb is offline   Reply With Quote

 
Old 12-11-2007, 03:07 PM   #12
jimtb
 
jimtb's Avatar

Member
Join Date: Nov 2007
Location: Athens, Greece
Country: Greece
Posts: 61
Default Re: A new moblock GUI

Screenshots of the upcoming GUI:





The first tab is almost fully functional(the button doesn't work yet) and I will soon work on the others. Suggestions are welcome once again.

jimtb is offline   Reply With Quote

 
Old 12-11-2007, 11:18 PM   #13
TheBlackSun

Member
Join Date: Dec 2007
Country: United States
Posts: 7
Default Re: A new moblock GUI

I've tested the old interface for a little while and It seems good.

The new interface looks great.

I have a couple more suggestions, but you are probably already planning these:
Be able to minimize mobloquer to tray.
The recently blocked list should autoscroll

I thought of another great feature but I am not sure if its even possible, and it may be possible without your interface. My idea is a firefox extension that adds a button to the toolbar which can be clicked to enable or disable http blocking and it can also show the status. This may be possible without a program, but i really dont know anything about writing firefox extensions, but if its not possible then mabye its possible your program could have a function which firefox could call and then your program could disable/enable http blocking. That would be amazing, but otherwise a secondary menu on a tray icon with an entry for disableing/enabling http blocking would basically be the same thing.

Mobloquer is looking great. I am really looking forward to the finished interface.
TheBlackSun is offline   Reply With Quote

 
Old 12-12-2007, 07:35 AM   #14
jimtb
 
jimtb's Avatar

Member
Join Date: Nov 2007
Location: Athens, Greece
Country: Greece
Posts: 61
Default Re: A new moblock GUI

Thanks for the suggestions, I was under the impression autoscroll was enabled. I'll fix it when I have the time. And yes, their is certainly going to be a tray icon when the GUI is finished.

I don't know how to code firefox extensions either but it would be fairly easy to add an option to the tray icon menu to enable or disable http blocking.

jimtb is offline   Reply With Quote

 
Old 12-13-2007, 04:26 PM   #15
jimtb
 
jimtb's Avatar

Member
Join Date: Nov 2007
Location: Athens, Greece
Country: Greece
Posts: 61
Default Re: A new moblock GUI

I had some free time today, so I cleaned up the code a bit and I added auto scrolling support as well as a basic tray icon. I also started using icons, mainly from the beautiful set Crystal.

Here's the latest screenshot:

jimtb is offline   Reply With Quote

 
Old 12-15-2007, 04:57 PM   #16
rufiopan

Junior Member
Join Date: Dec 2007
Posts: 2
Default Re: A new moblock GUI

There is just some fantastic and speedy progress being made to this UI. I look forward to being able to use it!

Btw, a simple request: is there a possibility of including support in the UI for IP white-listing?

Keep up the great work, jimtb :)
rufiopan is offline   Reply With Quote

 
Old 12-15-2007, 06:34 PM   #17
jimtb
 
jimtb's Avatar

Member
Join Date: Nov 2007
Location: Athens, Greece
Country: Greece
Posts: 61
Default Re: A new moblock GUI

The three tabs, "Logs" and "Blocklists" and "Manage" are fully functional at the moment. However I have chosen not to save any setting in real configuration files until I have finished and tested everything a bit. Also, the first stable version will not give the user the option to add a new blocklist due to the fact that this would be a bit complicated and I think that it's better to have something that works and then start adding new features.







Quote:
Originally Posted by rufiopan View Post
There is just some fantastic and speedy progress being made to this UI. I look forward to being able to use it!

Btw, a simple request: is there a possibility of including support in the UI for IP white-listing?

Keep up the great work, jimtb :)
First of all, thanks.

Of course I can add support for IP white-listing although I don't know if removing the IP or whitelisting it has any difference. Currently the button in the "Logs" tab adds the selected IP to the IP_REMOVE list in moblock.log but if whitelisting it is better explain why please, and I can easily change this.



PS. I am going to need an icon for the application sooner or later. It would be great if somebody could design a one.

Last edited by jimtb : 12-15-2007 at 07:37 PM.
jimtb is offline   Reply With Quote

 
Old 12-16-2007, 05:54 AM   #18
jre

Senior Member
Join Date: Sep 2005
Posts: 588
Default Re: A new moblock GUI

Quote:
Originally Posted by jimtb View Post
Of course I can add support for IP white-listing although I don't know if removing the IP or whitelisting it has any difference. Currently the button in the "Logs" tab adds the selected IP to the IP_REMOVE list in moblock.log but if whitelisting it is better explain why please, and I can easily change this.
IP_REMOVE will add the IP so that the blocklist will be grep'ped to remove lines containing $IP. This will not work in most cases.

Whitelisting adds the IP so that there will be a iptables target RETURN in the chain (INPUT/OUTPUT/FORWARD) that you configured. This will work in all cases.

greets
jre
__________________
Code:
Please post your logfiles and output of commands wrapped in
[ CODE ] tags. You find them in the advanced editing mode: #
Maintainer of http://moblock-deb.sourceforge.net: MoBlock, mobloquer, blockcontrol and NFBlock Debian packages.
Author of blockcontrol, previously moblock-control.
jre is offline   Reply With Quote

 
Old 12-16-2007, 08:25 AM   #19
jimtb
 
jimtb's Avatar

Member
Join Date: Nov 2007
Location: Athens, Greece
Country: Greece
Posts: 61
Default Re: A new moblock GUI

Quote:
Originally Posted by jre View Post
IP_REMOVE will add the IP so that the blocklist will be grep'ped to remove lines containing $IP. This will not work in most cases.

Whitelisting adds the IP so that there will be a iptables target RETURN in the chain (INPUT/OUTPUT/FORWARD) that you configured. This will work in all cases.

greets
jre

Thanks for helping jre. I have one more question though. There are four options in moblock.conf:
Code:
IP_TCP_IN=""
IP_UDP_IN=""
IP_TCP_OUT=""
IP_UDP_OUT=""
IP_TCP_FORWARD=""
IP_UDP_FORWARD=""
Moblock gives information about the connection type( IN, OUT and FWD ) but it gives no information about the protocol it blocked. Is there any way to know this? If not should I add the IP only in IP_TCP_xx or in both IP_TCP_xx and IP_UDP_xx?

jimtb is offline   Reply With Quote

 
Old 12-16-2007, 05:12 PM   #20
jre

Senior Member
Join Date: Sep 2005
Posts: 588
Default Re: A new moblock GUI

In the versions since 0.8-33 I changed the IP whitelisting, there are only these variables now (working for all protocols, not only TCP and/or UDP):
Code:
WHITE_IP_IN
WHITE_IP_OUT
WHITE_IP_FORWARD
__________________
Code:
Please post your logfiles and output of commands wrapped in
[ CODE ] tags. You find them in the advanced editing mode: #
Maintainer of http://moblock-deb.sourceforge.net: MoBlock, mobloquer, blockcontrol and NFBlock Debian packages.
Author of blockcontrol, previously moblock-control.
jre is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 03:56 AM.


  

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© Phoenix Labs Staff