mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
ipsec-tools: racoon uci integration
Signed-Off-By: Vitaly Protsko <villy@sft.ru> --- b/net/ipsec-tools/Makefile | 16 - b/net/ipsec-tools/files/functions.sh | 137 +++++++++ b/net/ipsec-tools/files/p1client-down | 41 ++ b/net/ipsec-tools/files/p1client-up | 41 ++ b/net/ipsec-tools/files/racoon | 109 +++++++ b/net/ipsec-tools/files/racoon.init | 478 +++++++++++++++++++++++++++++++++- b/net/ipsec-tools/files/vpnctl | 19 + net/ipsec-tools/files/racoon.conf | 36 -- 8 files changed, 824 insertions(+), 53 deletions(-)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
|
||||
case X$1 in
|
||||
Xup|X1|Xstart) connMode=vpn-connect ;;
|
||||
Xdown|X0|Xstop) connMode=vpn-disconnect ;;
|
||||
*)
|
||||
echo "Usage: $0: up|1|start || down|0|stop"
|
||||
exit 1 ;;
|
||||
esac
|
||||
|
||||
if [ -s /var/racoon/peers.txt ]; then
|
||||
(while read ipa ; do
|
||||
racoonctl $connMode $ipa
|
||||
done) < /var/racoon/peers.txt
|
||||
fi
|
||||
|
||||
|
||||
# EOF /usr/bin/vpnctl
|
||||
Reference in New Issue
Block a user