trickster-vpn/exclude_mode_cfg_gen/bootstrap_external.sh

12 lines
378 B
Bash
Raw Normal View History

2022-08-22 02:16:33 +03:00
#!/bin/bash
apt update
apt install wireguard iptables ipcalc qrencode curl jq -y
echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf
echo "net.ipv4.conf.all.forwarding=1" >> /etc/sysctl.conf
sysctl -p /etc/sysctl.conf
cp ./sample_wg_cfg/wg-external.conf /etc/wireguard/wg-external.conf
wg-quick up wg-external
systemctl enable wg-quick@wg-external.service
systemctl daemon-reload