wireguard.lists.zx2c4.com archive mirror
 help / color / mirror / Atom feed
* [Question or Feature Request] Any wg1.conf option to limit peer IP as 1-to-1?
@ 2018-12-17  1:42 KeXianbin(http://diyism.com)
  2018-12-17  7:39 ` Jason A. Donenfeld
  2018-12-17  7:44 ` Tim Weippert
  0 siblings, 2 replies; 12+ messages in thread
From: KeXianbin(http://diyism.com) @ 2018-12-17  1:42 UTC (permalink / raw)
  To: WireGuard mailing list

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
_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2018-12-17  9:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-17  1:42 [Question or Feature Request] Any wg1.conf option to limit peer IP as 1-to-1? KeXianbin(http://diyism.com)
2018-12-17  7:39 ` Jason A. Donenfeld
2018-12-17  7:53   ` KeXianbin(http://diyism.com)
2018-12-17  8:10     ` KeXianbin(http://diyism.com)
2018-12-17  8:49       ` KeXianbin(http://diyism.com)
2018-12-17  8:54         ` Jason A. Donenfeld
2018-12-17  9:02           ` KeXianbin(http://diyism.com)
2018-12-17  8:50       ` Jason A. Donenfeld
2018-12-17  7:44 ` Tim Weippert
2018-12-17  7:50   ` Jason A. Donenfeld
2018-12-17  7:54     ` Tim Weippert
2018-12-17  8:00   ` KeXianbin(http://diyism.com)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).