Skip to content

Commit

Permalink
Update postup.sh
Browse files Browse the repository at this point in the history
Added drop rules to drop the traffic between the peers, this is required for enhanced security.
  • Loading branch information
mzs114 authored Sep 4, 2024
1 parent e218532 commit 32a6678
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/iptable-rules/postup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@ iptables -A $CHAIN_NAME -o lo -j ACCEPT
# Drop everything else coming through the Wireguard interface
iptables -A $CHAIN_NAME -i $WIREGUARD_INTERFACE -j DROP

# Drop traffic between the peers
iptables -I FORWARD -i $WIREGUARD_INTERFACE -o $WIREGUARD_INTERFACE -j DROP

# Return to FORWARD chain
iptables -A $CHAIN_NAME -j RETURN
iptables -A $CHAIN_NAME -j RETURN

0 comments on commit 32a6678

Please sign in to comment.