Fix: loopback protection
This commit is contained in:
parent
bcc2c7408b
commit
0834bba08e
1 changed files with 2 additions and 0 deletions
|
|
@ -227,6 +227,8 @@ void lac_save_rad_tag_tunnels(sessionidt s)
|
||||||
LOG(1, s, session[s].tunnel, "Error, Bad IP tunnel server endpoint \n");
|
LOG(1, s, session[s].tunnel, "Error, Bad IP tunnel server endpoint \n");
|
||||||
else if (strlen(ptunnelrlns[idtag].tunnel_assignment_id) <= 0)
|
else if (strlen(ptunnelrlns[idtag].tunnel_assignment_id) <= 0)
|
||||||
LOG(1, s, session[s].tunnel, "Error, No tunnel_assignment_id \n");
|
LOG(1, s, session[s].tunnel, "Error, No tunnel_assignment_id \n");
|
||||||
|
else if (ptunnelrlns[idtag].tunnel_server_endpoint == ntohl(config->bind_address))
|
||||||
|
LOG(0, s, session[s].tunnel, "Error, IP Remote LNS == IP local bind address (%s) !!!\n", fmtaddr(config->bind_address, 0));
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
for (idrlns = 1; idrlns < MAXRLNSTUNNEL; ++idrlns)
|
for (idrlns = 1; idrlns < MAXRLNSTUNNEL; ++idrlns)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue