Situatie
Daca, dupa ce ai instalat XRDP -ul, este posibil sa nu te poti conecta.
Trebuie editate anumite setari in iptables pentru a permite conexiunea de remote desktop.
Mai jos iti voi arata cateva comenzi pentru a putea adauga exceptia in iptables.
Solutie
[root@centos]# iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 3389 -j ACCEPT[root@centos]# service iptables saveiptables: Saving firewall rules to /etc/sysconfig/iptables:[  OK  ][root@centos]# service iptables restartiptables: Setting chains to policy ACCEPT: filter          [  OK  ]iptables: Flushing firewall rules:                         [  OK  ]iptables: Unloading modules:                               [  OK  ]iptables: Applying firewall rules:                         [  OK  ][root@centos]#[root@centos]# iptables -LChain INPUT (policy ACCEPT)target    prot opt source              destinationACCEPT    tcp  --  anywhere     anywhere            state NEW tcp dpt:ms-wbt-serverACCEPT    all  --  anywhere     anywhere            state RELATED,ESTABLISHEDACCEPT    icmp --  anywhere     anywhereACCEPT    all  --  anywhere     anywhereACCEPT    tcp  --  anywhere     anywhere            state NEW tcp dpt:sshREJECT    all  --  anywhere     anywhere            reject-with icmp-host-prohibitedChain FORWARD (policy ACCEPT)target     prot opt source              destinationREJECT     all  --  anywhere     anywhere           reject-with icmp-host-prohibitedChain OUTPUT (policy ACCEPT)target     prot opt source               destination 
                
Leave A Comment?