summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/interfaces/l2tpv3/node.def13
1 files changed, 10 insertions, 3 deletions
diff --git a/templates/interfaces/l2tpv3/node.def b/templates/interfaces/l2tpv3/node.def
index 847146a8..e8e2e01d 100644
--- a/templates/interfaces/l2tpv3/node.def
+++ b/templates/interfaces/l2tpv3/node.def
@@ -35,9 +35,16 @@ create:
sleep 1
done
fi
- ip l2tp add tunnel tunnel_id $VAR(./tunnel-id/@) peer_tunnel_id $VAR(./peer-tunnel-id/@) udp_sport $VAR(./source-port/@) udp_dport $VAR(./destination-port/@) encap $VAR(./encapsulation/@) local $VAR(./local-ip/@) remote $VAR(./remote-ip/@) ||
- echo "ip l2tp add tunnel tunnel_id $VAR(./tunnel-id/@) peer_tunnel_id $VAR(./peer-tunnel-id/@) udp_sport $VAR(./sport/@) udp_dport $VAR(./dport/@) encap $VAR(./encap/@) local $VAR(./local-ip/@) remote $VAR(./remote-ip/@)"
- ip l2tp add session tunnel_id $VAR(./tunnel-id/@) session_id $VAR(./session-id/@) peer_session_id $VAR(./peer-session-id/@) || echo "ip l2tp add session tunnel_id $VAR(./tunnel-id/@) session_id $VAR(./session-id/@) peer_session_id $VAR(./peer-session-id/@)"
+ ip l2tp add tunnel tunnel_id $VAR(./tunnel-id/@) \
+ peer_tunnel_id $VAR(./peer-tunnel-id/@) \
+ udp_sport $VAR(./source-port/@) \
+ udp_dport $VAR(./destination-port/@) \
+ encap $VAR(./encapsulation/@) \
+ local $VAR(./local-ip/@) \
+ remote $VAR(./remote-ip/@)
+ ip l2tp add session session_id $VAR(./session-id/@) \
+ tunnel_id $VAR(./tunnel-id/@) \
+ peer_session_id $VAR(./peer-session-id/@)
ip link set $VAR(@) up
delete: