Skip to content

Commit 0b72e1d

Browse files
author
octeep
authored
Update README.md
1 parent 8f05071 commit 0b72e1d

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,39 @@ WGConfig = <path to the wireguard config>
116116
...
117117
```
118118

119+
Having multiple peers is also supported. `AllowedIPs` would need to be specified
120+
such that wireproxy would know which peer to forward to.
121+
```
122+
[Interface]
123+
Address = 10.254.254.40/32
124+
PrivateKey = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=
125+
126+
[Peer]
127+
Endpoint = 192.168.0.204:51820
128+
PublicKey = YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY=
129+
AllowedIPs = 10.254.254.100/32
130+
PersistentKeepalive = 25
131+
132+
[Peer]
133+
PublicKey = ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ=
134+
AllowedIPs = 10.254.254.1/32, fdee:1337:c000:d00d::1/128
135+
Endpoint = 172.16.0.185:44044
136+
PersistentKeepalive = 25
137+
138+
139+
[TCPServerTunnel]
140+
ListenPort = 5000
141+
Target = service-one.servicenet:5000
142+
143+
[TCPServerTunnel]
144+
ListenPort = 5001
145+
Target = service-two.servicenet:5001
146+
147+
[TCPServerTunnel]
148+
ListenPort = 5080
149+
Target = service-three.servicenet:80
150+
```
151+
119152
## Donation
120153
<noscript><a href="https://liberapay.com/octeep/donate"><img alt="Donate using Liberapay" src="https://liberapay.com/assets/widgets/donate.svg"></a></noscript>
121154

0 commit comments

Comments
 (0)