Skip to content
Permalink
Browse files

miniupnpd: process postrouting rules created by the daemon in the nat…

… table.

In theory the default masquerading rule should already take care of things,
but just in case it doesn't, let's stick more closely to what miniupnpd
tries to do.
  • Loading branch information...
RMerl committed May 3, 2017
1 parent 830ceb7 commit c0f73de16b2ba2038c91da2e0f1cf048a1a6a126
Showing with 2 additions and 2 deletions.
  1. +2 −2 release/src/router/rc/firewall.c
@@ -1410,7 +1410,7 @@ void nat_setting(char *wan_if, char *wan_ip, char *wanx_if, char *wanx_ip, char
{
/* call UPNP chain */
fprintf(fp, "-A VSERVER -j VUPNP\n");
// fprintf(fp, "-A POSTROUTING -j PUPNP\n");
fprintf(fp, "-A POSTROUTING -o %s -j PUPNP\n", wan_if);
}

/* Trigger port setting */
@@ -1669,7 +1669,7 @@ void nat_setting2(char *lan_if, char *lan_ip, char *logaccept, char *logdrop) //
{
/* call UPNP chain */
fprintf(fp, "-A VSERVER -j VUPNP\n");
// fprintf(fp, "-A POSTROUTING -j PUPNP\n");
fprintf(fp, "-A POSTROUTING -o %s -j PUPNP\n", wan_if);
}

/* Trigger port setting */

0 comments on commit c0f73de

Please sign in to comment.
You can’t perform that action at this time.