diff --git a/tests/connect-script b/tests/connect-script index e121f6c2..aa203c4a 100755 --- a/tests/connect-script +++ b/tests/connect-script @@ -4,13 +4,21 @@ case "$REASON" in connect) + test "${OCSERV_DNS}" = "192.168.1.1 192.168.5.1 " && \ + test "${OCSERV_DNS4}" = "192.168.1.1 192.168.5.1 " && \ + test "${OCSERV_ROUTES}" = "192.168.1.0/255.255.255.0 192.168.5.0/255.255.255.0 " && \ + test "${OCSERV_ROUTES4}" = "192.168.1.0/255.255.255.0 192.168.5.0/255.255.255.0 " && \ echo > connect.ok ;; disconnect) if ! test -z "$DEVICE";then #ifconfig $DEVICE #if test "$?" = "0";then - echo > disconnect.ok + test "${OCSERV_DNS}" = "192.168.1.1 192.168.5.1 " && \ + test "${OCSERV_DNS4}" = "192.168.1.1 192.168.5.1 " && \ + test "${OCSERV_ROUTES}" = "192.168.1.0/255.255.255.0 192.168.5.0/255.255.255.0 " && \ + test "${OCSERV_ROUTES4}" = "192.168.1.0/255.255.255.0 192.168.5.0/255.255.255.0 " && \ + echo > disconnect.ok #fi fi ;; diff --git a/tests/test-pass-script.config b/tests/test-pass-script.config index 37aa6471..6857658e 100644 --- a/tests/test-pass-script.config +++ b/tests/test-pass-script.config @@ -147,6 +147,7 @@ ipv4-network = 192.168.1.0 ipv4-netmask = 255.255.255.0 # Use the keywork local to advertize the local P-t-P address as DNS server ipv4-dns = 192.168.1.1 +ipv4-dns = 192.168.5.1 # The NBNS server (if any) #ipv4-nbns = 192.168.2.3 @@ -163,7 +164,7 @@ ping-leases = false # mtu = route = 192.168.1.0/255.255.255.0 -#route = 192.168.5.0/255.255.255.0 +route = 192.168.5.0/255.255.255.0 # # The following options are for (experimental) AnyConnect client