Skip to content

Commit 9899275

Browse files
committed
finished openwrt tut
1 parent b5ba2db commit 9899275

6 files changed

Lines changed: 33 additions & 0 deletions

File tree

‎_posts/2023-05-11-wireguard-openwrt-server-tut.md‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,27 @@ Option 2: You can generate all the keys on the server, show a QR code and then t
8181
## Option 1
8282
This option will require sending keys between both the server and the peer (in this case Android device)
8383

84+
## Manual Config
85+
![Peer 1 OpenWRT](/assets/images/Peer1.PNG)
86+
1. Set Peer Name
87+
2. Copy `Public Key` from `Public Key` generated in the phone app.
88+
3. Click `Generate preshared key` and send this to the Peer.
89+
4. Allowed IPs: Set this to a unique value within the server subnet range.
90+
5. Save
91+
92+
## Option 1 Android
93+
![Option 1 Android](/assets/images/option1Droid.png)
94+
1. Name: OpenWRT
95+
2. Click the refresh Icon to generate the `public/private` key pair. Send the `public key` to the server so it can be inserted into the Peer config. See Slide 27 #2
96+
3. Addresses: Set this to the same value populated in the peer config on the server. See Slide 27 #4
97+
4. Click Add Peer
98+
![Option 1 Android Peer](/assets/images/option1DroidPeer.png)
99+
100+
5. Copy the `server public key` and paste it here
101+
6. Pre-Shared Key. Copy the generated pre-shared key from the peer config on the server. Slide 27 #3
102+
7. Endpoint: `public IP` of server and the port specified by the server: 51820 is the default.
103+
8. Allowed IPs: `0.0.0.0/0, ::/0` → All IP’s
104+
84105
## Option 2
85106

86107
Install qrencode
@@ -107,4 +128,16 @@ Then go to Network -> Interfaces -> wg0 -> edit -> peers -> edit peers
107128
3. After you’ve successfully received the configs you will need to delete the private key from the previous screen.
108129

109130
## Android Config Peer 2
131+
![option2-qr](/assets/images/option2Droid.PNG)
132+
![option2-peer](/assets/images/option2-droidPeer.png)
133+
1. After scanning the QR code you should see a config similar to this.
134+
2. You may have to add the Addresses here. It should be an IP within the subnet range specified in the server.
135+
136+
Ex: 10.0.0.2/32. (It should be unique per peer)
137+
3. All other fields should be pre-populated.
138+
139+
# Verify Connection
110140

141+
1. You may have to restart the wg0 interface in order for a connection to get established.
142+
2. Once you restart the interface click the toggle button on the Android app and see if a handshake has been created.
143+
3. The `rx` and `tx` fields should start to increment

‎assets/images/Peer1.PNG‎

43 KB
Loading

‎assets/images/option1Droid.png‎

143 KB
Loading

‎assets/images/option1DroidPeer.png‎

166 KB
Loading
180 KB
Loading

‎assets/images/option2Droid.png‎

193 KB
Loading

0 commit comments

Comments
 (0)