Mac移行 Intel → M3

今日、オーダーしていた2021 16インチ MacBook Pro が届いたので、M1 MacBook ProとThunderbolt 3ケーブルで繋いでデータ移行を行いました ターゲットディスクモードがなくなったApple Silicon M1 Macから移行アシスタントで移行する方法 | 酔いどれオヤジの…

vm-bhyve テンプレート

https://github.com/churchers/vm-bhyve/blob/master/sample-templates/config.sample参考になる

vm-bhyve switch name

switch名にドット `. ` は使用しない $ sudo vm switch create foo.bar $ sudo vm switch add foo.bar ix0 /usr/local/sbin/vm: ERROR: unable to configure switch of unknown type原因 vm switch create foo.bar で /zdata/vm/.config/system.conf に type…

Movable Type ドメイン 変更

MT5 サイトURL、サイトパスを書き換え mysqldump --user=mtuser --password=mtpasswd mt > BACKUP.mysql mysql DROP DATABASE mt; CREATE DATABASE mt; cat BACKUP.mysq \ | sed -E \ -e "s|https://foo.example.com|https://bar.example.net|g" \ -e "s|'/d…

Googleスプレッドシート

Googleスプレッドシート フィルタ フィルタを作成 共有される フィルタ表示 → 個人フィルタ Googleスプレッドシートで自分だけのフィルターをつくる方法 2023 条件付き書式 カスタム数式数式の「$」記号は、参照先を固定する場合に使用され、数式「=OR($B2>=…

SeaTools

SeaToolshttps://www.seagate.com/jp/ja/support/downloads/seatools/SeaTools BootableSMART Check Short Drive Self Test Long Drive Self Test 2 Minute Generic Short Generic Test Long Generic Testhttps://www.reddit.com/r/DataHoarder/comments/17h…

FreeBSD Root on ZFS HDD ディスク交換

前提環境 raidz2、UEFI/GPTブート、swapはgmirrorPartitioning > Auto (ZFS) でインストール ZFS Configuration Pool Type/Disks: → raidz2: 8 disks PoolName zroot Force 4K Sectors? YES Encrypt Disks? NO Partition Scheme GPT (BIOS+UEFI) Swap Size 8…

WSL 起動しない

cmdwsl Error: 0xd000020c Error code: Wsl/Service/CreateInstance/0xd000020chttps://github.com/microsoft/WSL/issues/11255

bot deny nginx

各botの説明サイトと実際のサービスサイトを張っておきます Semrush は無料では使えないので Disallow: / でよいと思います Ahrefs は無料で多少使えますが、詳しく見ようと思うと有料 majestic MJ12bot は無料でさわりを見ることができ、詳しく見ようと思う…

pm2-logrotate

PM2のモジュールをインストールする場合、実行ユーザーに注意が必要です。 become: trueのみ指定した場合、rootのみにモジュールがインストールされてしまいます。 become_user: xxxxxで正しいユーザーを指定しましょう。 - name: Install pm2 community.gen…

dell DRM SUU

Dell DRM (Dell Repository Manager) 先月、SUUの最新版が公開されまして、Bootable ISOもほぼ同時に公開されるので待っていたのですがサポートのダウンロードページにリストされません。どうしたんだろうと調べると、こちらのページに 2022年3月以降、プラ…

apache SSLオフロード rewrite

ServerName https://example.com ServerName accepts a scheme as well, e.g. ServerName https://example.com. Changing this in the configuration and restarting Apache did the trick. From the documentation: Sometimes, the server runs behind a de…

fml DKIM DMARC

原因1. MLに投稿すると, さくらレンタルサーバーから投稿者のメールアドレスを 「騙って」メンバーに配布されるので, そもそもメーリングリストの手法は なりすましである. 原因2. 投稿者の DKIM のシグナチャーがあるとそれが引き継がれるので さくらレンタ…

DMARC アライメント

DMARC Alignmentチェックは、SPF・DKIM、どちらかが合格していればOKです。 これは、SPFの場合、転送メールの場合は、SPFが不合格になります。 そこで片側だけが合格すればOKとなれば、転送メールであっても、メールの内容を変更してない場合はDKIMが合格し…

Apache UserAgentで制限

# Apache2.4系の場合 SetEnvIf User-Agent "Bytespider" bothersome_bot BrowserMatchNoCase "Bytespider" bothersome_bot <RequireAll> Require All Granted Require not env bothersome_bot </RequireAll>https://www.advantech.jp/archives/3619 bothersome_bot <IfModule mod_setenvif.c> SetEnvIf User-Age</ifmodule>…

TCP Timestamp Option ICMP Timestamp

TCP Timestamp Option これは、下記の変更によりコネクションごとにタイムスタンプがランダム化されるようになったためです。 コミット: tcp: randomize tcp timestamp offsets for each connection 95a22ca https://git.kernel.org/pub/scm/linux/kernel/gi…

sshd_config

Ciphers -chacha20-poly1305@openssh.com MACs -*etm@openssh.comSSHのセキュリティ弱体化攻撃「Terrapin」の対策公開、JPCERT/CC | TECH+(テックプラス) 2023 # Ciphers # chacha20-poly1305@openssh.com, # aes128-ctr,aes192-ctr,aes256-ctr, # aes128-…

msmtp: cannot log to /var/log/msmtp.log: cannot open: Permission denied

Ubuntu 22.04 I had the same error message, and ultimately changing permissions, creating the log file, etc., didn't work. The problem in my case was caused by AppArmor: in my system, the file /etc/apparmor.d/usr.bin.msmtp only listed /var/…

ppa:ondrej

ppa:ondrej/apache2 https://launchpad.net/~ondrej/+archive/ubuntu/apache2 Ubuntu 22.04 2.4.52 to 2.4.58https://serverfault.com/questions/1151794/apache-upgrade-to-2-4-58-on-ubuntu-22-04 Ubuntu 16.04 BestManfred Hampl (m-hampl) said on 2021-…

FreeBSD 14.0 mysql81-server-8.1.0 WARNING: failed precmd routine for mysql

/usr/local/etc/rc.d/mysql-server start /usr/local/etc/rc.d/mysql-server: WARNING: failed precmd routine for mysql sh -x /usr/local/etc/rc.d/mysql-server start ... + [ ! -d /var/db/mysql/mysql/. ] + mysql_create_auth_tables + eval /usr/loca…

DMARC集計レポート受信 → 可視化

https://www.reddit.com/r/selfhosted/comments/vcf8aj/dmarc_report_analyzer_and_visualizer/ サービス DMARC集計レポートを受信して可視化するツールを探す | DevelopersIO 2022→ https://dmarcian.com/jp/ OSS https://github.com/techsneeze/dmarcts-re…

OpenDMARC

https://wiki.archlinux.jp/index.php/OpenDMARCDMARC検証。集計レポート送信いまさらだけど遅すぎというほどでもないDMARC レポート編1 - がとらぼ 2022 FreeBSD DMARCを導入する – 気まぐれITエンジニアBlog 2022FreeBSD 12 で自宅サーバ作成 メールサーバ…

sendmail TLS エンフォースメント

Example: e-mail sent to secure.example.com should only use an encrypted connection. E-mail received from hosts within the laptop.example.com domain should only be accepted if they have been authenticated. The host which receives e-mail for…

sendmail フィルタ

INPUT_MAIL_FILTER(`opendkim', `S=local:/var/run/opendkim/opendkim.sock,F=T') F= は、以下のフラグのいずれを適用するかを示します。 項目 説明 R フィルターが使用不可の場合に接続が拒否されます。 T フィルターが使用不可の場合に接続が一時的に失敗…

sendmail ruleset ルール セット

An Address Rewriting Rule The core of sendmail’s address rewriting capabilities is based on the idea of rules and rulesets. An individual address rewriting rule is a simple if ... then ... statement. If the address matches the Left Hand Si…

sendmail QUEUE_GROUP

/usr/local/share/doc/sendmail/TUNING Let's assume a simple example: a mailing list where most of the recipients are at three domains: the local one (local.domain) and two remotes (one.domain, two.domain) and the rest is splittered over sev…

mfsmax.docomo.ne.jp 454 4.7.0 TLS handshake failed.

FreeBSD 14.0 sendmail-8.17.2 OpenSSL 3.0.12unsafe legacy renegotiation disabled sm-mta[47973]: STARTTLS=client, error: connect failed=-1, reason=unsafe legacy renegotiation disabled, SSL_error=1, errno=0, retry=-1 sm-mta[47973]: ruleset=tl…

Office365 xxx.prod.outlook.com Too many recipients

stat=Deferred: 452 4.5.3 Too many recipients (AS780090) From further research, it appears that Office 365 servers are picky with new servers, and they require them being run long enough to gain a good reputation. A lot of people complain a…

procmailrc の ^FROM_DAEMON ^FROM_MAILER

正規表現に `^FROM_DAEMON' とある場合、 (^(Mailing-List:|Precedence:.*(junk|bulk|list)|To: Multiple recipients of |(((Resent-)?(From|Sender)|X-Envelope-From):|>?From )([^>]*[^(.%@a-z0-9])?(Post(ma?(st(e?r)?|n)|office)|(send)?Mail(er)?|daemo…

Precedence: bulk

RFC 2076 Precedence: bulk メール送信者のガイドラインに Precedence: bulk の明確な記述はない (2024/2 現在) メール送信者のガイドライン - Google Workspace 管理者 ヘルプ 参考情報:https://www.validity.com/understanding-the-precedence-header/ あ…