Dec 21, 2019

Reset Sophos UTM active IP licence count

split tunneling を定義しないまま SSL VPNした上で
最寄りの/24なネットワーク全体を走査すると、結果的にライセンスオーバーの誤認が起こりうる。そんな時の回避策。

1. To verify the existing license count

a) コンソール/sshでログオンして
 # /usr/local/bin/count_active_ip.plx --showcount
b) Webの管理メニューからは
 look to management / licensing / active IP's
 すると過去7日分の使用IPが確認できるらしい

2. To reset IP count

1) Login to unit via SSH (you must have the "loginuser"
     and "root" user passwords set via the web interface).
2) Type "cc" and hit enter
3) Type "licensing" and hit enter
4) Type "active_ips@" and hit enter
5) Type "=[]" and hit enter
6) Type ".." and hit enter
7) Type "user_limit_exceeded$" and hit enter
8) Type "=0" and hit enter
9) Tyipe "exit", to quit, and hit enter.

At this point the IP table should be flushed and the unit should no longer be in violation of the license.

Please keep in mind that this is a quick fix to a licensing issue.
If you really have too many devices on your network, please consider purchasing a license for the devices you have.

参考にしたところ

1 a), 2
  Reset Sophos UTM active IP licence count (2014.12.30)
https://community.spiceworks.com/how_to/103441-reset-sophos-utm-active-ip-licence-count

1(b)
  License usage: EXCEEDING 110% OF USER COUNT on Sophos UTM (2017.05.02)
https://community.sophos.com/products/unified-threat-management/f/utm-manager-formerly-acc/86750/license-usage-exceeding-110-of-user-count-on-sophos-utm

Dec 10, 2019

AWUS036ACS driver for Linux

Install

# apt-get install -y realtek-rtl88xxau-dkms 
was the easiest way to install.

・環境
Debian系Linnux(raspi3B+)  APで試し中。良好な感触。

・試行錯誤経緯
本家 alfa.com.tw からダウンロードした内のMakefile には 
CONFIG_PLATFORM_ARM_RPI が無く、どうしたものか悩んでいた。
購入先 amazonのカスタマーレビューに有用情報があって助かった。というか、購入前にチェックして自分に宛てた備忘メールに書いていたでござる。

参考にしたところ

・Alfa AWUS036ACS 802.11ac AC600 Wi-Fi Wireless Network Adapter

Customer reviews (2019.01.30)

This card is exactly what I needed in order to access nearby 2.4 ghz and 5 ghz channels while remaining discreet and not looking like a sketch weirdo with the huge wifi card plugged into my laptop.

This card is not plug and play for linux but all you have to do is install new realtek drivers and as you can see in my screenshots it works like a charm.. I live in an apartment building with 18 units and the card picked up about 25 SSIDs.

You can install the new drivers for debian linux (kali/parrot) with this command or something similar depending on your distro:

apt-get install -y realtek-rtl88xxau-dkms

Card was plug and play for windows 10.

・Installing driver AWUS036AC Alfa (2016.06.18)

『You can install this driver patched for Ubuntu kernels by running

sudo apt-get install rtl8812au-dkms

It is available for wily and xenial.
shareimprove this answer 』

・alfa AWUS036AC USB WIFI adapter (2015/01/15)

『With a working temporary internet connection:

sudo apt-get install linux-headers-generic build-essential git
cd rtl8812AU_8821AU_linux
make
sudo make install
sudo modprobe rtl8812au

It 'makes' with a couple of possibly harmless warnings but no errors on my system.

After Update Manager installs a later kernel version, also known as linux-image, and after the required reboot, recompile:

cd ~/rtl8812AU_8821AU_linux
make clean
make
sudo make install
sudo modprobe rtl8812au

Please retain the file and these instructions for that time. 』

おまけ ↓ 

・Buffalo WLI-U2-KG54L で無線LANに接続 (2015/03/09)

『その1 ファイルの削除
端末から以下のコマンドで NetworkManager.state を削除する。(参照:1,2)
sudo service network-manager stop
sudo rm /var/lib/NetworkManager/NetworkManager.state
sudo service network-manager start
これで再起動後も自動で繋がるようになった。』



Dec 8, 2019

OpenVPN linux client automatically at boot、メモ

目的

ラズパイ起動時に、Sophos UTMとの間で、SSL-VPNセッションを自動的に確立する。

前提

Sophos UTM の基本設定は完了し、PCやスマホから手動でSSL-VPN接続して、インターネットWeb参照等できているものとします。
raspiの基本設定も同様に完了済みとします(Debian系ディストリビューション)。

導入

# apt install openvpn
 ※ OpenVPN≒SSL-VPN (ref. *1)

設定

1. Sophos UTMから証明書ファイルを取得
 (1) マネジメント>ユーザポータル>詳細タブで ユーザポータルページを有効にする。
 (2) VPNセッションを張りたいユーザの".ovpn"ファイルをダウンロード、
   /etc/openvpn/client/user0001.ovpn として保存。
 (3) ln -s /etc/openvpn/user0001.conf /etc/openvpn/client/user0001.ovpn
   (*.ovpn = *.conf として機能する)
2. SSL-VPNクライアントのクレデンシャル
 (1) 次のようにファイルを指定
      # vi /etc/openvpn/client/user0001.ovpn
    auth-user-pass /etc/openvpn/client/auth0001.txt
 (2) 上記TXTファイルの中身は次のように記述
  一行目:該当ユーザ名
  二行目:パスワード
  ※プレインテキストなのもどうかと思うが、
   rootでシングルユーザ前提の環境なら許容範囲か。
   念のため chmod 600 とかしておくと良いだろう(動作未確認)。

参考にしたところ

*1  よくある質問
 https://www.openvpn.jp/faq/
 『OpenVPNはSSL-VPNですか? はい』

・How to Connect to a VPN Automatically on Linux (2017.08.28)
 https://www.maketecheasier.com/connect-vpn-automatically-linux/

・Starting OpenVPN client automatically at boot
 https://askubuntu.com/questions/464264/starting-openvpn-client-automatically-at-boot

関連

・raspberry pi を access point 化 (2018.01.09)
 https://akasaka-taro.blogspot.com/2018/06/raspiap.html

Oct 24, 2019

本日のplala スピードテスト

■概要
 平日昼間、前回と体感的に同じ

・最高 64.28Mbps
 平均 44.83Mbps


・前回
 今回は、ターゲットサーバが入れ替わっているので、単純比較はできないが
 体感的にはほぼ同じでした。
 https://akasaka-taro.blogspot.com/2015/07/blog-post_17.html



Oct 17, 2019

メモ、NVIDIA Jetson Nano

・予習
この辺を見ておいた
・NVIDIA JETSON NANO 開発者キットを動かすのに必要なもの (06/14)

・購入
本体。今日見たところ、スイッチサイエンスさんがお手頃価格。
・アマゾン
・スイッチサイエンス

ケース、電源、ファンもそろえた方が良いらしい。後日考えることに。
・Jetson Nanoが使えるようになるまで (08/19)
micro USB Type-BでもOSは起動するが、
5V4A(内径2.1mm、外形5.5mm)のこっちを買っといた方が無難と良く分かる記事。

なお、J25部分の電源ジャックから給電する場合は、J48ピンをジャンパーでショートさせる。
ショートさせなければJ28 Micro-USBコネクタからの給電。

・Jetson Nanoのファン購入に気をつけろ! (06/16)

・セットアップ
・Jetson Nanoをセットアップしてディープラーニングで画像認識を試してみた (04/29)

焼くだけなら、本家サイト英語版も見やすくまとまっているので、一度見ておこう。
・Getting Started With Jetson Nano Developer Kit

コマンドでチューニング
・Jetson Nano関係のTIPSまとめ (10/07)

・NVIDIA Jetson Nanoのサンプルアプリを動かしてみよう、Hello AI World、Two Days to a Demo (04/27)

以上


Oct 2, 2019

記事、仮想パッチ


・仮想パッチによるパッチ管理と脆弱性対策 (08/07)

仮想パッチと、こっちの「0patchのmicropatch」は同様なんだろうか?
        ↓
・Windows7 や2008のESU (Extended Security Updates)について (2020/01/03)
 https://akasaka-taro.blogspot.com/2020/01/windows7-2008esu-extended-security.html