File: vpnc-script

package info (click to toggle)
openconnect 8.02-1%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 8,204 kB
  • sloc: ansic: 27,130; sh: 5,834; xml: 2,791; makefile: 708; java: 459; python: 266
file content (11 lines) | stat: -rwxr-xr-x 379 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh -x

# Fake script just for unit tests. Do not use.
# For a real one, see http://www.infradead.org/openconnect/vpnc-script.html

if [ "$reason" = "connect" ]; then
    ip link set dev "$TUNDEV" up mtu "$INTERNAL_IP4_MTU"
    ip addr add "$INTERNAL_IP4_ADDRESS/32" peer "$INTERNAL_IP4_ADDRESS" dev "$TUNDEV"
    ip -6 addr add $INTERNAL_IP6_NETMASK dev $TUNDEV
fi
exit 0