[Koha] Sort of OT: configuring UFW

2020-05-28 Thread King, Fred
My apologies for posting a question that's not exactly Koha-related, though 
could be. I'm hoping that someone here can explain in a way that a simple 
medical librarian and part-time Koha geek can understand, or point me to a 
source that can. Yes, I checked the man page.

What I want to do us use UFW (Uncomplicated Firewall) on Ubuntu to allow access 
to only permitted IP addresses. I can add one IP address without a problem:
   sudo ufw allow from 192.168.1.115 to any port 80

I think I know how to add a range consisting of anything beginning with 
192.168.1.*:
   sudo ufw allow from 192.168.1.0/24 to any port 80
(Please correct me if I'm wrong.)

What I need to do is allow access from the range
   192.168.*.*
or something like this
   192.168.22-65.*
or 192.138.187-189.*

Any ideas or sources of information?

Thanks,

--Fred

Fred King, MSLS, AHIP
Medical Librarian, MedStar Washington Hospital Center
fred.k...@medstar.net
202-877-6670
ORCID -0001-5266-0279
MedStar Authors Catalog: http://medstarauthors.org

I was singing the blues when I was six. Kind of sad, eh?
--Harry Dean Staunton

--
MedStar Health is a not-for-profit, integrated healthcare delivery system, the 
largest in Maryland and the Washington, D.C., region. Nationally recognized for 
clinical quality in heart, orthopaedics, cancer and GI.

IMPORTANT: This e-mail (including any attachments) may contain information that 
is private, confidential, or protected by attorney-client or other privilege. 
If you received this e-mail in error, please delete it from your system without 
copying it and notify sender by reply e-mail, so that our records can be 
corrected... Thank you.

Help conserve valuable resources - only print this email if necessary.


___

Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha


Re: [Koha] Sort of OT: configuring UFW

2020-05-28 Thread Hugo Agud Andreu
Perfecto! Te compraré dos mandos, dame cuenta de transferencia por favor

Obtener Outlook para iOS

De: Koha  en nombre de King, Fred 

Enviado: Thursday, May 28, 2020 7:08:09 PM
Para: Koha 
Asunto: [Koha] Sort of OT: configuring UFW

My apologies for posting a question that's not exactly Koha-related, though 
could be. I'm hoping that someone here can explain in a way that a simple 
medical librarian and part-time Koha geek can understand, or point me to a 
source that can. Yes, I checked the man page.

What I want to do us use UFW (Uncomplicated Firewall) on Ubuntu to allow access 
to only permitted IP addresses. I can add one IP address without a problem:
   sudo ufw allow from 192.168.1.115 to any port 80

I think I know how to add a range consisting of anything beginning with 
192.168.1.*:
   sudo ufw allow from 192.168.1.0/24 to any port 80
(Please correct me if I'm wrong.)

What I need to do is allow access from the range
   192.168.*.*
or something like this
   192.168.22-65.*
or 192.138.187-189.*

Any ideas or sources of information?

Thanks,

--Fred

Fred King, MSLS, AHIP
Medical Librarian, MedStar Washington Hospital Center
fred.k...@medstar.net
202-877-6670
ORCID -0001-5266-0279
MedStar Authors Catalog: http://medstarauthors.org

I was singing the blues when I was six. Kind of sad, eh?
--Harry Dean Staunton

--
MedStar Health is a not-for-profit, integrated healthcare delivery system, the 
largest in Maryland and the Washington, D.C., region. Nationally recognized for 
clinical quality in heart, orthopaedics, cancer and GI.

IMPORTANT: This e-mail (including any attachments) may contain information that 
is private, confidential, or protected by attorney-client or other privilege. 
If you received this e-mail in error, please delete it from your system without 
copying it and notify sender by reply e-mail, so that our records can be 
corrected... Thank you.

Help conserve valuable resources - only print this email if necessary.


___

Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
___

Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha


Re: [Koha] Sort of OT: configuring UFW

2020-05-28 Thread asakov...@hmcpl.org
One of the easiest IP network calculators to use on the web that I’ve found is 
at 

  http://www.subnet-calculator.com/subnet.php?net_class=B

Put in an IP address, select the right range, and play with the number of bits 
of masks to see what the resulting groups are that you can get. This form is JS 
powered, so there’s no submitting and reloading pages to recalculate — it 
happens as soon as you change a field value.

With masks, you’ve got to remember that the ranges you’re working with are 
based in binary, so multiples of 1, 2, 4, 8, 16, etc are going to work a whole 
lot easier than 1, 10, or 100 decimal.

For example, you first query:

192.168.x.x 

is easily handled by 

192.168.0.0/16.

However, things get complex when you start thinking in terms of decimal and try 
to map that to binary. So while it’s easy for humans to grok your next request:

192.168.22-65.*

Thinking in terms of binary, 22 = 16+4+2. Yuck.

192.168.22.0/23 = 191.168.22.1 - 191.168.23.254
192.168.24.0/21 = 191.168.24.1 - 191.168.31.254
192.168.32.0/19 = 191.168.32.1 - 191.168.63.254
192.168.64.0/23 = 191.168.64.1 - 191.168.65.254

Yes, you need all 4 of those masks to fill up the whole range. Using the 
aforementioned calculator, I started off with your base address (192.168.22.0) 
and kept shrinking the number of bits in the mask until the resulting range 
fell outside of your desired results (from 24 down to 23 — once I switched to 
22 bits, the 192.168.22 subnet dropped to a 192.168.16 range — too far!) Go 
ahead and try it — put 192.168.22.0 in the IP Address field, and start reducing 
the number of Mask Bits from 24, to 23, and then 22, keeping an eye on the Host 
Address Range results.

Next, take the next range up (we ended the first range with 192.168.23, so 
start at 192.168.24.0) and keep shrinking the mask to increase the range of 
available hosts until you again go one bit too far and the resulting range 
falls outside your desired results.

Lather, rinse, repeat, until you have all your subnets.

Hope this makes sense!
Aaron
--
Aaron Sakovich
Internet and Technology Services Manager

Huntsville-Madison County Public Library
915 Monroe Street | Huntsville, Alabama 35801 | https://hmcpl.org/




> On May 28, 2020, at 12:08, King, Fred  wrote:
> 
> My apologies for posting a question that's not exactly Koha-related, though 
> could be. I'm hoping that someone here can explain in a way that a simple 
> medical librarian and part-time Koha geek can understand, or point me to a 
> source that can. Yes, I checked the man page.
> 
> What I want to do us use UFW (Uncomplicated Firewall) on Ubuntu to allow 
> access to only permitted IP addresses. I can add one IP address without a 
> problem:
>   sudo ufw allow from 192.168.1.115 to any port 80
> 
> I think I know how to add a range consisting of anything beginning with 
> 192.168.1.*:
>   sudo ufw allow from 192.168.1.0/24 to any port 80
> (Please correct me if I'm wrong.)
> 
> What I need to do is allow access from the range
>   192.168.*.*
> or something like this
>   192.168.22-65.*
> or 192.138.187-189.*
> 
> Any ideas or sources of information?
> 
> Thanks,
> 
> --Fred
> 
> Fred King, MSLS, AHIP
> Medical Librarian, MedStar Washington Hospital Center
> fred.k...@medstar.net
> 202-877-6670
> ORCID -0001-5266-0279
> MedStar Authors Catalog: http://medstarauthors.org
> 
> I was singing the blues when I was six. Kind of sad, eh?
> --Harry Dean Staunton
> 
> --
> MedStar Health is a not-for-profit, integrated healthcare delivery system, 
> the largest in Maryland and the Washington, D.C., region. Nationally 
> recognized for clinical quality in heart, orthopaedics, cancer and GI.
> 
> IMPORTANT: This e-mail (including any attachments) may contain information 
> that is private, confidential, or protected by attorney-client or other 
> privilege. If you received this e-mail in error, please delete it from your 
> system without copying it and notify sender by reply e-mail, so that our 
> records can be corrected... Thank you.
> 
> Help conserve valuable resources - only print this email if necessary.
> 
> 
> ___
> 
> Koha mailing list  http://koha-community.org
> Koha@lists.katipo.co.nz
> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha

___

Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha


Re: [Koha] [EXTERNAL] Re: Sort of OT: configuring UFW

2020-05-28 Thread King, Fred
Thank you! It almost does. Now I need to think about it for a bit. Or maybe for 
an octet. 😊

Fred King, MSLS, AHIP
Medical Librarian, MedStar Washington Hospital Center
fred.k...@medstar.net
202-877-6670
ORCID -0001-5266-0279
MedStar Authors Catalog: http://medstarauthors.org

I was singing the blues when I was six. Kind of sad, eh?
--Harry Dean Staunton

From: asakov...@hmcpl.org 
Sent: Thursday, May 28, 2020 1:45 PM
To: King, Fred 
Cc: Koha 
Subject: [EXTERNAL] Re: [Koha] Sort of OT: configuring UFW

** ATTENTION: This email originated from outside the MedStar network.
** DO NOT CLICK links or attachments unless you recognize the sender and know 
the content is safe.
One of the easiest IP network calculators to use on the web that I’ve found is 
at

  
http://www.subnet-calculator.com/subnet.php?net_class=B

Put in an IP address, select the right range, and play with the number of bits 
of masks to see what the resulting groups are that you can get. This form is JS 
powered, so there’s no submitting and reloading pages to recalculate — it 
happens as soon as you change a field value.

With masks, you’ve got to remember that the ranges you’re working with are 
based in binary, so multiples of 1, 2, 4, 8, 16, etc are going to work a whole 
lot easier than 1, 10, or 100 decimal.

For example, you first query:

192.168.x.x

is easily handled by

192.168.0.0/16.

However, things get complex when you start thinking in terms of decimal and try 
to map that to binary. So while it’s easy for humans to grok your next request:

192.168.22-65.*

Thinking in terms of binary, 22 = 16+4+2. Yuck.

192.168.22.0/23 = 191.168.22.1 - 191.168.23.254
192.168.24.0/21 = 191.168.24.1 - 191.168.31.254
192.168.32.0/19 = 191.168.32.1 - 191.168.63.254
192.168.64.0/23 = 191.168.64.1 - 191.168.65.254

Yes, you need all 4 of those masks to fill up the whole range. Using the 
aforementioned calculator, I started off with your base address (192.168.22.0) 
and kept shrinking the number of bits in the mask until the resulting range 
fell outside of your desired results (from 24 down to 23 — once I switched to 
22 bits, the 192.168.22 subnet dropped to a 192.168.16 range — too far!) Go 
ahead and try it — put 192.168.22.0 in the IP Address field, and start reducing 
the number of Mask Bits from 24, to 23, and then 22, keeping an eye on the Host 
Address Range results.

Next, take the next range up (we ended the first range with 192.168.23, so 
start at 192.168.24.0) and keep shrinking the mask to increase the range of 
available hosts until you again go one bit too far and the resulting range 
falls outside your desired results.

Lather, rinse, repeat, until you have all your subnets.

Hope this makes sense!
Aaron
--
Aaron Sakovich
Internet and Technology Services Manager

Huntsville-Madison County Public Library
915 Monroe Street | Huntsville, Alabama 35801 | 
https://hmcpl.org/




On May 28, 2020, at 12:08, King, Fred 
mailto:fred.k...@medstar.net>> wrote:

My apologies for posting a question that's not exactly Koha-related, though 
could be. I'm hoping that someone here can explain in a way that a simple 
medical librarian and part-time Koha geek can understand, or point me to a 
source that can. Yes, I checked the man page.

What I want to do us use UFW (Uncomplicated Firewall) on Ubuntu to allow access 
to only permitted IP addresses. I can add one IP address without a problem:
  sudo ufw allow from 192.168.1.115 to any port 80

I think I know how to add a range consisting of anything beginning with 
192.168.1.*:
  sudo ufw allow from 192.168.1.0/24 to any port 80
(Please correct me if I'm wrong.)

What I need to do is allow access from the range
  192.168.*.*
or something like this
  192.168.22-65.*
or 192.138.187-189.*

Any ideas or sources of information?

Thanks,

--Fred

Fred King, MSLS, AHIP
Medical Librarian, MedStar Washington Hospital Center
fred.k...@medstar.net
202-877-6670
ORCID -0001-5266-0279
MedStar Authors Catalog: 
http://medstarauthors.org

I was singing the blues when I was six. Kind of sad, eh?
--Ha

Re: [Koha] Report help needed

2020-05-28 Thread Michael Sutherland
I do not know about the speed and I'm not an expert either.  The beauty of
the reports is that we can borrow them from others, save them and change
them as needed, right? It is the same as the former query
'ExtractValue(marcxml'
changing to ExtractValue(metadata'.  All of the reports in the reports
library  should
be and look to be updated for the new versions to help new and current
users.  I remember trying a number of reports in the library that did not
work for me.

Best,
M.
_
*Michael J. Sutherland*
University Libraries
Virginia Tech
sudrl...@vt.edu | 540.231.9669 <+15402319669>



On Wed, May 27, 2020 at 7:43 PM Mark Alexander  wrote:

> Excerpts from Michael Sutherland's message of 2020-05-27 16:59:50 -0400:
> > CASE SUBSTR(metadata,282,2)
>
> I tried this myself, and it does seem to work.  But I worry that
> the 282 value might not be correct in the future, should the XML
> format of the metadata change even slightly.  In particular,
> the XML header has a field called xsi:schemaLocation that contains
> a URL that might change someday.  I could very wrong about this,
> though; perhaps the format really is stable.
>
> This does the same job and seems less obscure (to me, anyway):
>
>   substring(ExtractValue(metadata, '//leader'), 7, 2)
>
> But perhaps it's not as fast?  I'm not a MySQL expert by any means.
> ___
>
> Koha mailing list  http://koha-community.org
> Koha@lists.katipo.co.nz
> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
>
___

Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha