页面“Win10家庭版启用远程桌面服务端”与“Ufw on debian”之间的差异

来自linux中国网wiki
(页面间的差异)
跳到导航 跳到搜索
(导入1个版本)
 
 
第1行: 第1行:
=原因 被阉割=
+
[[category:ops]]  [[category:debian]] 
Windows 10 家庭版中取消了远程桌面服务端,想通过远程连接到自己的电脑就很麻烦了,第三方远程桌面速度又不理想(如TeamViewer)。通过以下方法可让系统恢复远程桌面功能。
 
  
 +
=*  install=
  
=下载和安装=
+
  apt  install ufw
[软件下载地址直达 https://github.com/stascorp/rdpwrap/releases/download/v1.6.2/RDPWrap-v1.6.2.zip]
 
  
解压压缩包 ,右键以系统管理员身份运行 install.bat
+
=* Configuration=
 +
<pre>
 +
ufw enable
 +
Command may disrupt existing ssh connections. Proceed with operation (y|n)? y
 +
Firewall is active and enabled on system startup
  
可惜还没注册为服务 怕重启后没了
 
测试过了 重启后还在的
 
  
=参考=
 
[https://www.jianshu.com/p/bf3001099cc4 参考链接]
 
  
[https://github.com/binarymaster/rdpwrap/releases 软件下载地址]
+
ufw default deny incoming
 +
ufw default allow outgoing
  
[https://jingyan.baidu.com/article/546ae1852a79821149f28c8d.html win10家庭版远程桌面时遇到的问题及解决方法]
+
ufw status verbose
 +
</pre>
  
[[category:ops]]
+
 
 +
=* Firewall Rules=
 +
<pre>
 +
ufw app list
 +
 +
 
 +
ufw  allow 'SSH'
 +
ufw  allow  22/tcp
 +
ufw  allow WWW #其实就是80
 +
 
 +
 +
 +
ufw allow 'Nginx HTTP'
 +
 
 +
 
 +
ufw allow 53/tcp </pre>
 +
 
 +
 
 +
 
 +
==** Port Ranges ==
 +
<pre>
 +
Port ranges may also be specified, a simple example for tcp would be:
 +
 
 +
  ufw allow 1000:2000/tcp
 +
 
 +
and for udp:
 +
 
 +
  ufw allow 1000:2000/udp</pre>
 +
 
 +
==** IP address==
 +
<pre>An IP address may also be used:
 +
 
 +
ufw allow from 111.222.333.444</pre>
 +
 
 +
=* Deleting Rules=
 +
<pre>
 +
Rules may be deleted with the following command:
 +
 
 +
ufw delete allow ssh</pre>
 +
 +
 +
=troubleshooting=
 +
<pre>
 +
 
 +
openssh都连接上去
 +
 
 +
这个导致上不了的
 +
ufw default deny incoming
 +
 
 +
如何确定在 ssh这后再deny incoming 呢  参考iptalbes ?
 +
 
 +
 
 +
 
 +
</pre>
 +
 
 +
 
 +
=* see also=
 +
https://wiki.debian.org/Uncomplicated%20Firewall%20%28ufw%29
 +
 
 +
 
 +
https://help.ubuntu.com/community/UFW
 +
 
 +
https://www.digitalocean.com/community/tutorials/how-to-setup-a-firewall-with-ufw-on-an-ubuntu-and-debian-cloud-server
 +
 
 +
[https://zhuanlan.zhihu.com/p/36646621 ubuntu ufw 防火墙]

2020年2月28日 (五) 02:44的版本


* install

apt  install ufw

* Configuration

 ufw enable 
Command may disrupt existing ssh connections. Proceed with operation (y|n)? y
Firewall is active and enabled on system startup



ufw default deny incoming
ufw default allow outgoing

ufw status verbose


* Firewall Rules

 ufw app list
 

 ufw  allow 'SSH'
ufw  allow  22/tcp
 ufw  allow WWW #其实就是80

 
 
 ufw allow 'Nginx HTTP'


ufw allow 53/tcp 


** Port Ranges

Port ranges may also be specified, a simple example for tcp would be:

  ufw allow 1000:2000/tcp

and for udp:

  ufw allow 1000:2000/udp

** IP address

An IP address may also be used:

 ufw allow from 111.222.333.444

* Deleting Rules

Rules may be deleted with the following command:

 ufw delete allow ssh


troubleshooting


openssh都连接上去 

这个导致上不了的 
 ufw default deny incoming

如何确定在 ssh这后再deny incoming 呢  参考iptalbes ?




* see also

https://wiki.debian.org/Uncomplicated%20Firewall%20%28ufw%29


https://help.ubuntu.com/community/UFW

https://www.digitalocean.com/community/tutorials/how-to-setup-a-firewall-with-ufw-on-an-ubuntu-and-debian-cloud-server

ubuntu ufw 防火墙