diff options
| author | Nakidai <nakidai@disroot.org> | 2025-07-31 17:12:27 +0300 |
|---|---|---|
| committer | Nakidai <nakidai@disroot.org> | 2025-07-31 17:12:27 +0300 |
| commit | b4709429ed88563982412a5a027b92143c37e268 (patch) | |
| tree | cd56dfeac7cafcfcb69925b12376d79b8776d3fd /fvpnd_launch.sh | |
| download | fatvpn-6149a454bd2699044d2303f585aea7c67819b351.tar.gz fatvpn-6149a454bd2699044d2303f585aea7c67819b351.zip | |
Add files v1.0.0
Diffstat (limited to 'fvpnd_launch.sh')
| -rwxr-xr-x | fvpnd_launch.sh | 17 |
1 files changed, 17 insertions, 0 deletions
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 + + |