Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: ADS Driver doesn't seem to support connections via VPN #1519

Open
2 of 16 tasks
chrisdutz opened this issue Apr 12, 2024 · 3 comments
Open
2 of 16 tasks

[Bug]: ADS Driver doesn't seem to support connections via VPN #1519

chrisdutz opened this issue Apr 12, 2024 · 3 comments
Labels
ADS https://plc4x.apache.org/users/protocols/ads.html bug java Pull requests that update Java code

Comments

@chrisdutz
Copy link
Contributor

What happened?

When trying to connect to an ADS device via a VPN connection, the remote device seems to simply hang up.

Version

v0.13.0-SNAPSHOT

Programming Languages

  • plc4j
  • plc4go
  • plc4c
  • plc4net

Protocols

  • AB-Ethernet
  • ADS /AMS
  • BACnet/IP
  • CANopen
  • DeltaV
  • DF1
  • EtherNet/IP
  • Firmata
  • KNXnet/IP
  • Modbus
  • OPC-UA
  • S7
@chrisdutz chrisdutz added the bug label Apr 12, 2024
@IsmoLeszczynski
Copy link
Contributor

Just as additional information relating to this, I've been working on a solution and testing it via an OpenVPN connection successfully, so some VPN connections work.

What I did have issues with was connecting via IP instead of hostname, don't know that's related - using IP caused the PLC to terminate the connection immediately, but using hostname worked fine. This was a bit puzzling, but I haven't used ADS enough to say is this as it should be.

@chrisdutz
Copy link
Contributor Author

I recently setup my test-environment to be only reachable via VPN (Unify Gateway) ... so when using the built-in MAC VPN (L2TP over IPSec) and using an IP I was having the remote simply hang up ... if this is just a documentation problem, then I would be super happy ;-)

@chrisdutz
Copy link
Contributor Author

I think the problem might be related to my device getting an IP address that is generally not reachable from the ADS device. So the device has the IP 192.168.23.20 and a netmask for 255.255.255.0 ... my local dialin computer has an address of 192.168.2.6 ... I would probably try to configure the VPN to give my client an IP on the remote network instead of using the VPN tunnel as default gateway.

@splatch splatch added java Pull requests that update Java code ADS https://plc4x.apache.org/users/protocols/ads.html labels Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ADS https://plc4x.apache.org/users/protocols/ads.html bug java Pull requests that update Java code
Projects
None yet
Development

No branches or pull requests

3 participants