Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
更改linux网络连接类型_Linux_Powershell_Winrm - Fatal编程技术网

更改linux网络连接类型

更改linux网络连接类型,linux,powershell,winrm,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 Privat

我已尝试在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中更改网络连接类型?我想这是公开的默认设置。它是否像在Windows中那样明显:将连接类型更改为工作?但是在Linux中,如何操作?

Linux没有任何“网络类型”的概念,正如您在Windows中所知道的那样

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


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

首先->注意更改为域或专用:

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