Developing lightweight computation at the DSG edge

Commit eef846ad authored by p4u's avatar p4u
Browse files

Enable masquerade by default in wan devices

parent 1149da71
......@@ -779,6 +779,7 @@ qmp_configure_network() {
qmp_uci_set_raw network.$viface.proto="dhcp"
metric="$(qmp_uci_get network.wan_metric)"
qmp_uci_set_raw network.$viface.metric="${metric:-2048}"
qmp_gw_masq_wan 1
qmp_set_mss_clamping $i
done
......
......@@ -143,6 +143,8 @@ qmp_gw_masq_wan() {
fi
qmp_gw_add_interfaces_to_firewall_zone $cfg
uci commit firewall
}
qmp_gw_apply() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment