From: fendo Date: Sun, 9 Dec 2012 17:50:07 +0000 (+0100) Subject: Fix: loopback protection X-Git-Tag: 2.2.1-2fdn3.1~6 X-Git-Url: http://git.sameswireless.fr/l2tpns.git/commitdiff_plain/0834bba08ed4f1e507320306dc682d7e62371af5 Fix: loopback protection --- diff --git a/l2tplac.c b/l2tplac.c index 4c71d6c..f073ecc 100644 --- a/l2tplac.c +++ b/l2tplac.c @@ -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"); else if (strlen(ptunnelrlns[idtag].tunnel_assignment_id) <= 0) 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 { for (idrlns = 1; idrlns < MAXRLNSTUNNEL; ++idrlns)