Commit 76729ed6 authored by Vitaly Lipatov's avatar Vitaly Lipatov

router: add vpnc-script-minimal.sh for openconnect

Minimal script that only configures interface IP (IPv4+IPv6) without touching routing tables. Used by openconnect-egw.service. Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 788f8229
#!/bin/bash
# Minimal vpnc-script for openconnect: only configure interface IP
# Does NOT modify routing tables — route-update.sh handles that
case "$reason" in
connect)
ip addr add $INTERNAL_IP4_ADDRESS/32 dev $TUNDEV
[ -n "$INTERNAL_IP6_ADDRESS" ] && ip -6 addr add $INTERNAL_IP6_ADDRESS/128 dev $TUNDEV
ip link set $TUNDEV up
[ -n "$INTERNAL_IP6_ADDRESS" ] && ip -6 route add default dev $TUNDEV
;;
disconnect)
ip link set $TUNDEV down
;;
esac
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment