When I wanted to connect to a remote Windows server using a VPN tunnel, I got the following error from FreeRDP:
ck@mint ~ $ /opt/freerdp-nightly/bin/xfreerdp /kbd:0x00000807 /size:1280x1024 /u:Administrator /d:example.com /v:10.10.45.15
[08:54:55:214] [24305:00005ef2] [ERROR][com.freerdp.core.transport] - [transport_default_write]: BIO_should_retry returned a system error 32: Broken pipe
[08:54:55:214] [24305:00005ef2] [ERROR][com.freerdp.core] - [transport_default_write]: ERRCONNECT_CONNECT_TRANSPORT_FAILED [0x0002000D]
The error(s) looks somewhat mystical and not self-explaining at all. A hint is however the part "TRANSPORT_FAILED". Could it be a connection problem?
It's always worth to verify the RDP port (tcp/3389 by default) can be reached on the target server:
ck@mint ~ $ telnet 10.10.45.15 3389
Trying 10.10.45.15...
telnet: Unable to connect to remote host: No route to host
Indeed, there is a communication issue.
It turned out I missed setting the route of the destination network (10.10.45.0/24) to my VPN (Wireguard) gateway.
After this route was added in my newly setup router running OpenWrt, communication worked:
ck@mint ~ $ telnet 10.10.45.15 3389
Trying 10.10.45.15...
Connected to 10.10.45.15.
Escape character is '^]'.
^]
telnet> quit
Connection closed.
And FreeRDP was able to connect to the RDP server again.
No comments yet.
AWS Android Ansible Apache Apple Atlassian BSD Backup Bash Bluecoat CMS Chef Cloud Coding Consul Containers CouchDB DB DNS Database Databases Docker ELK Elasticsearch Filebeat FreeBSD Galera Git GlusterFS Grafana Graphics HAProxy HTML Hacks Hardware Icinga Influx Internet Java KVM Kibana Kodi Kubernetes LVM LXC Linux Logstash Mac Macintosh Mail MariaDB Minio MongoDB Monitoring Multimedia MySQL NFS Nagios Network Nginx OSSEC OTRS Office PGSQL PHP Perl Personal PostgreSQL Postgres PowerDNS Proxmox Proxy Python Rancher Rant Redis Roundcube SSL Samba Seafile Security Shell SmartOS Solaris Surveillance Systemd TLS Tomcat Ubuntu Unix VMWare VMware Varnish Virtualization Windows Wireless Wordpress Wyse ZFS Zoneminder