分类 阿里云 下的文章

注销了一个公司的网站 ICP 备案

dn_icp_out_1.png

之前,曾帮亲人在阿里云的云服务器上,搭建了一个简单的“公司网站”,用于介绍产品,想拓宽销路。按规定,在国内的服务器上发布网站,必须有工信部的 ICP 网站备案号。获取备案号的流程,大概是在主机商里填表,照相或录视频,写承诺书。备案过程我觉得很不友好:隐私与人身安全的担忧。提交的信息中,有手机号码、有身份证号码和影像文件。这些敏感信息,可能存储在多个不同的“有关部门”:主机商、省通信管理局和工信部。特别是“承诺书”,它像张声明,说“(我)自己网站的事,自己负责,与‘相关部门’无关”。这挺“经典”的,在做一件事情的开始之前,“有关部门”已经甩锅了:这是某某的网站,他自己负责的。某某的联系人信息有了,某某的承诺书也有,特此证明。

域名是 .com 后缀的,从 2016 到现在,持有约十年了,按每年约 90 元的成本计算,这个域名已经花了约一千元钱。早在几年前,网站已经停办了,连云服务器也没续费使用了。当时,选择保留,是想备案这么复杂,先等等,再看看。近期整理时,突然发现域名还没过期,想另做他用。对照域名注册商,当前国内阿里云续费是约 95 元钱,转入到国外 Cloudflare 是 10.46 美元,折合约 75 元,都可续费一年的花销对比,Cloudflare 要便宜约 20 元。我想省下这 20 元钱,毕竟现在如果能降低成本,就要试试。

  1. 2月10日,从国内阿里云,将一个 .com 域名转入到国外的 Cloudflare ,花了 10.46 美元。转移的过程流畅
  2. 2月11日,阿里云备案客服打来电话,说域名的注册商变更了,且这个(Cloudflare)注册商不在工信部的白名单内,必须将域名在 30 天内迁回,否则备案号可能会被核销
  3. 2月12日,我主动在阿里云的备案系统时,申请注销 ICP 备案主体注销
  4. 2月13日,收到管局短信通知,确认备案主体已完成注销

我本来是想省个 10 元左右的操作,导致了注销备案主体的结果,这是我没预料到的。我跟阿里云客服说,我将域名迁出阿里云时,没有看到有这个掉备案的“风险”提示信息。并且按 .com 注册局的规定,新迁入的域名,在 60 天内不可以再次迁出。我还发牢骚说,你们口口声声说支持小微企业,为什么连个网站备案的规定却像卡喉咙那样卡得这么紧?将小微企业的手脚捆得紧紧的,他们还怎么能在激烈的市场竞争中生存得下去?

放下电话后,经过考虑,决定主动注销备案主体,如果我继续保留备案,会增加成本,在当前“节省支出”的大环境里,我选择了退出,注销了网站的 ICP 备案。我觉得如网站备案是一个过时的、负效益的规定,它如同一道门槛,抬高了市场的准入门槛,也与互联网的开放和灵活性相违背。

mailcow - 554.5.7.1 this message does not meet our delivery requirements - rspamd - aliyun.com - 白名单

问题:从 example@aliyun.com 发往 mailcow 邮局,被打回了。提示:554.5.7.1 this message does not meet our delivery requirements in replay to end of data command

步骤:登录到 mailcow 管理 web 界面,查看 rspamd 的 “日志” 。可以看到发自 example@aliyun.com 的邮件被邮局拒收(reject)了。点击查看详细,在各项扣分中,如 FREEMAIL_POLICY_FAILURE (16) 这一项就被扣了 16 分?相比较,从 example@qq.com 发过来的,没有这个扣分项。难道 aliyun.com 或由 阿里云 托管的邮局 不如 qq.com 的“知名”?

FREEMAIL_POLICY_FAILURE (16)
DMARC_POLICY_QUARANTINE (8) [aliyun.com : SPF not aligned (relaxed), No valid DKIM, quarantine]
FORGED_W_BAD_POLICY (3)
TO_EXCESS_BASE64 (1.5)
MV_CASE (0.5)
CTE_CASE (0.5)
ONCE_RECEIVED (0.2)
MIME_BASE64_TEXT (0.1)
RWL_MAILSPIKE_VERYGOOD (-0.2) [54.207.22.56:from]
R_SPF_ALLOW (-0.2) [+ip4:54.207.22.56]
MIME_GOOD (-0.1) [multipart/alternative, text/plain]
MX_GOOD (-0.01) []

尝试:将 aliyun.com 添加到全局的 header-from 白名单中。再次测试,能正常收到邮件了。

在阿里云云服务器上安装 FreeBSD 9.3 操作系统 - hw.pci.honor_msi_blacklist

问题:前些天,我再次通过阿里云的工单系统,请求工程师为 FreeBSD 9.3 的老旧系统打上 VirtIO 的补丁,以识别到云服务器的磁盘。客服的回复结论是:

6、7代实例底层环境不兼容旧版的 freebsd系统,freebsd 9系统早就eol了,后续也不会再更新相关的补丁了。如果确需使用freebsd 9.3系统,可以考虑如前面所说,使用5代或更早的实例规格,然后我们尝试从后台帮您迁移到KVM集群。

思考:我个人不太理解。首先,如 centos7 也是约在十年前发布的,但现在还能正常在阿里云5代以上的规格里使用。第二,具体到 freebsd 9.3,那是 virtio 的驱动问题,它的早期 virtio 驱动没有考虑到阿里云会自己另外定制虚拟机,不算是 freebsd 内核的问题,因为 virtio 可以从内核中剥离开,用 kldload 的方式动态加载。第三,freebsd 的 virtio 驱动也在不断进行更新,以适应更多的场景。它的源码是可以查询和获取的,所以您的工程师能在 freebsd 11.2的基础上添加上补丁。总之,这不是为freebsd的内核加补丁,只是为freebsd的virtio模块打补丁。工程师能为freebsd 11.2的virtio模块打上补丁,理论上也能为freebsd 9.3的virtio模块打上补丁。只是工程师愿不愿意花上一点时间而已,对于有经验的工程师来说,这很可能就仅仅是在操场上慢跑3~5圈的时间而已。但对于我个人来说,难得比爬天梯还难。

尝试:在谷歌搜索、poe 机器人、FreeBSD 相关文档 和 VirtualBox 的帮助下,在阿里云发布的 0001-virtio.patch 的补丁基础上,加入 hw.pci.honor_msi_blacklist=0 的参数,即可识别到硬盘。

FreeBSD 9.3 在阿里云ECS启动过程

参考:

无法为 FreeBSD 9.3 Release 的 vm-images 打上阿里云的 VirtIO 补丁

问题描述:无法为 FreeBSD 9.3 Release 的 vm-images 打上阿里云的 VirtIO 补丁。因为业务问题,须使用 FreeBSD 9.3 amd64 系统。我先从 http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/VM-IMAGES/9.3-RELEASE/amd64/Latest/FreeBSD-9.3-RELEASE-amd64-20140711-r268512.vhd.xz 下载系统镜像。再按照 https://help.aliyun.com/zh/ecs/user-guide/the-freebsd-operating-system-compatibility 这里的操作说明,想为内核打上 0001-virtio.patch 的补丁。但在执行 make -j2 buildkernel KERNCONF=GENERIC 这一步时,出错。提示:cc1: warnings being treated as errors . * [virtio_pci.o] Error code 1

阿里云客服回复:实在抱歉,FreeBSD 9.3 这个系统太老了 ,这边尝试多种方法也找不到的virtio驱动,只能建议您更换其他操作系统进行使用了,谢谢

客户反馈腾讯云的可以安装 FreeBSD 9.3 。

用 fdisk -c=dos 来从63开始分区,而不是2048开始

现象:一个阿里云的数据盘需要从原40GB扩容到60GB,系统是CentOS7。照阿里云文档中的例子操作,创建新分区后,e2fsck检查文件系统错误,Bad magic number in super-block,磁盘扩容失败。

尝试:对比阿里云文档中的例子,原分区的起始位置是63,不是例子中的2048。但默认fdisk的分区是4k对齐的,并不能从63开始,至少是2048。搜索结果中,有人说用参数 -c=dos 来运行fdisk,就可以从63开始分区,保留原分区的数据进行扩容了。

# fdisk -u /dev/vdb
Welcome to fdisk (util-linux 2.23.2).

Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): p

Disk /dev/vdb: 64.4 GB, 64424509440 bytes, 125829120 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x4ca57d7e

   Device Boot      Start         End      Blocks   Id  System
/dev/vdb1              63    83885759    41942848+  83  Linux

Command (m for help): n
Partition type:
   p   primary (0 primary, 0 extended, 4 free)
   e   extended
Select (default p): p
Partition number (1-4, default 1):
First sector (2048-125829119, default 2048): 63
Value out of range.
First sector (2048-125829119, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-125829119, default 125829119):
Using default value 125829119
Partition 1 of type Linux and of size 60 GiB is set

# e2fsck -n /dev/vdb1
e2fsck 1.42.9 (28-Dec-2013)
ext2fs_open2: Bad magic number in super-block
e2fsck: Superblock invalid, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/vdb1

The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>

fdisk -c=dos /dev/vdb

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
         switch off the mode (with command 'c').Welcome to fdisk (util-linux 2.23.2).

Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): p

Disk /dev/vdb: 64.4 GB, 64424509440 bytes, 125829120 sectors
16 heads, 63 sectors/track, 124830 cylinders
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x4ca57d7e

   Device Boot      Start         End      Blocks   Id  System
/dev/vdb1              63    83885759    41942848+  83  Linux

Command (m for help): d
Selected partition 1
Partition 1 is deleted

Command (m for help): n
Partition type:
   p   primary (0 primary, 0 extended, 4 free)
   e   extended
Select (default p):
Using default response p
Partition number (1-4, default 1):
First sector (63-125829119, default 63):
Using default value 63
Last sector, +sectors or +size{K,M,G} (63-125829119, default 125829119):
Using default value 125829119
Partition 1 of type Linux and of size 60 GiB is set

Command (m for help): wq
The partition table has been altered!

参考: