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 09-18-2009, 07:38 AM   #1
Pirate_Hunter

Member
Join Date: Sep 2009
Country: United Kingdom
Posts: 5
Default New to moblock installing from ubuntu hardy PPA and DEB package

I've installed moblock blockcontrol and mobloquer, it is setup to start on system starup which is fine. My problem is that it doesn't block anything, if I ping an address it always comes as unrechable as shown bellow:

ping www.google.co.uk
PING www.l.google.com (209.85.229.103) 56(84) bytes of data.
From 192.168.* icmp_seq=1 Destination Port Unreachable
From 192.168.* icmp_seq=2 Destination Port Unreachable
From 192.168.* icmp_seq=3 Destination Port Unreachable

this happens for all sites being pinged, yet if I open my browser (epiphany-gecko) I go surf to those sites without a problem even sites that should be blocked.

/var/blockcontrol.log states:
Starting moblock ....
Starting blockcontrol.wd ....
2009-09-18 12:08:56 BST End: blockcontrol restart
2009-09-18 12:23:37 BST Begin: blockcontrol restart
Stopping blockcontrol.wd.
Deleting iptables ...
iptables v1.3.8: Couldn't load target `blockcontrol_in':/lib/iptables/libipt_blockcontrol_in.so: cannot open shared object file: No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.3.8: Couldn't load target `blockcontrol_out':/lib/iptables/libipt_blockcontrol_out.so: cannot open shared object file: No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.3.8: Couldn't load target `blockcontrol_fw':/lib/iptables/libipt_blockcontrol_fw.so: cannot open shared object file: No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables: No chain/target/match by that name
iptables: No chain/target/match by that name
iptables: No chain/target/match by that name
iptables: No chain/target/match by that name
iptables: No chain/target/match by that name
iptables: No chain/target/match by that name
failed!
Don't worry! There occured some errors during the deletion of the iptables ... (warning).
rules. The most common reason for this is that they did not exist, because ... (warning).
moblock was not running. ... (warning).
But if moblock was running there is some problem. Most probably you have ... (warning).
installed another firewall application that did delete the iptables rules. ... (warning).
A "blockcontrol restart" will then fix the situation. ... (warning).
Stopping moblock ....
Inserting iptables ...

will someone help me get moblock working as it should I havent got the folder /etc/Moblock/ as i've read in a few places and I havent been able to locate the iptables scrips that come with moblock.
Pirate_Hunter is offline   Reply With Quote

 
Old 09-19-2009, 06:04 AM   #2
jre

Senior Member
Join Date: Sep 2005
Posts: 588
Default Re: New to moblock installing from ubuntu hardy PPA and DEB package

First off, please post your logs in CODE tags.

Quote:
Originally Posted by Pirate_Hunter View Post
I've installed moblock blockcontrol and mobloquer, it is setup to start on system starup which is fine. My problem is that it doesn't block anything, if I ping an address it always comes as unrechable as shown bellow:

ping www.google.co.uk
PING www.l.google.com (209.85.229.103) 56(84) bytes of data.
From 192.168.* icmp_seq=1 Destination Port Unreachable
From 192.168.* icmp_seq=2 Destination Port Unreachable
From 192.168.* icmp_seq=3 Destination Port Unreachable

this happens for all sites being pinged, yet if I open my browser (epiphany-gecko) I go surf to those sites without a problem even sites that should be blocked.
This is ok, because per default port 80 (http) is whitelisted (not checked). This means the ping to a certain IP gets checked by moblock (ping uses protocol ICMP), but when you want to access the same IP with your webbrowser (so itīs a connection on port 80 using protocol TCP) it doesnīt get checked. You can change this by editing in /etc/blockcontrol/blockcontrol.conf the entry
Code:
WHITE_TCP_OUT="http https"
(or do this with mobloquer).

Quote:
Originally Posted by Pirate_Hunter View Post
will someone help me get moblock working as it should I havent got the folder /etc/Moblock/ as i've read in a few places and I havent been able to locate the iptables scrips that come with moblock.
The directory /etc/moblock/ is no more used since I renamed some stuff to "blockcontrol". Further note that your filesystem is case-sensitive (so Moblock is not the same as moblock). The default stuff is coded in /usr/lib/blockcontrol/blockcontrol.lib and configured in /etc/blockcotnrol/blockcontrol.conf. Advanced custom changes may de done in /etc/blockcontrol/iptables-custom-insert.sh and iptables-custom-remove.sh. But I doubt that any of these things should be changed by you.



Now having said all this, your blockcontrol.log looks strange. It seems as if the watchdog detected a problem and restarted blockcontrol. The problem seems to be missing iptables rules.
Do you use other firewall application that use iptables, too? E.g. firestarter or ufw? If they are started or reconfigured they purge all iptables rules, so they break blockcontrolīs iptables setup. Therefore I recommend to restart blockcontrol after every change of these applications. Otherwise the watchdog will do this every 5 minutes for you - but thatīs still up to 5 minutes with a broken setup ...
If you donīt use other firewall application we probably have a serious problem. In that case please post your "blockcontrol status" and "blockcontrol show_config" (and probably more ....).


Summary: You are just fine, but should issue a "sudo blockcontrol restart" whenever you change anything in your other firewall applications.
__________________
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 : 09-19-2009 at 06:10 AM.
jre is offline   Reply With Quote

 
Old 09-20-2009, 02:42 AM   #3
Pirate_Hunter

Member
Join Date: Sep 2009
Country: United Kingdom
Posts: 5
Default Re: New to moblock installing from ubuntu hardy PPA and DEB package

Thanks for the reply, I thought it was somethign like that for the browser, however I have done what you stated and I can still surf any site that I want even those that should be blocked, I thought it would pick up sites from the browser.

Logs

Quote:
blockcontrol.log

Starting moblock ....
Starting blockcontrol.wd ....
2009-09-20 06:02:09 BST End: blockcontrol start
2009-09-20 06:41:01 BST Begin: blockcontrol restart
Stopping blockcontrol.wd.
Deleting iptables ...
.
Stopping moblock ....
Inserting iptables ...
Allowing inbound LAN traffic for 192.168 with subnetmask 255.255.255.0.
Allowing outbound LAN traffic for 192.168. with subnetmask 255.255.255.0.
Allowing forwarded LAN traffic for 192.168. with subnetmask 255.255.255.0.
Allowing outbound traffic to DNS server 83.146.
Allowing forwarded traffic to DNS server 83.146.1
Allowing outbound traffic to DNS server 83.146.
Allowing forwarded traffic to DNS server 83.146.
Allowing outbound traffic to DNS server 192.168.
Allowing forwarded traffic to DNS server 192.168
Allowing loopback traffic.
.
Starting moblock ....
Starting blockcontrol.wd ....
2009-09-20 06:41:02 BST End: blockcontrol restart
2009-09-20 06:47:01 BST Begin: blockcontrol update
Updating blocklists ...
Updating TBG_Primary_Threats... done.
Extracting TBG_Primary_Threats, detected gz... done.
Updating TBG_General_Corporate_Ranges... done.
Extracting TBG_General_Corporate_Ranges, detected gz... done.
Updating TBG_Business_ISPs... done.
Extracting TBG_Business_ISPs, detected gz... done.
Updating TBG_Search_Engines... done.
Extracting TBG_Search_Engines, detected gz... done.
Updating TBG_Hijacked... done.
Extracting TBG_Hijacked, detected gz... done.
Updating TBG_Bogon... done.
Extracting TBG_Bogon, detected gz... done.
Updating Bluetack_level1... done.
Extracting Bluetack_level1, detected gz... done.
Updating Bluetack_ads... done.
Extracting Bluetack_ads, detected gz... done.
Updating Bluetack_bogon... done.
Extracting Bluetack_bogon, detected gz... done.
Updating Bluetack_spyware... done.
Extracting Bluetack_spyware, detected gz... done.
Updating Bluetack_spider... done.
Extracting Bluetack_spider, detected gz... done.
Updating Bluetack_proxy... done.
Extracting Bluetack_proxy, detected gz... done.
Updating Bluetack_badpeers... done.
Extracting Bluetack_badpeers, detected gz... done.
Updating Bluetack_dshield... done.
Extracting Bluetack_dshield, detected gz... done.
Blocklists updated.
Building blocklist... .
Reloading moblock... .
2009-09-20 06:50:13 BST End: blockcontrol update
Quote:
moblock.log
Skipping useless range: [DShield top10] Unknown
Skipping useless range: [DShield top10] Unknown
Skipping useless range: [DShield top10] Unknown
Skipping useless range: [DShield top10] Unknown
Skipping useless range: [DShield top10] Unknown
Skipping useless range: [DShield top10] Unknown
Skipping useless range: [DShield top10] Unknown
* Ranges loaded: 792942
Sun Sep 20 07:22:20| * Merged ranges: 95995
Sun Sep 20 07:22:20| * Skipped useless ranges: 152044
Sun Sep 20 07:22:20| NFQUEUE: binding to queue '92'
Quote:
blockcontrol status

$ sudo blockcontrol status
Current IPv4 iptables rules (this may take a while):

Chain INPUT (policy DROP 131 packets, 21784 bytes)
pkts bytes target prot opt in out source destination
7 1198 blockcontrol_in all -- * * 0.0.0.0/0 0.0.0.0/0 state NEW MARK match !0x14
159K 31M ufw-before-input all -- * * 0.0.0.0/0 0.0.0.0/0
130 21708 ufw-after-input all -- * * 0.0.0.0/0 0.0.0.0/0

Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 blockcontrol_fw all -- * * 0.0.0.0/0 0.0.0.0/0 state NEW MARK match !0x14
0 0 ufw-before-forward all -- * * 0.0.0.0/0 0.0.0.0/0
0 0 ufw-after-forward all -- * * 0.0.0.0/0 0.0.0.0/0

Chain OUTPUT (policy ACCEPT 36 packets, 3620 bytes)
pkts bytes target prot opt in out source destination
27 2237 blockcontrol_out all -- * * 0.0.0.0/0 0.0.0.0/0 state NEW MARK match !0x14
176K 52M ufw-before-output all -- * * 0.0.0.0/0 0.0.0.0/0
35 3544 ufw-after-output all -- * * 0.0.0.0/0 0.0.0.0/0

Chain blockcontrol_fw (1 references)
pkts bytes target prot opt in out source destination
0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0 MARK match 0xa
0 0 RETURN all -- * * 0.0.0.0/0 192.168.
0 0 RETURN all -- * * 0.0.0.0/0 83.146
0 0 RETURN all -- * * 0.0.0.0/0 83.146.
0 0 RETURN all -- * * 192.168/24 192.168/24
0 0 NFQUEUE all -- * * 0.0.0.0/0 0.0.0.0/0 NFQUEUE num 92

Chain blockcontrol_in (1 references)
pkts bytes target prot opt in out source destination
0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0 MARK match 0xa
3 180 RETURN all -- lo * 0.0.0.0/0 0.0.0.0/0
4 1018 RETURN all -- * * 192.168/24 0.0.0.0/0
0 0 RETURN all -- * * 0.0.0.0/0 0.0.0.0/0 source IP range 85.214.45.195-85.214.45.195
0 0 RETURN all -- * * 0.0.0.0/0 0.0.0.0/0 source IP range 91.189.90.143-91.189.90.143
0 0 RETURN all -- * * 0.0.0.0/0 0.0.0.0/0 source IP range 192.168.1.0-192.168.1.255
0 0 RETURN tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:9911
0 0 RETURN tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:443
0 0 RETURN tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
0 0 NFQUEUE all -- * * 0.0.0.0/0 0.0.0.0/0 NFQUEUE num 92

Chain blockcontrol_out (1 references)
pkts bytes target prot opt in out source destination
1 76 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 MARK match 0xa reject-with icmp-port-unreachable
3 180 RETURN all -- * lo 0.0.0.0/0 0.0.0.0/0
0 0 RETURN all -- * * 0.0.0.0/0 192.168.
3 192 RETURN all -- * * 0.0.0.0/0 83.146.
3 192 RETURN all -- * * 0.0.0.0/0 83.146.
2 505 RETURN all -- * * 0.0.0.0/0 192.168./24
0 0 RETURN all -- * * 0.0.0.0/0 0.0.0.0/0 destination IP range 85.214.45.195-85.214.45.195
0 0 RETURN all -- * * 0.0.0.0/0 0.0.0.0/0 destination IP range 91.189.90.143-91.189.90.143
0 0 RETURN all -- * * 0.0.0.0/0 0.0.0.0/0 destination IP range 192.168.1.0-192.168.1.255
0 0 RETURN tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:49164
0 0 RETURN tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:7634
0 0 RETURN tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:3689
0 0 RETURN tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:548
0 0 RETURN tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:445
0 0 RETURN tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:139
0 0 RETURN tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:993
0 0 RETURN tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:9911
0 0 RETURN tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:8080
0 0 RETURN tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:4123
0 0 RETURN tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:4664
0 0 RETURN tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:4468
0 0 RETURN tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:143
0 0 RETURN tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:443
3 180 RETURN tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
12 912 NFQUEUE all -- * * 0.0.0.0/0 0.0.0.0/0 NFQUEUE num 92

Chain ufw-after-forward (1 references)
pkts bytes target prot opt in out source destination
0 0 LOG all -- * * 0.0.0.0/0 0.0.0.0/0 limit: avg 3/min burst 10 LOG flags 0 level 4 prefix `[UFW BLOCK FORWARD]: '
0 0 RETURN all -- * * 0.0.0.0/0 0.0.0.0/0

Chain ufw-after-input (1 references)
pkts bytes target prot opt in out source destination
64 6000 RETURN udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:137
62 15468 RETURN udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:138
0 0 RETURN tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:139
0 0 RETURN tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:445
0 0 RETURN udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:67
0 0 RETURN udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:68
4 240 LOG all -- * * 0.0.0.0/0 0.0.0.0/0 limit: avg 3/min burst 10 LOG flags 0 level 4 prefix `[UFW BLOCK INPUT]: '
4 240 RETURN all -- * * 0.0.0.0/0 0.0.0.0/0

Chain ufw-after-output (1 references)
pkts bytes target prot opt in out source destination
35 3544 RETURN all -- * * 0.0.0.0/0 0.0.0.0/0

Chain ufw-before-forward (1 references)
pkts bytes target prot opt in out source destination
0 0 ufw-user-forward all -- * * 0.0.0.0/0 0.0.0.0/0
0 0 RETURN all -- * * 0.0.0.0/0 0.0.0.0/0

Chain ufw-before-input (1 references)
pkts bytes target prot opt in out source destination
44672 9941K ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
114K 21M ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 ctstate RELATED,ESTABLISHED
0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0 ctstate INVALID
0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0 icmp type 3
0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0 icmp type 4
0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0 icmp type 11
0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0 icmp type 12
0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0 icmp type 8
0 0 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp spt:67 dpt:68
131 21768 ufw-not-local all -- * * 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT all -- * * 224.0.0.0/4 0.0.0.0/0
0 0 ACCEPT all -- * * 0.0.0.0/0 224.0.0.0/4
131 21768 ufw-user-input all -- * * 0.0.0.0/0 0.0.0.0/0
130 21708 RETURN all -- * * 0.0.0.0/0 0.0.0.0/0

Chain ufw-before-output (1 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
176K 52M ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW,RELATED,ESTABLISHED
253 23931 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW,RELATED,ESTABLISHED
35 3544 ufw-user-output all -- * * 0.0.0.0/0 0.0.0.0/0
35 3544 RETURN all -- * * 0.0.0.0/0 0.0.0.0/0

Chain ufw-not-local (1 references)
pkts bytes target prot opt in out source destination
5 300 RETURN all -- * * 0.0.0.0/0 0.0.0.0/0 ADDRTYPE match dst-type LOCAL
0 0 RETURN all -- * * 0.0.0.0/0 0.0.0.0/0 ADDRTYPE match dst-type MULTICAST
126 21468 RETURN all -- * * 0.0.0.0/0 0.0.0.0/0 ADDRTYPE match dst-type BROADCAST
0 0 LOG all -- * * 0.0.0.0/0 0.0.0.0/0 limit: avg 3/min burst 10 LOG flags 0 level 4 prefix `[UFW BLOCK NOT-TO-ME]: '
0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0

Chain ufw-user-forward (1 references)
pkts bytes target prot opt in out source destination
0 0 RETURN all -- * * 0.0.0.0/0 0.0.0.0/0

Chain ufw-user-input (1 references)
pkts bytes target prot opt in out source destination
0 0 DROP tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:22
0 0 DROP udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:22
1 60 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:4664
0 0 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:4664
130 21708 RETURN all -- * * 0.0.0.0/0 0.0.0.0/0

Chain ufw-user-output (1 references)
pkts bytes target prot opt in out source destination
35 3544 RETURN all -- * * 0.0.0.0/0 0.0.0.0/0

Current IPv6 iptables rules (this may take a while):

Chain INPUT (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all lo * ::/0 ::/0

Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination

Chain OUTPUT (policy DROP 3 packets, 188 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all * lo ::/0 ::/0

Please check if the above printed iptables rules are correct!

moblock is running..
PID: 15250 CMD: /usr/bin/moblock -p /var/lib/blockcontrol/guarding.p2p -q 92 -t -r 10 -a 20 /var/log/moblock.log

blockcontrol.wd is running..
PID: 15255 CMD: /bin/sh /usr/bin/blockcontrol.wd
Is there a way to stop moblock from displaying (Skipping useless range: *) I had to remove the file before I could copy and paste it

I use ufw as my firewall however i've read I can control the iptables through moblcok I hoope to use that in the future once i am accustomed to iptable syntax. At this point in time I am guessing there is no way to actually make ufw and moblock not flush the iptables.

Oh before I forget I would like moblock to be filtering http and https connections making sure only legitimate connections are being made
Pirate_Hunter is offline   Reply With Quote

 
Old 09-20-2009, 05:12 AM   #4
jre

Senior Member
Join Date: Sep 2005
Posts: 588
Default Re: New to moblock installing from ubuntu hardy PPA and DEB package

Quote:
Originally Posted by Pirate_Hunter View Post
Thanks for the reply, I thought it was somethign like that for the browser, however I have done what you stated and I can still surf any site that I want even those that should be blocked, I thought it would pick up sites from the browser.

Oh before I forget I would like moblock to be filtering http and https connections making sure only legitimate connections are being made
When you removed the http (or 80) entry from WHITE_TCP_OUT, then you have to "blockcontrol restart", so that your changes take effect. But indeed your status shows that youīre still whitelisting this port (together with many others):
Code:
3 180 RETURN tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
Quote:
Originally Posted by Pirate_Hunter View Post
Is there a way to stop moblock from displaying (Skipping useless range: *) I had to remove the file before I could copy and paste it
No easy one, but weīre working on a complete new version.

Quote:
Originally Posted by Pirate_Hunter View Post
I use ufw as my firewall however i've read I can control the iptables through moblcok I hoope to use that in the future once i am accustomed to iptable syntax. At this point in time I am guessing there is no way to actually make ufw and moblock not flush the iptables.
I guess you canīt tell ufw to let other iptables rules exist. Thatīs quite understandable, because itīs impossible for an application to find out whether other iptables rules donīt break the own iptables rules.
For blockcontrol other iptables rules are ok, as long as
- blockcontrolīs are the first ones in the chains (you get this with a "restart").
- only blockcontrol is using the MARKing feature (thatīs true in most cases)

Directly adding your iptables rules with blockcontrol, instead of using the combination of both applications, would be indeed the best solution. (Zero time without protection)

Second best would be to add "blockcontrol restart" as a hook script to ufw, so that this is done automatically whenever ufw changes the iptables. But I donīt know if this is possible. (Just a few seconds during the restart without protection)

Otherwise you have to manually restart (a few more seconds without protection), or rely on the watchdog (per default up to 5 minutes without protection)
__________________
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 : 09-20-2009 at 05:29 AM.
jre is offline   Reply With Quote

 
Old 09-20-2009, 05:48 AM   #5
Pirate_Hunter

Member
Join Date: Sep 2009
Country: United Kingdom
Posts: 5
Default Re: New to moblock installing from ubuntu hardy PPA and DEB package

thanks fort he fast reply I can feel at ease that at least it is working and doing its jobs, yes I will be removing http and http access from WHITE_TCP_OUT, would prefer to have sites getting blocked by default and being forced to unblock them. Well if it becomes difficult to keep track of blocked ips I will just use moblocker

My idea for using mobloc is to help block unnecessary connection from the webserver, its just my way of having an extra layer of protection and a good job is being doe on the peer lists.

Well thats from me, until I get a new problem or dive into ip table syntax take care, thanks again for the speedy reponses

PS: cant wait to see the new version

Last edited by Pirate_Hunter : 09-20-2009 at 05:52 AM.
Pirate_Hunter is offline   Reply With Quote

 
Old 09-20-2009, 06:41 AM   #6
Pirate_Hunter

Member
Join Date: Sep 2009
Country: United Kingdom
Posts: 5
Default Re: New to moblock installing from ubuntu hardy PPA and DEB package

Just tried sending my server online for that I would need port 80 however what I did was open it through ufw. I want want to know would moblock still filter that port or will it just just allow any connection through that port?
Pirate_Hunter is offline   Reply With Quote

 
Old 09-20-2009, 07:38 AM   #7
jre

Senior Member
Join Date: Sep 2005
Posts: 588
Default Re: New to moblock installing from ubuntu hardy PPA and DEB package

Quote:
Originally Posted by Pirate_Hunter View Post
Just tried sending my server online for that I would need port 80 however what I did was open it through ufw. I want want to know would moblock still filter that port or will it just just allow any connection through that port?
When ufw is started or changes its configuration it purges all iptables rules. So you have to do an "blockcontrol restart" every time this happens. Otherwise the watchdog will check if the blockcontrol setup is fine every 5 minutes, and will do the restart automatically for you if necessary.
Between the ufw iptables purge and the "blockcontrol restart" moblock is not working!

Now, when you have taken care of this correct iptables setup, first moblock/blockcontrol will do all their filtering, and only traffic that passes this stage will be checked by ufw. So for you (filter all traffic on all ports with moblock, except certain IPs) it is indeed the correct setting to allow port 80 in ufw (note that for a webserver running on your machine this is necessary for INCOMING traffic, while for websurfing it is for OUTGOING traffic).
__________________
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 : 09-26-2009 at 05:55 AM.
jre is offline   Reply With Quote

 
Old 09-24-2009, 07:29 AM   #8
beverly

Junior Member
Join Date: Sep 2009
Country: India
Posts: 1
Default Re: New to moblock installing from ubuntu hardy PPA and DEB package

How do I configure ubuntu Linux to log into the server at work? At my job our computers are configured to log into the server here to connect to the internet. I installed ubuntu using wubi and when I log into ubuntu I can't connect to the internet. I tried setting the ip manually that my windows uses but still not connecting. So obviously I need to log into the server but how? Please help. thanks. Ah and another thing I went to networks and it wont even see the server or anything. Help. thanks.
___________________
yahoo keyword tool ~ overture ~ traffic estimator ~ adwords traffic estimator

Last edited by beverly : 09-30-2009 at 01:49 AM.
beverly is offline   Reply With Quote

 
Old 09-24-2009, 02:22 PM   #9
jre

Senior Member
Join Date: Sep 2005
Posts: 588
Default Re: New to moblock installing from ubuntu hardy PPA and DEB package

1.) Start a new thread for a new topic. Donīt hijack another thread with an unrelated topic.
2.) Do you have an IPBlocker installed (MoBlock, IPList or NFBlock)?

If you have an IPBlocker installed check its logifles to see whether the server IP was blocked. If this is the case and you need further help please start a new thread here.

For any non-IPBlocker related support I strongly suggest to ask e.g. at ubuntuforums.org - there are more people who might be able to help you.
__________________
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 09-26-2009, 04:32 AM   #10
Pirate_Hunter

Member
Join Date: Sep 2009
Country: United Kingdom
Posts: 5
Default Re: New to moblock installing from ubuntu hardy PPA and DEB package

thanks for replying that cleared a lot of confusion
Pirate_Hunter 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 10:17 PM.


  

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