RHEL6.2配置Xmanager访问

先决条件: 系统已经安装,并且安装好了X-window,并且启动模式是5(图形方式)。Xmanager软件使用协议  XDMCP(X Display Manager Control Protocol)X显示监控协议。

1、打开XDMCP配置文件,并且指定端口177。与RHEL5.4配置有所不同,RHEL6.2没有/usr/share/gdm/defaults.conf 。

[root@lsfronta ~]# vi /etc/gdm/custom.conf 
# GDM configuration storage
[daemon]
[security]
AllowRemoteRoot=true
[xdmcp]
Enable=true
Port=177
[greeter]
[chooser]
[debug]

2、配置防火墙,或者关闭防火墙。

在防火墙上开启允许177端口的访问

#iptables -A INPUT -p udp  -m iprange --src-range 172.169.221.5-172.169.221.8 -d 172.169.221.15 --dport 177 -j ACCEPT
#iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT

我是直接关闭了防火墙
[root@lsfrontb ~]# service iptables status
Table: filter
Chain INPUT (policy ACCEPT)
num  target     prot opt source               destination         
1    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED 
2    ACCEPT     icmp --  0.0.0.0/0            0.0.0.0/0           
3    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           
4    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:22 
5    REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited 


Chain FORWARD (policy ACCEPT)
num  target     prot opt source               destination         
1    REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited 


Chain OUTPUT (policy ACCEPT)
num  target     prot opt source               destination         


[root@lsfrontb ~]# service iptables stop
iptables: Flushing firewall rules:                         [  OK  ]
iptables: Setting chains to policy ACCEPT: filter          [  OK  ]
iptables: Unloading modules:                               [  OK  ]
[root@lsfrontb ~]# chkconfig --level 2345 iptables off
[root@lsfrontb ~]# service iptables status
iptables: Firewall is not running.
3、查看XDM运行情况
查看177端口下的应用,查看177端口。
[root@lsfrontb ~]# ps -ef | grep xdm
root      3432  3278  0 19:31 pts/0    00:00:00 grep xdm
[root@lsfrontb ~]# lsof -i:177
[root@lsfrontb ~]# netstat -an| grep 177
unix  3      [ ]         STREAM     CONNECTED     17732  /var/run/acpid.socket
unix  3      [ ]         STREAM     CONNECTED     17731  
unix  3      [ ]         STREAM     CONNECTED     17726  @/var/run/hald/dbus-dnAeVpRPhb
unix  3      [ ]         STREAM     CONNECTED     17725  
unix  3      [ ]         STREAM     CONNECTED     17700  @/var/run/hald/dbus-dnAeVpRPhb 

4、重启系统

5、使用Xmanager Enterprise 4直接访问机器。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值