Files
firezone/scripts/post-down-wg.sh
2022-07-25 11:47:58 -07:00

10 lines
278 B
Bash
Executable File

#!/bin/bash
FIREZONE_DEV_V4='172.28.0.0/16'
FIREZONE_DEV_V6='2001:3990:3990::/64'
TABLE=333444
sudo ip -4 rule del from $FIREZONE_DEV_V4 table $TABLE
sudo ip -4 route flush table $TABLE
sudo ip -6 rule del from $FIREZONE_DEV_V6 table $TABLE
sudo ip -6 route flush table $TABLE