Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| docs:guide-user:network:wan:access.modem.through.nat [2023/10/14 05:36] – use service invocation vgaetera | docs:guide-user:network:wan:access.modem.through.nat [2024/10/30 00:44] – [Web interface instructions] Easier to assign the "modem" interface to the "wan" zone. lastedit | ||
|---|---|---|---|
| Line 22: | Line 22: | ||
| * IPv4 address: '' | * IPv4 address: '' | ||
| * IPv4 netmask: '' | * IPv4 netmask: '' | ||
| - | - Navigate to **LuCI -> Network -> Firewall**. | + | - On the **Firewall Settings** tab assign |
| - | - Under **General | + | * Create / Assign firewall-zone: |
| - | - Edit the '' | + | |
| - | * Open '' | + | |
| - | * Add '' | + | |
| - Click **Save**, then **Save & Apply**. | - Click **Save**, then **Save & Apply**. | ||
| Line 43: | Line 40: | ||
| <code bash> | <code bash> | ||
| - | # Configure firewall | ||
| - | uci add_list firewall.@zone[1].network=" | ||
| - | uci commit firewall | ||
| - | service firewall restart | ||
| - | |||
| # Configure network | # Configure network | ||
| - | uci -q delete | + | uci -q del network.modem |
| uci set network.modem=" | uci set network.modem=" | ||
| - | uci set network.modem.device=" | ||
| uci set network.modem.proto=" | uci set network.modem.proto=" | ||
| + | uci set network.modem.device=" | ||
| uci set network.modem.ipaddr=" | uci set network.modem.ipaddr=" | ||
| uci set network.modem.netmask=" | uci set network.modem.netmask=" | ||
| uci commit network | uci commit network | ||
| service network restart | service network restart | ||
| + | |||
| + | # Configure firewall | ||
| + | uci del_list firewall.@zone[1].network=" | ||
| + | uci add_list firewall.@zone[1].network=" | ||
| + | uci commit firewall | ||
| + | service firewall restart | ||
| </ | </ | ||