mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-09-11 19:05:11 +08:00
34 lines
1.3 KiB
Plaintext
34 lines
1.3 KiB
Plaintext
# UPnP IGD & PCP/NAT-PMP Service Settings (v2.0)
|
|
|
|
config upnpd 'settings'
|
|
option enabled '1'
|
|
option allow_cgnat 'report-private-ipv4'
|
|
# Can be set to all/upnp-igd/pcp+nat-pmp
|
|
option enable_protocols 'all'
|
|
# Enable networks, multiple can be specified, separated by a space
|
|
option internal_iface 'lan'
|
|
option access_defaults 'accept-high-ports' # default none
|
|
option check_acl '0' # default 1
|
|
#option ipv6_disable '0'
|
|
#option allow_third_party_mapping '0'
|
|
# Extra logging by setting to info or debug (previously 1)
|
|
option log_output 'default'
|
|
option upnp_igd_compat 'igdv1'
|
|
|
|
# Access Control List
|
|
# Empty ACL rejected alone, IPv6 accepted unless disabled, action: accept/reject
|
|
|
|
config acl_entry
|
|
option comment 'High ports'
|
|
option int_addr '0.0.0.0/0'
|
|
option int_port '1024-65535'
|
|
option ext_port '1024-65535'
|
|
option action 'disabled'
|
|
|
|
config acl_entry
|
|
option comment 'Low/system ports'
|
|
option int_addr '0.0.0.0/0'
|
|
option int_port '1-1023'
|
|
option ext_port '1-1023'
|
|
option action 'disabled'
|