首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >tinc限制客户之间的通信

tinc限制客户之间的通信
EN

Server Fault用户
提问于 2016-07-01 21:17:38
回答 1查看 736关注 0票数 2

我有一个网络:

代码语言:javascript
复制
[host] <------->[host] <----------- [workstation]
    ^   ^        ^ ^
   /     \      /   \
  /       \    /     \
[client] [client] [client] [...]

(pointers are ConnectTo directives)
(host:=linux, client:=win, workstation:={linux,win})

如何防止从客户端到另一个客户端的直接(逻辑)连接,但允许工作站访问网络中的所有内容。

有什么办法可以做到吗?

我使用tinc版本1.1到14。

EN

回答 1

Server Fault用户

发布于 2017-01-15 05:51:41

您可以使用严格的参数,而不是在客户端之间交换密钥,然后将主机和工作站防火墙设置为不接受来自客户端子网的连接。

代码语言:javascript
复制
     StrictSubnets = yes | no (no) [experimental]
         When this option is enabled tinc will only use Subnet statements which are present in the host config files in the
         local /etc/tinc/NETNAME/hosts/ directory. Subnets learned via connections to other nodes and which are not present
         in the local host config files are ignored.

     TunnelServer = yes | no (no) [experimental]
         When this option is enabled tinc will no longer forward information between other tinc daemons, and will only allow
         connections with nodes for which host config files are present in the local /etc/tinc/NETNAME/hosts/ directory.
         Setting this options also implicitly sets StrictSubnets.
票数 1
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/787482

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档