Skip to content

Commit c9b2a39

Browse files
Merge pull request #7 from wandera/WND-43445
WND-43445: Drop extrenally initiated TCP
2 parents 7440c2b + 93d5769 commit c9b2a39

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

setup.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
POOL6="64:ff9b::/96"
44
LOWEST_IPV6_MTU=1280
55
HANDLE_RST_DURING_FIN_RCV="false"
6+
DROP_EXTERNALLY_INITIATED_TCP="false"
67

78
while [ $# -gt 0 ]; do
89
case "$1" in
@@ -15,13 +16,17 @@ while [ $# -gt 0 ]; do
1516
--handle-rst-during-fin-rcv)
1617
HANDLE_RST_DURING_FIN_RCV="true"
1718
;;
19+
--drop-externally-initiated-tcp)
20+
DROP_EXTERNALLY_INITIATED_TCP="true"
21+
;;
1822
*)
1923
printf "************************************************************\n"
2024
printf "* Error: Invalid argument '${1}'.\n"
2125
printf "* Usage: setup.sh [options...]\n"
2226
printf "* --pool6=<IPv6>\n"
2327
printf "* --lowest-ipv6-mtu=<mtu>\n"
2428
printf "* --handle-rst-during-fin-rcv\n"
29+
printf "* --drop-externally-initiated-tcp\n"
2530
printf "************************************************************\n"
2631
exit 1
2732
esac
@@ -31,6 +36,7 @@ done
3136
jool instance add --iptables --pool6 ${POOL6} default
3237
jool global update lowest-ipv6-mtu ${LOWEST_IPV6_MTU}
3338
jool global update handle-rst-during-fin-rcv ${HANDLE_RST_DURING_FIN_RCV}
39+
jool global update drop-externally-initiated-tcp ${DROP_EXTERNALLY_INITIATED_TCP}
3440

3541
iptables -t mangle -A PREROUTING -j JOOL
3642
ip6tables -t mangle -A PREROUTING -j JOOL

0 commit comments

Comments
 (0)