xrdp搭建Windows跳板机
简介
xrdp不多解释,有兴趣的可以自行百度,Google
应用场景
机房内部有Windows机器,但是网络上不能直接与Windows的系统ip相通,此时需要一个跳板机来中转远程桌面。可以使用WindowsServer自带的远程桌面服务来中转管理需求,但是只有6个月的试用,当然也有别的方法激活。不过xrdp是一个很好的选择,基于Linux,而且不要钱
实验环境
centos7.4、Windows7、 VMware Workstation 14 Pro
安装步骤
1、编译安装NeutirnoRDP客户端
1)配置yum源
yum install epel-release
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
2)安装必要的包
yum install gcc git cmake openssl-devel libX11-devel libXext-devel libXinerama-devel libXcursor-devel libXdamage-devel libXv-devel libxkbfile-devel alsa-lib-devel cups-devel
yum install ffmpeg-devel
yum install libXrandr-devel
3)安装NeutrinoRDP
cd
git clone https://github.com/neutrinolabs/NeutrinoRDP.git
cd NeutrinoRDP
cp -r /usr/include/ffmpeg/* /root/NeutrinoRDP/include/
cmake .
make && make install
2、编译安装XRDP并且带有NeutirnoRDP模块
1)安装必要的包
yum install autoconf automake libtool pam-devel freerdp fuse-devel nasm
2)安装XRDP
echo 'export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig' >>~/.bashrc
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
echo /usr/local/lib >> /etc/ld.so.conf.d/neutrinordp.conf
ldconfig
git clonegit://github.com/neutrinolabs/xrdp
cd xrdp/
./bootstrap
./configure --enable-fuse ./configure --enable-neutrinordp
make && make install
3)配置XRDP
xrdp-keygen xrdp auto
cp /etc/xrdp/xrdp.sh /etc/init.d/
chkconfig --add xrdp.sh
service xrdp.sh start
netstat -tunpl