Skip to content

Commit

Permalink
returned 'address' to awg server config and set it to 10.8.1.1/24
Browse files Browse the repository at this point in the history
  • Loading branch information
Nethius committed Oct 2, 2023
1 parent 39c2124 commit 304f29b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ echo $WIREGUARD_PSK > /opt/amnezia/amneziawireguard/wireguard_psk.key
cat > /opt/amnezia/amneziawireguard/wg0.conf <<EOF
[Interface]
PrivateKey = $WIREGUARD_SERVER_PRIVATE_KEY
# Address = $WIREGUARD_SUBNET_IP/$WIREGUARD_SUBNET_CIDR
Address = 10.8.1.1/24
ListenPort = $AMNEZIAWIREGUARD_SERVER_PORT
Jc = $JUNK_PACKET_COUNT
Jmin = $JUNK_PACKET_MIN_SIZE
Expand Down
3 changes: 3 additions & 0 deletions client/server_scripts/amnezia_wireguard/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
echo "Container startup"
#ifconfig eth0:0 $SERVER_IP_ADDRESS netmask 255.255.255.255 up

mkdir -p /dev/net
mknod /dev/net/tun c 10 200

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

Expand Down

0 comments on commit 304f29b

Please sign in to comment.