小编Mla*_*vic的帖子

iptables 有“在任何地方接受所有”和“在任何地方删除所有”规则

我很困惑。这是我的 iptables 配置:

$ iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
DROP       tcp  --  anywhere             anywhere             tcp dpt:ssh state NEW recent: UPDATE seconds: 60 hit_count: 3 TTL-Match name: sshprobe side: source mask: 255.255.255.255
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:ssh state NEW recent: SET name: sshprobe side: source mask: 255.255.255.255
ACCEPT     all  --  anywhere             anywhere             state RELATED,ESTABLISHED
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:http
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:ssh …
Run Code Online (Sandbox Code Playgroud)

iptables

13
推荐指数
1
解决办法
2万
查看次数

iozone:5 个并发线程随机读取 300K 块比仅使用一个线程执行更多操作/秒,潜在原因是什么?

该分区位于使用软件 RAID 的 RAID1 中。

    Command line used: iozone -s 190g -r 300k -O -b test_file
    OPS Mode. Output is in operations per second.
                                                            random  random    bkwd   record   stride                                   
          KB  reclen   write rewrite    read    reread    read   write    read  rewrite     read   fwrite frewrite   fread  freread
   199229440     300     240     234      254      253      58     127     100     6539       91      234      234     254      254
Run Code Online (Sandbox Code Playgroud)

因此,对于 300K 块,使用一个线程的随机读取速度为 58 ops/second,大约为 17MB/s。

但是当我尝试 5 个线程每个读取 300K 块时,出乎意料的是它运行得更快,尽管我希望有更多的随机访问:

    OPS Mode. Output is in operations per second.
    Command line …
Run Code Online (Sandbox Code Playgroud)

linux performance storage cache

5
推荐指数
1
解决办法
1276
查看次数

opendkim-testkey 返回“无效的数据集类型”,而如果我指定域和选择器,我会得到“Key OK”

我遇到的问题是 opendkim testkey 返回错误“无效的数据集类型”,除非我将域和选择器传递给命令。为什么会发生这种情况?详情如下:

没有域和选择器:

root@condor1796 /etc/opendkim # sudo -u opendkim opendkim-testkey -vvvv
opendkim-testkey: using default configfile /etc/opendkim.conf
opendkim-testkey: invalid data set type
root@condor1796 /etc/opendkim # 
Run Code Online (Sandbox Code Playgroud)

指定域和选择器:

root@condor1796 /etc/opendkim # sudo -u opendkim opendkim-testkey -vvvv -d numbeo.com -s mail
opendkim-testkey: using default configfile /etc/opendkim.conf
opendkim-testkey: checking key 'mail._domainkey.numbeo.com'
opendkim-testkey: key not secure
opendkim-testkey: key OK
Run Code Online (Sandbox Code Playgroud)

正如我在另一个线程中了解到的,关键的不安全输出是:

“密钥不安全”并不表示有错误。这是不使用 DNSSSEC 的预期结果。

这是我的配置文件:

root@condor1796 /etc/opendkim # cat /etc/opendkim.conf
OversignHeaders     From
TrustAnchorFile       /usr/share/dns/root.key

AutoRestart             Yes
AutoRestartRate         10/1h
UMask                   002
Syslog                  yes
SyslogSuccess           Yes …
Run Code Online (Sandbox Code Playgroud)

dkim opendkim

4
推荐指数
1
解决办法
1787
查看次数

标签 统计

cache ×1

dkim ×1

iptables ×1

linux ×1

opendkim ×1

performance ×1

storage ×1