Skip to content

Commit

Permalink
Assign an IPv4 address from the link-local subnet
Browse files Browse the repository at this point in the history
While the 192.0.2.0/24 TEST-NET-1 block would avoid collisions,
the 169.254.0.0/16 subnet described in RFC3927 has been specified
precisely for such cases.

We should probably select "an address using a pseudo-random number
generator with a uniform distribution in the range from 169.254.1.0
to 169.254.254.255 inclusive" as described in RFC3927. However,
that would of course require more code and I'm lazy, but more
importantly it had been reported that FortiClient uses 169.254.2.1.
I'd rather use the same address as FortiClient.
  • Loading branch information
DimitriPapadopoulos committed Jan 21, 2021
1 parent 1156d2b commit 45e12d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tunnel.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ static int pppd_run(struct tunnel *tunnel)
static const char *const v[] = {
ppp_path,
"230400", // speed
":192.0.2.1", // <local_IP_address>:<remote_IP_address>
":169.254.2.1", // <local_IP_address>:<remote_IP_address>
"noipdefault",
"noaccomp",
"noauth",
Expand Down

0 comments on commit 45e12d9

Please sign in to comment.