Go Back   Phoenix Labs > Projects > PeerGuardian Linux
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes

 
Old 08-13-2009, 02:23 PM   #11
dino

Member
Join Date: Jul 2009
Country: Belgium
Posts: 15
Default Re: moblock on Synology NAS - All kernel modules available, but moblock won't start

jre, you were right.moblock is up and running.the only problem left is that i see useless messages in my /var/log/message file when moblock denies a packet:

Code:
Aug 13 19:56:10 kernel: nf_queue: error creating packet message
Aug 13 19:56:53 kernel: printk: 3 messages suppressed.
Aug 13 19:56:53 kernel: nf_queue: error creating packet message
for the rest it works like a charm. Later this evening I'll post the howto + link to the modified scripts. A you will see, I had to change a bunch of paths in there and couple of functions.

Thanks,
Dino
dino is offline   Reply With Quote

 
Old 08-13-2009, 02:51 PM   #12
jre

Senior Member
Join Date: Sep 2005
Posts: 588
Default Re: moblock on Synology NAS - All kernel modules available, but moblock won't start

Grats. And I hope I can integrate all your changes.

I donīt have these messages in /var/log/messages. But is everything working? Does "blockcontrol test" work? And do you still have internet access with moblock running?
__________________
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 08-13-2009, 03:26 PM   #13
dino

Member
Join Date: Jul 2009
Country: Belgium
Posts: 15
Default Re: moblock on Synology NAS - All kernel modules available, but moblock won't start

jre, my outgoing connections are not working except for the port exceptions I have defined. So the blockcontrol test is unable to ping to a host address. Where do i have to whitelist my own nas address?

In my post on the Synology forum, I have a iptables -L -nv dump. could you have a look?

http://forum.synology.com/enu/viewto...p=70227#p70227

Thanks again,
Dino
dino is offline   Reply With Quote

 
Old 08-14-2009, 10:04 AM   #14
jre

Senior Member
Join Date: Sep 2005
Posts: 588
Default Re: moblock on Synology NAS - All kernel modules available, but moblock won't start

The iptables look ok on a first glance. Iīll have a detailed look on your changes later. You should hint people to the fact that they have to "blockcotnrol update" manually, because you donīt have the cron.daily job.

Whitelisting IPs:
- Either IP ranges in (/etc/blockcontrol/)allow.p2p
- or IPs in blockcotnrol.conf
Code:
WHITE_IP_FORWARD=""
WHITE_IP_IN=""
WHITE_IP_OUT=""
__________________
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 08-14-2009, 10:21 AM   #15
dino

Member
Join Date: Jul 2009
Country: Belgium
Posts: 15
Default Re: moblock on Synology NAS - All kernel modules available, but moblock won't start

hmmm, I did put my lan address already into the conf. file. I'll try tonight to put it in allow.p2p
dino is offline   Reply With Quote

 
Old 08-14-2009, 10:28 AM   #16
jre

Senior Member
Join Date: Sep 2005
Posts: 588
Default Re: moblock on Synology NAS - All kernel modules available, but moblock won't start

just keep a look on moblock.log to see what was blocked.
__________________
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 08-17-2009, 05:22 PM   #17
jre

Senior Member
Join Date: Sep 2005
Posts: 588
Default Re: moblock on Synology NAS - All kernel modules available, but moblock won't start

started revisiting your package:
  • Thereīs no need to ship a separate init-functions. They are included in blockcontrol.lib. If LSB is not found blockcotnrol will use those internal ones.
  • Was specifying /opt/(s)bin in PATH not enough to get the external applications working!? (e.g. is it really necessary to /opt/sbin/iptables, when you have PATH="/opt/bin:/opt/sbin:/usr/bin:/bin:/sbin:/usr/sbin"
__________________
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.

Last edited by jre : 08-17-2009 at 05:27 PM.
jre is offline   Reply With Quote

 
Old 11-04-2009, 01:46 AM   #18
dino

Member
Join Date: Jul 2009
Country: Belgium
Posts: 15
Default Re: moblock on Synology NAS - All kernel modules available, but moblock won't start

Hi jre, it's a long time I've been inactive on porting the blockcontrol scripts to a synoogy diskstation, but yesterday I've changed the latest blockcontrol scripts 1.6.9 to work on a synology. The main things I've changed are the paths to the different scripts.

Some remarks:
* as you can see, I've removed all prefixes to the binaries since the order of the paths are handling this
* main problems:

- built in LSB: pidof on busybox doesn't recognize the -o and -x parameter, those parameters are removed. I do not have any clue how this affects the correct behaviour of blockcontrol
- built in LSB: although busybox should recognize the -exec/-start parameter of the start-stop-daemon binary it is not working. I had to change this to -e/-S which work well.
- not using the following scripts: cron.daily/if-up/init/logrotate
- using a custom made script (moblock.sh) to insert the kernel modules and startup blockcontrol

Could you give me some explanation what logrotate is doing and howto use it?

Attached the modified blockcontrol scripts. It would be great if you could make the paths variable in the main scripts so that it can be easily ported to a diskstation. A lot of users are asking to get moblock up and running, but it's hard for me to change it every time. Could you please also check if the above parameter adjustments are screwing up the scripts?

PS: for some reason I get a upload failed when I try to attache the adjusted scripts. Can you tell me how to deliver those to you?

Thank you,
Dino
dino is offline   Reply With Quote

 
Old 11-04-2009, 02:10 PM   #19
jre

Senior Member
Join Date: Sep 2005
Posts: 588
Default Re: moblock on Synology NAS - All kernel modules available, but moblock won't start

First off, we moved on with development: blockcontrol is now pglcmd and nfblock (based on moblock) is pgld. Iīm going to greatly improve the Makefile for these (in the next weeks ...), so that you donīt have to adjust paths in the single files.

Your upload problem: probably the file suffix was not allowed - e.g. you may pack them as gz. Also please tell me what version you changed exactly, or even better: send patches. You may also mail me:
jre-phoenix
at users.sourceforge.net


When Iīve seen the built-inb LSB changes Iīll try to implement them here.

Why did you use a custom script to insert the kernel modules? Please send it, I want to implement that, too, if necessary.

logrotate is a config script for, err, logrotate. E.g. the logrotate config file from blockcontrol is placed in /etc/logrotate.d/blockcontrol. Then the logrotate utility fires up daily, and moves the current /var/log/blockcontrol.log to /var/log/blockcontrol.log.1.
At the same time blockcontrol.log.1. gets blockcontrol.log.2.gz (so it gets compressed), and so on up to blockcontrol.log.12.gz. So this is a utility to keep logfiles small and archive them for some time.
__________________
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 11-05-2009, 02:29 AM   #20
dino

Member
Join Date: Jul 2009
Country: Belgium
Posts: 15
Default Re: moblock on Synology NAS - All kernel modules available, but moblock won't start

Hi jre, I've send you the blockcontrol scripts + startup scripts by email.

Glad to hear that the paths will be changable in the makefile.

The reason that I use a startup script to insert the kernel modules is that I had to compile a lot of modules which are not available out-of-the-box from synology. To "restore" the original config of the diskstation, modules not packed by synology will be removed out of the kernel when the diskstation does a shutdown or when you shutdown moblock by this script. I don't think it's necessary to implement this in blockcontrol since it's related only to a Synology system .

I've also found the logrotate utility, so I'm going to setup also this and let you know the results.

Thanks,
Dino
dino 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 01:54 PM.


  

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