Bug 502787

Summary: [OpenVPN] Failed to import VPN connection: Unsupported 1th argument remote_host to "route"
Product: [Applications] systemsettings Reporter: Malte S. Stretz <mss>
Component: kcm_networkmanagementAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: jgrulich
Priority: NOR    
Version First Reported In: 6.3.4   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot

Description Malte S. Stretz 2025-04-14 11:40:43 UTC
SUMMARY
I tried to import an .ovpn file, probably generated by some Sophos VPN solution. It failes with the error message

> Failed to import VPN connection: configuration error: unsupported 1th argument remote_host to "route" (line 7)

The line 7 reads as follows (not obfuscated):

```
route remote_host 255.255.255.255 net_gateway
```

STEPS TO REPRODUCE
1. Try to import an ovpn file with the setting above.

OBSERVED RESULT
Can't import OpenVPN config

EXPECTED RESULT
A new OpenVPN connection.

SOFTWARE/OS VERSIONS
Operating System: KDE neon 6.3
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2
Kernel Version: 6.11.0-21-generic (64-bit)
Graphics Platform: Wayland
Comment 1 Malte S. Stretz 2025-04-14 11:41:18 UTC
Created attachment 180255 [details]
Screenshot