Migrating UFS filesystem from one disk to another

I needed to migrate an UFS filesystem from one disk to another. I had several options including using two tar processes in a pipeline or using dump and restore in a pipeline. I opted for the latter to make sure everything got preserved during the transfer.

Here’s the sequence of commands where /dev/gpt/nroot0 is the GPT label of the new filesystem and / is the donor filesystem:

newfs /dev/gpt/nroot0
mount /dev/gpt/nroot0 /mnt
cd /mnt
rmdir .snap
dump -0LaP 'restore -rf -' /
cd /
umount /mnt

Micro Focus (Novell) iPrint on Windows 7

I need to remind myself of running the IPP webpage in compatiblity mode in IE11 when installing printers.

Even if you specify ipp.FQDN, IE11 will kindly enter your FQDN into the list of domain names to show in compatibility mode. Remember to remove FQDN from that list when you’re done.

iPrint client 5.99 seems to be the last of its kind. From now on, iPrint is an appliance. Maybe it’s time to leave Novell and their products for good.

Using QoS for blocking BitTorrent on Catalyst 4500E Sup8E

NBAR2 on Sup8E can assist in blocking BitTorrent. While somewhat useful, BitTorrent is mostly used for downloading pirated movies, and BitTorrent off someone’s ADSL line is usually dead slow.

Create a class map and a policy map as shown below, and attach that policy map to your ingress interfaces, and BitTorrent should be blocked.

class-map match-all QoS-Cls-BitTorrent
 match application bittorrent

policy-map QoS-Pol-BitTorrent
 class QoS-Cls-BitTorrent
  drop

interface range TenGigabitEthernet1/1 - 4
 service-policy input QoS-Pol-BitTorrent

The final questions are: Does this work at all? Is FNF needed for engaging NBAR2? Are additional licensing needed beyond the current IP Base license?

Connecting to guest-access allowed, readonly Samba shares

Sometimes security is on the border of being ridiculous. Modern Windows 10 is very anxious when connecting to guest-access allowed, readonly Samba shares, Here’s how to allow “insecure” guest logons for stand-alone computers. The same is true when configuring a GPO.

https://support.microsoft.com/en-us/help/4046019/guest-access-smb2-disabled-by-default-in-windows-10-server-2016.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters]
"AllowInsecureGuestAuth"=dword:00000001