Skip to content

Commit

Permalink
returned the awg setting via wg-quick
Browse files Browse the repository at this point in the history
  • Loading branch information
Nethius committed Oct 1, 2023
1 parent 4ed1533 commit 39c2124
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions client/server_scripts/amnezia_wireguard/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ echo "Container startup"
#ifconfig eth0:0 $SERVER_IP_ADDRESS netmask 255.255.255.255 up

# kill daemons in case of restart
# wg-quick down /opt/amnezia/amneziawireguard/wg0.conf
wg-quick down /opt/amnezia/amneziawireguard/wg0.conf

/usr/bin/amnezia-wg wg0 && /usr/bin/wg setconf wg0 /opt/amnezia/amneziawireguard/wg0.conf && ip address add dev wg0 10.8.1.1/24 && ip link set up dev wg0
# # # start daemons if configured
# # if [ -f /opt/amnezia/amneziawireguard/wg0.conf ]; then (wg-quick up /opt/amnezia/amneziawireguard/wg0.conf); fi
# start daemons if configured
if [ -f /opt/amnezia/amneziawireguard/wg0.conf ]; then (wg-quick up /opt/amnezia/amneziawireguard/wg0.conf); fi

# Allow traffic on the TUN interface.
iptables -A INPUT -i wg0 -j ACCEPT
Expand Down

0 comments on commit 39c2124

Please sign in to comment.