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 [2021/08/16 07:13] – [Accessing the modem through the router] config-network-device notice someothertime | 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 1: | Line 1: | ||
| ====== Accessing the modem through the router ====== | ====== Accessing the modem through the router ====== | ||
| - | |||
| - | {{section> | ||
| {{section> | {{section> | ||
| Line 8: | Line 6: | ||
| * It helps to reach the administrative interface of a DSL/DOCSIS modem operating in the bridge mode. | * It helps to reach the administrative interface of a DSL/DOCSIS modem operating in the bridge mode. | ||
| * The prerequisite is to know the modem' | * The prerequisite is to know the modem' | ||
| - | |||
| - | {{section> | ||
| ===== Goals ===== | ===== Goals ===== | ||
| Line 26: | Line 22: | ||
| * IPv4 address: '' | * IPv4 address: '' | ||
| * IPv4 netmask: '' | * IPv4 netmask: '' | ||
| - | - On the **Firewall Settings** tab specify: | + | - On the **Firewall Settings** tab assign the '' |
| * Create / Assign firewall-zone: | * Create / Assign firewall-zone: | ||
| - Click **Save**, then **Save & Apply**. | - Click **Save**, then **Save & Apply**. | ||
| At this point the modem should be reachable from any host in the LAN. | At this point the modem should be reachable from any host in the LAN. | ||
| + | |||
| + | |||
| + | === NOTE === | ||
| + | |||
| + | If you are using the BanIP package, make sure to add the IP to the allowlist. Ex. '' | ||
| + | |||
| ===== Command-line instructions ===== | ===== Command-line instructions ===== | ||
| Line 38: | Line 40: | ||
| <code bash> | <code bash> | ||
| - | # Configure firewall | ||
| - | uci add_list firewall.@zone[1].network=" | ||
| - | uci commit firewall | ||
| - | / | ||
| - | |||
| # Configure network | # Configure network | ||
| - | uci -q delete | + | uci -q del network.modem |
| uci set network.modem=" | uci set network.modem=" | ||
| - | uci set network.modem.ifname=" | ||
| 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 | ||
| - | /etc/init.d/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 | ||
| </ | </ | ||
| Line 60: | Line 63: | ||
| uci set network.lan.ipaddr=" | uci set network.lan.ipaddr=" | ||
| uci commit network | uci commit network | ||
| - | / | + | service |
| </ | </ | ||
| Line 73: | Line 76: | ||
| # Configure network | # Configure network | ||
| - | uci set network.modem.ifname=" | + | uci set network.modem.device=" |
| uci commit network | uci commit network | ||
| - | / | + | service |
| </ | </ | ||