packages icon indicating copy to clipboard operation
packages copied to clipboard

openconnect: introduced script parameter

Open immens opened this issue 1 year ago • 1 comments

This allows specifying a custom vpnc-compatible config script.

Maintainer: me Compile tested: n/a (runtime only) Run tested: OpenWRT 23.05.5 (Routerich AX3000) with and without set option

Description: This allows specifying a custom vpnc-compatible config script.

immens avatar Oct 15 '24 17:10 immens

@BKPepe, is any action needed?

immens avatar Oct 23 '24 16:10 immens

Thank you for the PR. Can you give some context on why this is needed?

nmav avatar Oct 31 '24 13:10 nmav

Thank you for the PR. Can you give some context on why this is needed?

Yep, of course. In cases of improperly configured servers, it may be necessary to change the behavior of the vpnc-script. Specifically, in my case, I redefined the CISCO_SPLIT_DNS environment variable with a custom script that resolves only the addresses of specified domains through the DNS provided by the tunnel. So for now, it requires manually making changes to the package's scripts and maintaining those changes during updates.

#!/bin/sh

export CISCO_SPLIT_DNS=domain1.com,domain2.com

. /lib/netifd/vpnc-script

immens avatar Oct 31 '24 13:10 immens

Thank you.

nmav avatar Oct 31 '24 13:10 nmav