Search found 1411 matches

by Gordon
27 Sep 2011, 05:09
Forum: B2 & B3 Support
Topic: shortcut to storage-folder
Replies: 14
Views: 5160

Re: shortcut to storage-folder

You should probably reserve the use of `ln -s` for regular files only. When linking to a folder it is better to create a mountpoint towards it:

Code: Select all

mount --bind /home/storage/somefolder /home/xyz/download/somefolder
by Gordon
27 Sep 2011, 04:46
Forum: B2 & B3 Support
Topic: Disable firewall?
Replies: 19
Views: 10760

Re: Disable firewall?

iptables -F # clears all rules iptables -X # deletes all user defined tables # Same rules for the nat tables (I'm assuming you don't want masquerading) iptables -t nat -F iptables -t nat -X # Set the policy to accept on all tables iptables -P INPUT ACCEPT iptables -P OUTPUT ACCEPT iptables -P FORWA...
by Gordon
23 Sep 2011, 06:28
Forum: B2 & B3 Support
Topic: Automatically save login information via SMB
Replies: 17
Views: 7058

Re: Automatically save login information via SMB

Got it... Didn't manage to get that working when I first set up printer sharing and never tried since because classic (bsd) printing actually gives me more manageability (at least I think so). I'm thinking with this setup you may be hitting a security issue with Cups, not Samba. I also doubt that "u...
by Gordon
22 Sep 2011, 12:40
Forum: B2 & B3 Support
Topic: Automatically save login information via SMB
Replies: 17
Views: 7058

Re: Automatically save login information via SMB

That could be a problem with the `guest ok` flag on the Samba share then. Either it's disabled or some other entry in the share definition is invalid and causes this flag to be ignored.
by Gordon
22 Sep 2011, 09:23
Forum: B2 & B3 Support
Topic: Automatically save login information via SMB
Replies: 17
Views: 7058

Re: Automatically save login information via SMB

Windows will not allow automatic logins to remote sites on an open system. i.e. you must set a password on the account you're using on your local machine. If you think that sucks, and you're the only person that uses that computer, you can still configure the machine to go directly to your desktop. ...
by Gordon
22 Sep 2011, 09:08
Forum: B2 & B3 Support
Topic: printserver and HP 2010
Replies: 3
Views: 2252

Re: printserver and HP 2010

There's no real need to install a printer driver in this case, unless you'd be willing to generate print jobs from some service that is running on the B3 itself. All you need to do to be able to access the printer is add it to Cups as a 'Raw' printer. To publish the printer as a network printer for ...
by Gordon
14 Sep 2011, 02:54
Forum: B2 & B3 Support
Topic: how to open/close firewall port 21 22 with script?
Replies: 9
Views: 3769

Re: how to open/close firewall port 21 22 with script?

Puma, I actually have something similar in my own ruleset (for ssh). The problem with such a rule is that the web interface for bubba-firewall will then also show this port as opened (but not the IP restriction). That may be confusing. If you follow my hint on creating the user defined table and put...
by Gordon
13 Sep 2011, 14:03
Forum: B2 & B3 Support
Topic: how to open/close firewall port 21 22 with script?
Replies: 9
Views: 3769

Re: how to open/close firewall port 21 22 with script?

tnx but why does your rule only block established and not new traffic? It doesn't. The first rule verifies the connection tracker whether it is an existing connection and if so allows it to continue. The second rule, which would be the 'on' command, would allow new connections to be established on ...
by Gordon
13 Sep 2011, 13:36
Forum: B2 & B3 Support
Topic: how to open/close firewall port 21 22 with script?
Replies: 9
Views: 3769

Re: how to open/close firewall port 21 22 with script?

No. It is the policy that is set to deny (it is actually drop - meaning that it doesn't give any response whatsoever), not a rule. One thing I should have mentioned. Once the first piece of code has been entered, you should issue a /etc/init.d/bubba-firewall restart. This will save that part of the ...
by Gordon
13 Sep 2011, 10:32
Forum: B2 & B3 Support
Topic: how to open/close firewall port 21 22 with script?
Replies: 9
Views: 3769

Re: how to open/close firewall port 21 22 with script?

You'll actually accomplish the same as the last line when you issue /etc/init.d/bubba-firewall start (without the "re"). But yes, I do think the bubba firewall script is flaky. For one the web interface doesn't pickup on the fact that you have restricted access to a specific port to certain addresse...
by Gordon
09 Sep 2011, 08:18
Forum: Howtos
Topic: Easy certificate management
Replies: 2
Views: 4354

Re: Certificates the easy way

Okay, apparently there are some questions about how this script functions. First off, I wrote this script for me. As a consequence comments inside the script may be somewhat scarce in parts that are crystal-clear to me. The point of the script is that I want to be able to create certificates and not...
by Gordon
08 Sep 2011, 19:11
Forum: B2 & B3 Support
Topic: Lura telefonidosan med DHCP-server på WAN-porten. (SVE/ENG)
Replies: 1
Views: 1464

Re: Lura telefonidosan med DHCP-server på WAN-porten. (SVE/E

My Swedish is a bit rusty, so I'm not sure I fully understand. :wink: I get that you have a VOIP subscription targeted towards your public IP and you want to connect both your Bubba and the VOIP supporting router (a cheap Netgear I gather) to that single address. In short: you can't do that. You'll ...
by Gordon
08 Sep 2011, 17:46
Forum: Howtos
Topic: Be your own CA - question
Replies: 8
Views: 12253

Re: Be your own CA - question

Gordon, Your solution is running a big shell script from an uncredited source. Maybe it'll open a backdoor to your ssh server, reset your passwords or erase your hard drive. Look, I appreciate your effort of making this script, but it's largely devoid of comments and instructions. It's generally ba...
by Gordon
08 Sep 2011, 08:06
Forum: Howtos
Topic: Be your own CA - question
Replies: 8
Views: 12253

Re: Be your own CA - question

Just use the script from THIS post, it handles all requirements for being your own CA
by Gordon
04 Sep 2011, 05:22
Forum: B2 & B3 Support
Topic: Allowing an user to only access a folder (SSH)
Replies: 7
Views: 3094

Re: Allowing an user to only access a folder (SSH)

Probably your best bet would be to create a wrapper script and assign that to be the users shell. Something like...

Code: Select all

#!/bin/bash
while read command params; do
  if [ ! -z `echo grep -e "^"$command"$" /some_location/allowed_commands.lst`]; then
    eval $command $params
  fi
done