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:
parent
1ba4362910
commit
d3635faeed
|
@ -1193,6 +1193,9 @@ init(int argc, char * * argv, struct runtime_vars * v)
|
|||
case UPNPNATCHAIN:
|
||||
miniupnpd_nat_chain = ary_options[i].value;
|
||||
break;
|
||||
case UPNPNATPOSTCHAIN:
|
||||
miniupnpd_nat_postrouting_chain = ary_options[i].value;
|
||||
break;
|
||||
#endif /* USE_NETFILTER */
|
||||
case UPNPNOTIFY_INTERVAL:
|
||||
v->notify_interval = atoi(ary_options[i].value);
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
# default is MINIUPNPD for both
|
||||
#upnp_forward_chain=forwardUPnP
|
||||
#upnp_nat_chain=UPnP
|
||||
#upnp_nat_postrouting_chain=UPnP-Postrouting
|
||||
|
||||
# Lease file location
|
||||
#lease_file=/var/log/upnp.leases
|
||||
|
|
|
@ -61,6 +61,7 @@ static const struct {
|
|||
#ifdef USE_NETFILTER
|
||||
{ UPNPFORWARDCHAIN, "upnp_forward_chain"},
|
||||
{ UPNPNATCHAIN, "upnp_nat_chain"},
|
||||
{ UPNPNATPOSTCHAIN, "upnp_nat_postrouting_chain"},
|
||||
#endif
|
||||
#ifdef ENABLE_NATPMP
|
||||
{ UPNPENABLENATPMP, "enable_natpmp"},
|
||||
|
|
|
@ -51,6 +51,7 @@ enum upnpconfigoptions {
|
|||
#ifdef USE_NETFILTER
|
||||
UPNPFORWARDCHAIN,
|
||||
UPNPNATCHAIN,
|
||||
UPNPNATPOSTCHAIN,
|
||||
#endif
|
||||
#ifdef USE_PF
|
||||
UPNPANCHOR, /* anchor */
|
||||
|
|
Loading…
Reference in New Issue