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 save
iptables: Saving firewall rules to
/etc/sysconfig/iptables
:[ OK ]
[root@centos]
#
service iptables restart
iptables: 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 -L
Chain INPUT (policy ACCEPT)
target prot opt
source
destination
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ms-wbt-server
ACCEPT all -- anywhere
anywhere state RELATED,ESTABLISHED
ACCEPT icmp -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:
ssh
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
Chain FORWARD (policy ACCEPT)
target prot opt
source
destination
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
Chain OUTPUT (policy ACCEPT)
target prot opt
source
destination
Leave A Comment?