Skip to content

Commit 7440c2b

Browse files
authored
Add optional parameter to set handle-rst-during-fin-rcv (#6)
* Add optional parameter to set handle-rst-during-fin-rcv
1 parent 53ed456 commit 7440c2b

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

setup.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
POOL6="64:ff9b::/96"
44
LOWEST_IPV6_MTU=1280
5+
HANDLE_RST_DURING_FIN_RCV="false"
56

67
while [ $# -gt 0 ]; do
78
case "$1" in
@@ -11,10 +12,16 @@ while [ $# -gt 0 ]; do
1112
--lowest-ipv6-mtu=*)
1213
LOWEST_IPV6_MTU="${1#*=}"
1314
;;
15+
--handle-rst-during-fin-rcv)
16+
HANDLE_RST_DURING_FIN_RCV="true"
17+
;;
1418
*)
1519
printf "************************************************************\n"
1620
printf "* Error: Invalid argument '${1}'.\n"
17-
printf "* Usage: setup.sh [--pool6=<IPv6>] [--lowest-ipv6-mtu=<mtu>]\n"
21+
printf "* Usage: setup.sh [options...]\n"
22+
printf "* --pool6=<IPv6>\n"
23+
printf "* --lowest-ipv6-mtu=<mtu>\n"
24+
printf "* --handle-rst-during-fin-rcv\n"
1825
printf "************************************************************\n"
1926
exit 1
2027
esac
@@ -23,6 +30,7 @@ done
2330

2431
jool instance add --iptables --pool6 ${POOL6} default
2532
jool global update lowest-ipv6-mtu ${LOWEST_IPV6_MTU}
33+
jool global update handle-rst-during-fin-rcv ${HANDLE_RST_DURING_FIN_RCV}
2634

2735
iptables -t mangle -A PREROUTING -j JOOL
2836
ip6tables -t mangle -A PREROUTING -j JOOL

0 commit comments

Comments
 (0)