This shows you the differences between two versions of the page.

Link to this comparison view

howto:access_your_modem_s_network_via_the_internet_cube_s_wifi [2018/12/08 22:28] (current)
Line 1: Line 1:
 +====== Access your modem'​s network via the Internet Cube's WiFi ======
 +This page is relevant if your Internet Cube:
 +  * is a WiFi access point (using ynh-hotspot)
 +  * is a bridge to a VPN (via ynh-vpnclient)
 +  * accesses the Internet over a modem-provided Ethernet
 +In this case your modem likely contains a switch, on which you can connect other peripherals like a NAS or a printer. Such objects are on another IP network, and therefore unreachable from the cube's WiFi. To reach them again you may use the following script (as root), after setting your own networks'​ addresses. This should be ran again every time your cube reboots.
 +iptables -I FORWARD -j ACCEPT -s "​$wifi"​ -d "​$local"​
 +iptables -I FORWARD -j ACCEPT -d "​$wifi"​ -s "​$local"​
 +iptables -t nat -I POSTROUTING -s "​$wifi"​ -d "​$local"​ -j MASQUERADE
  • howto/access_your_modem_s_network_via_the_internet_cube_s_wifi.txt
  • Last modified: 2018/12/08 22:28
  • (external edit)