[Question or Feature Request] Any wg1.conf option to limit peer IP as 1-to-1?
KeXianbin(http://diyism.com)
kexianbin at diyism.com
Mon Dec 17 02:42:17 CET 2018
For example, my wg1.conf now:
[Interface]
PrivateKey = uMoD1TRi+tRkEVF/B5VrXQwHMN3xC1eLVXNbLkkkkkk=
Address = 10.1.0.1/32
ListenPort = 21404
MTU=1300
PostUp = ip route add 10.1.0.0/24 dev wg1
PostDown = ip route del 10.1.0.0/24
[Peer]
PublicKey = Zd5jssxd4zj/4d6ZpOtClyD/8V2eGR7jpHM3jpppppp=
EndPoint = 162.243.2.2:21403
AllowedIPs = 10.1.0.3/32
PersistentKeepalive = 60
If I want to limit the peer to a fixed IP 10.1.0.3, any wg1.conf
OPTION to config it?
Currently, the peer can set any IP, for example 10.1.0.4, and can
send packets to my http://10.1.0.1:80 from 10.1.0.4.
Thanks.
Malcolm Ke
More information about the WireGuard
mailing list