Access To Modem Configuration - Revision history http://wiki.dd-wrt.com/wiki/index.php?title=Access_To_Modem_Configuration&action=history Revision history for this page on the wiki en MediaWiki 1.10.1 Fri, 29 Mar 2024 01:38:11 GMT Kernel-panic69: /* Introduction */ http://wiki.dd-wrt.com/wiki/index.php?title=Access_To_Modem_Configuration&diff=55981&oldid=prev <p><span class="autocomment">Introduction</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 02:22, 29 August 2021</td> </tr> <tr><td colspan="2" align="left"><strong>Line 15:</strong></td> <td colspan="2" align="left"><strong>Line 15:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">By default if you type the IP address of the modem you have an &quot;Impossible to contact the server&quot; error.</td><td> </td><td style="background: #eee; font-size: smaller;">By default if you type the IP address of the modem you have an &quot;Impossible to contact the server&quot; error.</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">'''NOTE:''' ''For all methods below, you may need to substitute $(nvram get wan_ifname) for `nvram get wan_ifname)` if `nvram get wan_ifname)` does not work.''</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">=== Primary Method ===</td><td> </td><td style="background: #eee; font-size: smaller;">=== Primary Method ===</td></tr> </table> Sun, 29 Aug 2021 02:22:27 GMT Kernel-panic69 http://wiki.dd-wrt.com/wiki/index.php/Talk:Access_To_Modem_Configuration Kernel-panic69: /* Primary Method */ http://wiki.dd-wrt.com/wiki/index.php?title=Access_To_Modem_Configuration&diff=55980&oldid=prev <p><span class="autocomment">Primary Method</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 22:36, 28 August 2021</td> </tr> <tr><td colspan="2" align="left"><strong>Line 18:</strong></td> <td colspan="2" align="left"><strong>Line 18:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">=== Primary Method ===</td><td> </td><td style="background: #eee; font-size: smaller;">=== Primary Method ===</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">'''Replace the 10.0.0.2 with an IP in the same range as the modem. If your modem is 10.0.0.1, you should use 10.0.0.2. If your modem is 192.168.0.1, use 192.168.0.2'''</td><td> </td><td style="background: #eee; font-size: smaller;">'''Replace the 10.0.0.2 with an IP in the same range as the modem. If your modem is 10.0.0.1, you should use 10.0.0.2. If your modem is 192.168.0.1, use 192.168.0.2'''</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"></td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">&lt;span style=&quot;color: Red&quot;&gt;'''On builds newer than 42755 you may need to change the above code and enter both lines under the firewall settings instead of splitting them:'''&lt;/span&gt;</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"></td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> ifconfig `nvram get wan_ifname`:0 10.0.0.2 netmask 255.255.255.0&lt;br&gt;iptables -t nat -I POSTROUTING -o `nvram get wan_ifname` -j MASQUERADE</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">and click on [Save Firewall]</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"></td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">&lt;span style=&quot;color: Red&quot;&gt;On older builds the below was the original code to use:&lt;/span&gt;</td><td colspan="2">&nbsp;</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">* Go to Administration -&gt; Commands</td><td> </td><td style="background: #eee; font-size: smaller;">* Go to Administration -&gt; Commands</td></tr> <tr><td colspan="2" align="left"><strong>Line 32:</strong></td> <td colspan="2" align="left"><strong>Line 25:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> </td><td> </td><td style="background: #eee; font-size: smaller;"> </td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> iptables -t nat -I POSTROUTING -o `nvram get wan_ifname` -j MASQUERADE</td><td> </td><td style="background: #eee; font-size: smaller;"> iptables -t nat -I POSTROUTING -o `nvram get wan_ifname` -j MASQUERADE</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">and click on [Save Firewall]</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">&lt;span style=&quot;color: Red&quot;&gt;'''On builds newer than 42755 you may need to change the above code and enter both lines under the firewall settings instead of splitting them:'''&lt;/span&gt;</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> ifconfig `nvram get wan_ifname`:0 10.0.0.2 netmask 255.255.255.0&lt;br&gt;iptables -t nat -I POSTROUTING -o `nvram get wan_ifname` -j MASQUERADE</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">and click on [Save Firewall]</td><td> </td><td style="background: #eee; font-size: smaller;">and click on [Save Firewall]</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> </table> Sat, 28 Aug 2021 22:36:11 GMT Kernel-panic69 http://wiki.dd-wrt.com/wiki/index.php/Talk:Access_To_Modem_Configuration MSOENGINEER: /* Primary Method */ http://wiki.dd-wrt.com/wiki/index.php?title=Access_To_Modem_Configuration&diff=55557&oldid=prev <p><span class="autocomment">Primary Method</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 02:49, 17 April 2020</td> </tr> <tr><td colspan="2" align="left"><strong>Line 18:</strong></td> <td colspan="2" align="left"><strong>Line 18:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">=== Primary Method ===</td><td> </td><td style="background: #eee; font-size: smaller;">=== Primary Method ===</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">'''Replace the 10.0.0.2 with an IP in the same range as the modem. If your modem is 10.0.0.1, you should use 10.0.0.2. If your modem is 192.168.0.1, use 192.168.0.2'''</td><td> </td><td style="background: #eee; font-size: smaller;">'''Replace the 10.0.0.2 with an IP in the same range as the modem. If your modem is 10.0.0.1, you should use 10.0.0.2. If your modem is 192.168.0.1, use 192.168.0.2'''</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">&lt;span style=&quot;color: Red&quot;&gt;'''On builds newer than 42755 you may need to change the above code and enter both lines under the firewall settings instead of splitting them:'''&lt;/span&gt;</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> ifconfig `nvram get wan_ifname`:0 10.0.0.2 netmask 255.255.255.0&lt;br&gt;iptables -t nat -I POSTROUTING -o `nvram get wan_ifname` -j MASQUERADE</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">and click on [Save Firewall]</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">&lt;span style=&quot;color: Red&quot;&gt;On older builds the below was the original code to use:&lt;/span&gt;</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">* Go to Administration -&gt; Commands</td><td> </td><td style="background: #eee; font-size: smaller;">* Go to Administration -&gt; Commands</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">* Enter</td><td> </td><td style="background: #eee; font-size: smaller;">* Enter</td></tr> <tr><td colspan="2" align="left"><strong>Line 24:</strong></td> <td colspan="2" align="left"><strong>Line 32:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> </td><td> </td><td style="background: #eee; font-size: smaller;"> </td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> iptables -t nat -I POSTROUTING -o `nvram get wan_ifname` -j MASQUERADE</td><td> </td><td style="background: #eee; font-size: smaller;"> iptables -t nat -I POSTROUTING -o `nvram get wan_ifname` -j MASQUERADE</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">and click on [Save Firewall]</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"></td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"></td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">'''On builds newer than 42755 you may need to change the above code and enter both lines under the firewall settings instead of splitting them:'''</td><td colspan="2">&nbsp;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> ifconfig `nvram get wan_ifname`:0 10.0.0.2 netmask 255.255.255.0&lt;br&gt;iptables -t nat -I POSTROUTING -o `nvram get wan_ifname` -j MASQUERADE</td><td colspan="2">&nbsp;</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">and click on [Save Firewall]</td><td> </td><td style="background: #eee; font-size: smaller;">and click on [Save Firewall]</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> </table> Fri, 17 Apr 2020 02:49:22 GMT MSOENGINEER http://wiki.dd-wrt.com/wiki/index.php/Talk:Access_To_Modem_Configuration MSOENGINEER: /* Primary Method */ http://wiki.dd-wrt.com/wiki/index.php?title=Access_To_Modem_Configuration&diff=55556&oldid=prev <p><span class="autocomment">Primary Method</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 02:46, 17 April 2020</td> </tr> <tr><td colspan="2" align="left"><strong>Line 27:</strong></td> <td colspan="2" align="left"><strong>Line 27:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">'''On builds newer than 42755 <del style="color: red; font-weight: bold; text-decoration: none;">(Smart DNS implemented) </del>you may need to change the above code and enter both lines under the firewall settings instead of splitting them:'''</td><td>+</td><td style="background: #cfc; font-size: smaller;">'''On builds newer than 42755 you may need to change the above code and enter both lines under the firewall settings instead of splitting them:'''</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> ifconfig `nvram get wan_ifname`:0 10.0.0.2 netmask 255.255.255.0&lt;br&gt;iptables -t nat -I POSTROUTING -o `nvram get wan_ifname` -j MASQUERADE</td><td> </td><td style="background: #eee; font-size: smaller;"> ifconfig `nvram get wan_ifname`:0 10.0.0.2 netmask 255.255.255.0&lt;br&gt;iptables -t nat -I POSTROUTING -o `nvram get wan_ifname` -j MASQUERADE</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">and click on [Save Firewall]</td><td> </td><td style="background: #eee; font-size: smaller;">and click on [Save Firewall]</td></tr> </table> Fri, 17 Apr 2020 02:46:02 GMT MSOENGINEER http://wiki.dd-wrt.com/wiki/index.php/Talk:Access_To_Modem_Configuration MSOENGINEER: /* Primary Method */ http://wiki.dd-wrt.com/wiki/index.php?title=Access_To_Modem_Configuration&diff=55527&oldid=prev <p><span class="autocomment">Primary Method</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 16:03, 1 April 2020</td> </tr> <tr><td colspan="2" align="left"><strong>Line 20:</strong></td> <td colspan="2" align="left"><strong>Line 20:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">* Go to Administration -&gt; Commands</td><td> </td><td style="background: #eee; font-size: smaller;">* Go to Administration -&gt; Commands</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">* Enter</td><td> </td><td style="background: #eee; font-size: smaller;">* Enter</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> ifconfig `nvram get wan_ifname`:0 10.0.0.2 netmask 255.255.255.0</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">and click on [Save Startup]</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> iptables -t nat -I POSTROUTING -o `nvram get wan_ifname` -j MASQUERADE</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">and click on [Save Firewall]</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> ifconfig `nvram get wan_ifname`:0 10.0.0.2 netmask 255.255.255.0&lt;br&gt;iptables -t nat -I POSTROUTING -o `nvram get wan_ifname` -j MASQUERADE</td><td colspan="2">&nbsp;</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">and <del style="color: red; font-weight: bold; text-decoration: none;">click on </del>''Save Firewall<del style="color: red; font-weight: bold; text-decoration: none;">''</del></td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">'''On builds newer than 42755 (Smart DNS implemented) you may need to change the above code </ins>and <ins style="color: red; font-weight: bold; text-decoration: none;">enter both lines under the firewall settings instead of splitting them:</ins>''<ins style="color: red; font-weight: bold; text-decoration: none;">'</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"> ifconfig `nvram get wan_ifname`:0 10.0.0.2 netmask 255.255.255.0&lt;br&gt;iptables -t nat -I POSTROUTING -o `nvram get wan_ifname` -j MASQUERADE</ins></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">and click on [</ins>Save Firewall<ins style="color: red; font-weight: bold; text-decoration: none;">]</ins></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">'''Notes:'''</td><td> </td><td style="background: #eee; font-size: smaller;">'''Notes:'''</td></tr> </table> Wed, 01 Apr 2020 16:03:13 GMT MSOENGINEER http://wiki.dd-wrt.com/wiki/index.php/Talk:Access_To_Modem_Configuration MSOENGINEER: /* Success Report */ http://wiki.dd-wrt.com/wiki/index.php?title=Access_To_Modem_Configuration&diff=55526&oldid=prev <p><span class="autocomment">Success Report</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 15:59, 1 April 2020</td> </tr> <tr><td colspan="2" align="left"><strong>Line 43:</strong></td> <td colspan="2" align="left"><strong>Line 43:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">[Save Startup]</td><td> </td><td style="background: #eee; font-size: smaller;">[Save Startup]</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> iptables -t nat -I POSTROUTING -o `nvram get wan_ifname` -j MASQUERADE</td><td> </td><td style="background: #eee; font-size: smaller;"> iptables -t nat -I POSTROUTING -o `nvram get wan_ifname` -j MASQUERADE</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">[Save Firewall]</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">'''On builds newer than 42755 (Smart DNS implemented) you may need to change the above code and enter both lines under the firewall settings instead of splitting them:'''</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">'''Administration &gt; Commands'''</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> ifconfig `nvram get wan_ifname`:0 192.168.1.2 netmask 255.255.255.0&lt;br&gt;iptables -t nat -I POSTROUTING -o `nvram get wan_ifname` -j MASQUERADE</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">[Save Firewall]</td><td> </td><td style="background: #eee; font-size: smaller;">[Save Firewall]</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> </table> Wed, 01 Apr 2020 15:59:37 GMT MSOENGINEER http://wiki.dd-wrt.com/wiki/index.php/Talk:Access_To_Modem_Configuration MSOENGINEER: /* Primary Method */ http://wiki.dd-wrt.com/wiki/index.php?title=Access_To_Modem_Configuration&diff=55525&oldid=prev <p><span class="autocomment">Primary Method</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 15:05, 1 April 2020</td> </tr> <tr><td colspan="2" align="left"><strong>Line 20:</strong></td> <td colspan="2" align="left"><strong>Line 20:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">* Go to Administration -&gt; Commands</td><td> </td><td style="background: #eee; font-size: smaller;">* Go to Administration -&gt; Commands</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">* Enter</td><td> </td><td style="background: #eee; font-size: smaller;">* Enter</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">ifconfig `nvram get wan_ifname`:0 10.0.0.2 netmask 255.255.255.0</td><td colspan="2">&nbsp;</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">iptables -t nat -I POSTROUTING -o `nvram get wan_ifname` -j MASQUERADE</td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"> ifconfig `nvram get wan_ifname`:0 10.0.0.2 netmask 255.255.255.0&lt;br&gt;</ins>iptables -t nat -I POSTROUTING -o `nvram get wan_ifname` -j MASQUERADE</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">and click on ''Save Firewall''</td><td> </td><td style="background: #eee; font-size: smaller;">and click on ''Save Firewall''</td></tr> </table> Wed, 01 Apr 2020 15:05:11 GMT MSOENGINEER http://wiki.dd-wrt.com/wiki/index.php/Talk:Access_To_Modem_Configuration MSOENGINEER: /* Primary Method */ http://wiki.dd-wrt.com/wiki/index.php?title=Access_To_Modem_Configuration&diff=55524&oldid=prev <p><span class="autocomment">Primary Method</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 14:49, 1 April 2020</td> </tr> <tr><td colspan="2" align="left"><strong>Line 21:</strong></td> <td colspan="2" align="left"><strong>Line 21:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">* Enter</td><td> </td><td style="background: #eee; font-size: smaller;">* Enter</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">ifconfig `nvram get wan_ifname`:0 10.0.0.2 netmask 255.255.255.0</td><td> </td><td style="background: #eee; font-size: smaller;">ifconfig `nvram get wan_ifname`:0 10.0.0.2 netmask 255.255.255.0</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">iptables -t nat -I POSTROUTING -o `nvram get wan_ifname` -j MASQUERADE</td><td> </td><td style="background: #eee; font-size: smaller;">iptables -t nat -I POSTROUTING -o `nvram get wan_ifname` -j MASQUERADE</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> </table> Wed, 01 Apr 2020 14:49:32 GMT MSOENGINEER http://wiki.dd-wrt.com/wiki/index.php/Talk:Access_To_Modem_Configuration MSOENGINEER: /* Primary Method */ http://wiki.dd-wrt.com/wiki/index.php?title=Access_To_Modem_Configuration&diff=55523&oldid=prev <p><span class="autocomment">Primary Method</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 14:45, 1 April 2020</td> </tr> <tr><td colspan="2" align="left"><strong>Line 20:</strong></td> <td colspan="2" align="left"><strong>Line 20:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">* Go to Administration -&gt; Commands</td><td> </td><td style="background: #eee; font-size: smaller;">* Go to Administration -&gt; Commands</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">* Enter</td><td> </td><td style="background: #eee; font-size: smaller;">* Enter</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;"> </del>ifconfig `nvram get wan_ifname`:0 10.0.0.2 netmask 255.255.255.0</td><td>+</td><td style="background: #cfc; font-size: smaller;">ifconfig `nvram get wan_ifname`:0 10.0.0.2 netmask 255.255.255.0</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;">and click on ''Save Startup''</del></td><td>+</td><td style="background: #cfc; font-size: smaller;">iptables -t nat -I POSTROUTING -o `nvram get wan_ifname` -j MASQUERADE</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;">* Enter</del></td><td>+</td><td style="background: #cfc; font-size: smaller;">&#160;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;"> </del>iptables -t nat -I POSTROUTING -o `nvram get wan_ifname` -j MASQUERADE</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">and click on ''Save Firewall''</td><td> </td><td style="background: #eee; font-size: smaller;">and click on ''Save Firewall''</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td colspan="2" align="left"><strong>Line 72:</strong></td> <td colspan="2" align="left"><strong>Line 71:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">&lt;span style=&quot;color: DarkRed&quot;&gt;&lt;strong&gt;Important&lt;/strong&gt;: With WAN access enabled, set &lt;em&gt;strong&lt;/em&gt; </td><td> </td><td style="background: #eee; font-size: smaller;">&lt;span style=&quot;color: DarkRed&quot;&gt;&lt;strong&gt;Important&lt;/strong&gt;: With WAN access enabled, set &lt;em&gt;strong&lt;/em&gt; </td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">passwords in both modem and DD-WRT.&lt;/span&gt;</td><td> </td><td style="background: #eee; font-size: smaller;">passwords in both modem and DD-WRT.&lt;/span&gt;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"></td><td colspan="2">&nbsp;</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">===Alternate Method===</td><td> </td><td style="background: #eee; font-size: smaller;">===Alternate Method===</td></tr> </table> Wed, 01 Apr 2020 14:45:54 GMT MSOENGINEER http://wiki.dd-wrt.com/wiki/index.php/Talk:Access_To_Modem_Configuration Ian5142: Changed to WAN category. http://wiki.dd-wrt.com/wiki/index.php?title=Access_To_Modem_Configuration&diff=53942&oldid=prev <p>Changed to WAN category.</p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 18:02, 18 March 2018</td> </tr> <tr><td colspan="2" align="left"><strong>Line 155:</strong></td> <td colspan="2" align="left"><strong>Line 155:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">* &lt;font style=&quot;color:red&quot;&gt;'''Modem and LAN should be ''different'' subnets as in the examples above. It's ''not'' good network topology to have router WAN port and LAN ports on the same subnet (even when 'it works').'''&lt;/font&gt;</td><td> </td><td style="background: #eee; font-size: smaller;">* &lt;font style=&quot;color:red&quot;&gt;'''Modem and LAN should be ''different'' subnets as in the examples above. It's ''not'' good network topology to have router WAN port and LAN ports on the same subnet (even when 'it works').'''&lt;/font&gt;</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">[[Category:<del style="color: red; font-weight: bold; text-decoration: none;">Modem</del>]]</td><td>+</td><td style="background: #cfc; font-size: smaller;">[[Category:<ins style="color: red; font-weight: bold; text-decoration: none;">Wan</ins>]]</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">[[Category:Basic tutorials]]</td><td> </td><td style="background: #eee; font-size: smaller;">[[Category:Basic tutorials]]</td></tr> </table> Sun, 18 Mar 2018 18:02:09 GMT Ian5142 http://wiki.dd-wrt.com/wiki/index.php/Talk:Access_To_Modem_Configuration