Skip to content

Commit

Permalink
Update stun_bt.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Oniicyan authored Aug 16, 2024
1 parent b1d868c commit 722f01c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion stun_bt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -212,4 +212,11 @@ SETDNAT() {
nft insert rule ip STUN DNAT $IIFNAME $L4PROTO dport $LANPORT counter redirect to :$APPPORT comment "$OWNNAME"
)

echo -n nftables OK.
case $DNAT in
1) METHOD='nft dnat'
2) METHOD='nft redirect'
3) METHOD='UPnP dnat'
4) METHOD='UPnP redirect'
esac

echo -n nftables OK. $METHOD to $APPADDR:$APPPORT$([ -n "$IFNAME" ] && echo @$IFNAME)

0 comments on commit 722f01c

Please sign in to comment.