[
https://issues.apache.org/jira/browse/GUACAMOLE-396?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Jumper updated GUACAMOLE-396:
-------------------------------------
Description:
While IPv6 works well with RDP, if an SSH server is configured with an IPv6
address, guacd will always fails to connect to the SSH server via that IPv6
address, reporting the following error in the logs:
{code:none}
guacd[8407]: Unable to connect to any addresses.
{code}
This is due to the following code in guacd:
{code:none}
/* Get socket */
fd = socket(AF_INET, SOCK_STREAM, 0);
{code}
The socket type for the socket created above will be always AF_INET which only
works for IPv4.
was:
- Configure an IPv6 address on a ssh server.
- Add a ssh connection with the IPv6 address in guacamole.
- Guacd always fails to connect to the ssh server with the IPv6 address.
- Observed the below error log.
guacd[8407]: Unable to connect to any addresses.
More info:
- IPv6 works well with RDP.
- The connection failure with SSH and IPv6 is caused by the below code in
guacd. The socket type for ssh will be always AF_INET which only works for IPv4.
vi src/common-ssh/ssh.c +435
/* Get socket */
fd = socket(AF_INET, SOCK_STREAM, 0);
Question:
Can I try to fix it and make a pull request on GitHub for review? Thanks.
> guacd cannot connect to ssh servers with IPv6 addresses
> -------------------------------------------------------
>
> Key: GUACAMOLE-396
> URL: https://issues.apache.org/jira/browse/GUACAMOLE-396
> Project: Guacamole
> Issue Type: Bug
> Components: SSH
> Affects Versions: 0.9.13-incubating
> Environment: IPv6
> Reporter: James He
> Fix For: 0.9.14
>
>
> While IPv6 works well with RDP, if an SSH server is configured with an IPv6
> address, guacd will always fails to connect to the SSH server via that IPv6
> address, reporting the following error in the logs:
> {code:none}
> guacd[8407]: Unable to connect to any addresses.
> {code}
> This is due to the following code in guacd:
> {code:none}
> /* Get socket */
> fd = socket(AF_INET, SOCK_STREAM, 0);
> {code}
> The socket type for the socket created above will be always AF_INET which
> only works for IPv4.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)