AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-536385

ricekab's questions

Martin Hope
ricekab
Asked: 2021-08-06 06:22:35 +0800 CST

无法通过 Windows 资源管理器中的主机名 UNC 路径(IP 有效)访问 samba Ubuntu 服务器

  • 1

设置

我们有一个在 Windows Server 2012 ( ad01.<domainroot>) 上运行的 AD 服务器。有一个 Samba 文件服务器在 Ubuntu 20.04 ( fs02.<domainroot>) 上运行。文件服务器是使用 winbind 加入域的。

在这篇文章中,我将使用<domainroot>作为AD.EXAMPLE.ORG的等效占位符,并将<workgroup>用于工作组。

问题

我们无法通过其主机名访问 samba 服务器/共享,我们收到一个网络错误,声称它无法访问:

在此处输入图像描述.

如果使用 FQDN,问题也是一样的。

如果我通过它的 IP ( \\<fs02 IP>) 导航到它,它可以正常工作,因此共享本身似乎是正确的。(下面添加了 smb.conf)

我试过的

我最初的想法是检查 DNS,但nslookup fs02给了我正确的响应。我也可以毫无问题地ping它。

我也试过摆弄smb.conf,这是我目前使用的配置:

[global]
security = domain

workgroup=<workgroup>
realm=<domainroot>
netbios name = fs02

# === logging config ===
log file = /var/log/samba/%m.log
log level = 1

# === Backend setup ===

idmap config * : backend = tdb
idmap config * : range = 2000-9999
idmap config <workgroup> : backend = rid
idmap config <workgroup> : range = 10000-30000

winbind use default domain = yes
winbind nested groups = yes
winbind refresh tickets = yes

inherit owner = yes
vfs objects = acl_xattr
map acl inherit = yes
store dos attributes = yes

unix extensions = yes

# === Share definitions ===
# ... pruned ...
samba server-message-block windows-explorer
  • 1 个回答
  • 240 Views
Martin Hope
ricekab
Asked: 2021-02-20 02:01:10 +0800 CST

QNAP FTP 用户无法登录(管理员登录有效)- 与网络无关

  • 0

此问题与 QNAP 型号 TVS-1282T(版本:)有关4.4.1.1117。

我们在通过 WAN 连接到我们的 FTP 时遇到问题。管理员用户可以正常连接,但任何其他用户(对 FTP 共享具有 RW 访问权限)不能。

这是客户端 (FileZilla) 输出(个人信息被混淆)。

Status: Resolving address of ftp.<our_domain>
Status: Connecting to <our_wan_ip>:21...
Status: Connection established, waiting for welcome message...
Status: Initializing TLS...
Status: Verifying certificate...
Status: TLS connection established.
Command:    USER ftpuser
Response:   331 Password required for ftpuser
Command:    PASS ********
Response:   530 Login incorrect.
Error:  Critical error: Could not connect to server

我已确认以下内容:

  • 绝对不是凭证错字 - 我已经多次重置密码以确保。
  • 这与网络无关 - 假设管理员用户可以连接 + 错误也发生在 LAN 上。
  • 错误与 VPN 无关。每当我更改设置时,我都会确保关闭它进行测试。
  • FTP 正确使用 /FTP 共享。
  • ftpuser对 FTP 共享具有 RW 访问权限。
  • 启用匿名登录似乎没有帮助。

我从谷歌搜索中找到的线程要么提到过时的固件(几年前),要么 OP 正在使用 SFTP 做一些事情,这应该只是管理员。不幸的是,这些与我们的案例无关。

我是否忽略了某个地方的设置?我不熟悉 QNAP 使用的 FTP 服务器,所以不知道从哪里开始查看终端。

任何帮助是极大的赞赏!

ftp qnap
  • 2 个回答
  • 360 Views
Martin Hope
ricekab
Asked: 2020-09-03 04:58:11 +0800 CST

nftables 拒绝导致放弃裁决

  • 1

我有 nftables 设置来拒绝与我的允许块不匹配的数据包(nft list ruleset在下面添加),但是这些数据包被丢弃了。

对于上下文,我有一个服务监听端口 8080,只有 localhost 才能访问(目前)。我的设置允许这样做,但客户的请求超时而不是被拒绝。

这是我正在使用的规则集(为简洁起见略微截断),包括我用于调试的跟踪:

# nft list ruleset
table inet firewall {
    set allowed_protocols {
            type inet_proto
            elements = { icmp, ipv6-icmp }
    }

    set allowed_interfaces {
            type ifname
            elements = { "lo" }
    }

    set allowed_tcp_dports {
            type inet_service
            elements = { 22, 80, 443 }
    }

    chain allow {
            ct state established,related accept
            meta l4proto @allowed_protocols accept
            iifname @allowed_interfaces accept
            meta nftrace set 1
            tcp dport @allowed_tcp_dports accept
    }

    chain input {
            type filter hook input priority 20; policy accept;
            jump allow
            meta nftrace set 1
            reject
    }

    chain forward {
            type filter hook forward priority 20; policy accept;
            jump allow
            meta nftrace set 1
            reject
    }
}

从我的跟踪中,我可以看到数据包被丢弃:

trace id 36f72c1b inet firewall allow rule meta nftrace set 1 (verdict continue)
trace id 36f72c1b inet firewall allow verdict continue
trace id 36f72c1b inet firewall input rule meta nftrace set 1 (verdict continue)
trace id 36f72c1b inet firewall input rule reject (verdict drop)

它明确读取拒绝,但随后决定放弃。知道这是什么原因吗?

firewall centos8 nftables
  • 1 个回答
  • 825 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve