1. Modify the/etc/gdm/custom.conf file
[Daemon]
[Security]
Disallowtcp=false
Allowremoteroot=true
[XDMCP]
Enable=true
[Greeter]
[Chooser]
[Debug]
2. Modify the/etc/sysconfig/iptables file
# Firewall configuration written by System-config-firewall
# Manual Customization of this file are not recommended.
*filter
: INPUT ACCEPT [0:0]
: FORWARD ACCEPT [0:0]
: OUTPUT ACCEPT [0:0]
-A input-m state--state established,related-j ACCEPT
-A input-p icmp-j ACCEPT
-A input-i lo-j ACCEPT
-A input-m state--state new-m tcp-p TCP--dport 22-j ACCEPT
-A input-m state--state new-m udp-p UDP--dport 177-j ACCEPT
-A input-m state--state new-m tcp-p TCP--dport 177-j ACCEPT
-A input-m state--state new-m tcp-p TCP--dport 6000:6010-j ACCEPT
-A input-j REJECT--reject-with icmp-host-prohibited
-A forward-j REJECT--reject-with icmp-host-prohibited
COMMIT
3. Restart the firewall
[Email protected] init.d]#/iptables restart
Use Xmanager to access CentOS6.5 under Windows