---
schema_version: "1"
id: 9a7fa5fee72a80efe1134ca2ddbea45757de034cea14f5dc52bd38947d76b7d1
title: 可选：配置客户端 IP 匹配
collection: tableau
version: current
locale: zh-cn
portal_url: https://docs.salesforce.com/tableau/current/zh-cn/server-linux/trusted_auth_optional.md
canonical_url: https://help.tableau.com/current/server-linux/zh-cn/trusted_auth_optional.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 50db3c328bb7bb5f0d5f3d52833bb2c0bb975446b5370942e7f7bccdfcbd6761
description: Configure client IP matching for trusted authentication.
---
[跳转到主要内容](#main-content)

# 可选：配置客户端 IP 匹配

默认情况下，Tableau Server 在创建或兑换票证时不考虑客户端 Web 浏览器的 IP 地址。若要对此进行更改，需要执行以下两个操作：在获取票证的 POST 请求中，使用 `client_ip` 参数指定一个 IP 地址，然后执行下面的步骤以配置 Tableau Server，以便强制客户端 IP 地址匹配。

1. 打开 TSM CLI 并键入以下命令：
    
    tsm configuration set -k wgserver.extended\_trusted\_ip\_checking -v true
2. 然后键入以下命令：
    
    tsm pending-changes apply 
    
    如果待定更改需要重新启动服务器，`pending-changes apply` 命令将显示一个提示，告知您将进行重新启动。即使服务器已停止，此提示也会显示，但在这种情况下不会重新启动。您可以使用 `--ignore-prompt` 选项隐藏提示，但这样做不会改变重新启动行为。如果更改不需要重新启动，则会在不提示的情况下应用更改。有关详细信息，请参见[tsm pending-changes apply](https://help.tableau.com/current/server-linux/zh-cn/cli_pending-changes.htm#pending-changes-apply)。