From b4709429ed88563982412a5a027b92143c37e268 Mon Sep 17 00:00:00 2001 From: Nakidai Date: Thu, 31 Jul 2025 17:12:27 +0300 Subject: Add files --- fvpnd_launch.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 fvpnd_launch.sh (limited to 'fvpnd_launch.sh') diff --git a/fvpnd_launch.sh b/fvpnd_launch.sh new file mode 100755 index 0000000..042121b --- /dev/null +++ b/fvpnd_launch.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +TAP=fvpn0 +INTERNAL_IP=10.43.43.1/24 +IP=0.0.0.0 +PORT=12345 +MAX_PKT_SZ=1440 +MTU=$(( $MAX_PKT_SZ - 46 )) + +ip tuntap add $TAP mode tap +ip addr add $INTERNAL_IP dev $TAP +ip link set $TAP mtu $MTU +ip link set $TAP up + +./fatvpnd $TAP $IP $PORT + + -- cgit 1.4.1