add upnp_nat_postrouting_chain .conf option

fixes #190

MINIUPNPD-PCP-PEER has also been renamed to MINIUPNPD-POSTROUTING
( 1ba4362910 )
This commit is contained in:
Thomas Bernard 2016-01-26 16:59:04 +01:00
parent 1ba4362910
commit d3635faeed
4 changed files with 6 additions and 0 deletions

View File

@ -1193,6 +1193,9 @@ init(int argc, char * * argv, struct runtime_vars * v)
case UPNPNATCHAIN: case UPNPNATCHAIN:
miniupnpd_nat_chain = ary_options[i].value; miniupnpd_nat_chain = ary_options[i].value;
break; break;
case UPNPNATPOSTCHAIN:
miniupnpd_nat_postrouting_chain = ary_options[i].value;
break;
#endif /* USE_NETFILTER */ #endif /* USE_NETFILTER */
case UPNPNOTIFY_INTERVAL: case UPNPNOTIFY_INTERVAL:
v->notify_interval = atoi(ary_options[i].value); v->notify_interval = atoi(ary_options[i].value);

View File

@ -47,6 +47,7 @@
# default is MINIUPNPD for both # default is MINIUPNPD for both
#upnp_forward_chain=forwardUPnP #upnp_forward_chain=forwardUPnP
#upnp_nat_chain=UPnP #upnp_nat_chain=UPnP
#upnp_nat_postrouting_chain=UPnP-Postrouting
# Lease file location # Lease file location
#lease_file=/var/log/upnp.leases #lease_file=/var/log/upnp.leases

View File

@ -61,6 +61,7 @@ static const struct {
#ifdef USE_NETFILTER #ifdef USE_NETFILTER
{ UPNPFORWARDCHAIN, "upnp_forward_chain"}, { UPNPFORWARDCHAIN, "upnp_forward_chain"},
{ UPNPNATCHAIN, "upnp_nat_chain"}, { UPNPNATCHAIN, "upnp_nat_chain"},
{ UPNPNATPOSTCHAIN, "upnp_nat_postrouting_chain"},
#endif #endif
#ifdef ENABLE_NATPMP #ifdef ENABLE_NATPMP
{ UPNPENABLENATPMP, "enable_natpmp"}, { UPNPENABLENATPMP, "enable_natpmp"},

View File

@ -51,6 +51,7 @@ enum upnpconfigoptions {
#ifdef USE_NETFILTER #ifdef USE_NETFILTER
UPNPFORWARDCHAIN, UPNPFORWARDCHAIN,
UPNPNATCHAIN, UPNPNATCHAIN,
UPNPNATPOSTCHAIN,
#endif #endif
#ifdef USE_PF #ifdef USE_PF
UPNPANCHOR, /* anchor */ UPNPANCHOR, /* anchor */