returned 'address' to awg server config and set it to 10.8.1.1/24
This commit is contained in:
parent
39c2124a26
commit
304f29bfac
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue