This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
set -o pipefail | |
WG_ROUTING_TABLE="$1" | |
WG_INTERFACE="$2" | |
# Removing IPV4 routing table. | |
ip -4 route flush dev "$WG_INTERFACE" table "$WG_ROUTING_TABLE" || : |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
WG_INTERFACE="$1" | |
WG_RUN_DIR_PATH="/tmp/run/wireguard" | |
CONTAINER_ID_PATH="${WG_RUN_DIR_PATH}/wstunnel-${WG_INTERFACE}.container-id" | |
CONTAINER_ID=$(cat "$CONTAINER_ID_PATH" || :) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
WG_INTERFACE="$1" | |
IPV4_NETWORK="$2" | |
IPV6_NETWORK="$3" | |
NET_INTERFACE="$4" | |
iptables -D FORWARD -i "$WG_INTERFACE" -j ACCEPT | |
ip6tables -D FORWARD -i "$WG_INTERFACE" -j ACCEPT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import eslint from '@eslint/js'; | |
import simpleImportSort from 'eslint-plugin-simple-import-sort'; | |
import globals from 'globals'; | |
import lodash from 'lodash'; | |
import typescriptEslint from 'typescript-eslint'; | |
// Merged typescript eslint config. | |
export const eslintConfigTypescript = typescriptEslint.configs.all.reduce( | |
(result, config) => lodash.merge(result, config), | |
{}, |