Skip to content

Commit

Permalink
MPTCP scripts updated
Browse files Browse the repository at this point in the history
Signed-off-by: Monika-Research <[email protected]>
  • Loading branch information
Monika-Research committed Dec 20, 2024
1 parent 29a5a7f commit 9589b6f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions common/scripts/mesh-11s_nats.sh
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ main () {
# todo this needs to be moved
if [ "$mptcp" == "enable" ]; then
echo "MPTCP enabled"
[ ! -f /var/run/mptcp.conf ] && echo "INTERFACE_br=br-lan" > /var/run/mptcp.conf
if [ $(grep -ic "INTERFACE_${INDEX}" /var/run/mptcp.conf) -eq 1 ]; then
source /var/run/mptcp.conf
sed -i "/INTERFACE_${INDEX}/d" /var/run/mptcp.conf
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ do
IPv6_prefix="fd1d::"
elif [ "$iface" == "halow1" ]; then
IPv6_prefix="fdbd::"
elif [ "$iface" == "br-lan" ]; then
IPv6_prefix="fdcd::"
fi

echo "_slaac_interfaces: $_slaac_interfaces"
Expand All @@ -41,3 +43,8 @@ done <<< "$iface_list"

ip mptcp limits set subflow $i add_addr_accepted $i
echo "SUBFLOWS=$i" >> /var/run/mptcp.conf


olsrd -ipv6 > /opt/olsrd.log &

mptcpize run ss-server -c /opt/mesh_com/modules/sc-mesh-secure-deployment/src/2_0/features/mptcp/ss-server_config.json > /opt/ss_server.log &
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"server" : ["[::0]", "0.0.0.0"],
"mode":"tcp",
"server_port" : 8388,
"local_address":"::0",
"local_port" : 1080,
"password" : "sai",
"timeout" : 300,
"method" : "aes-256-cfb"
}

0 comments on commit 9589b6f

Please sign in to comment.