更改linux网络连接类型

时间:2012-04-07 19:52:54

标签: linux powershell winrm

我在Powershell中尝试过Set-WSManQuickConfig命令,但无法配置防火墙:

Set-WSManQuickConfig : WinRM firewall exception will not work since one of the network connection types on this machine is set to Public. Change the network connection type to either Domain or Private and try again.

问题在于远程(虚拟机)Linux操作系统。如何更改linux中的网络连接类型?我认为它是默认的Public。是否像在Windows中那样明显:将连接类型更改为Work?但是在Linux中,怎么样?

2 个答案:

答案 0 :(得分:1)

Linux没有任何“网络类型”的概念,因为你知道它来自Windows。

我假设网络类型基本上是一种防火墙预配置。您可以使用iptables配置防火墙。

This是iptables的众多介绍之一。最重要的是要记住,与典型的Windows防火墙不同,iptables不会过滤应用程序而是过滤端口。

答案 1 :(得分:0)

首先 - >小心改变域名或私人:

Seven Network configuration

第二 - >在Seven或W2K8上,小心使用真正的管理员用户而不是安装时创建的伪用户。