Advertisement
Guest User

Untitled

a guest
Dec 13th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.11 KB | None | 0 0
  1. #!/bin/sh
  2. case "$PLUTO_VERB" in
  3.         up-client-v6)
  4.                 ifconfig "ipsec_$PLUTO_CONNECTION" inet6 tunnel "$PLUTO_ME" "$PLUTO_PEER" reqid "$PLUTO_REQID"
  5.                 ;;
  6.         up-host-v6)
  7.                 ifconfig "ipsec_$PLUTO_CONNECTION" inet6 tunnel "$PLUTO_ME" "$PLUTO_PEER" reqid "$PLUTO_REQID"
  8.                 ;;
  9.         down-client-v6)
  10.                 ifconfig "ipsec_$PLUTO_CONNECTION" -tunnel
  11.                 ;;
  12.         down-host-v6)
  13.                 ifconfig "ipsec_$PLUTO_CONNECTION" -tunnel
  14.                 ;;
  15.         up-client)
  16.                 case "$PLUTO_ME" in
  17.                         *:*)
  18.                                 ifconfig "ipsec_$PLUTO_CONNECTION" inet6 tunnel "$PLUTO_ME" "$PLUTO_PEER" reqid "$PLUTO_REQID"
  19.                                 ;;
  20.                         *)
  21.                                 ifconfig "ipsec_$PLUTO_CONNECTION" tunnel "$PLUTO_ME" "$PLUTO_PEER" reqid "$PLUTO_REQID"
  22.                                 ;;
  23.                 esac
  24.                 ;;
  25.  
  26.         down-client)
  27.                 ifconfig "ipsec_$PLUTO_CONNECTION" -tunnel
  28.                 ;;
  29. esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement