http://wiki.dd-wrt.com/wiki/index.php?title=WLAN_separate_from_LAN%2C_with_independent_dhcp%2C_etc&action=history&feed=atom WLAN separate from LAN, with independent dhcp, etc - Revision history 2024-03-29T00:51:42Z Revision history for this page on the wiki MediaWiki 1.10.1 http://wiki.dd-wrt.com/wiki/index.php?title=WLAN_separate_from_LAN%2C_with_independent_dhcp%2C_etc&diff=55653&oldid=prev Tag: Remove this deprecated page from category listings 2020-06-02T04:11:17Z <p>Remove this deprecated page from category listings</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 04:11, 2 June 2020</td> </tr> <tr><td colspan="2" align="left"><strong>Line 230:</strong></td> <td colspan="2" align="left"><strong>Line 230:</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;">== References ==</td><td> </td><td style="background: #eee; font-size: smaller;">== References ==</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">[[Separate LAN and WLAN<del style="color: red; font-weight: bold; text-decoration: none;">]] </del></td><td>+</td><td style="background: #cfc; font-size: smaller;">[[Separate LAN and WLAN]]</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">&#160;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;">[[Category:Interfaces]]</del></td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;">[[Category:Wlan]]</del></td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;">[[Category:Lan]]</del></td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;">[[Category:Advanced tutorials</del>]]</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> </table> Tag http://wiki.dd-wrt.com/wiki/index.php?title=WLAN_separate_from_LAN%2C_with_independent_dhcp%2C_etc&diff=40260&oldid=prev Phuzi0n: point to newer guides 2011-04-04T00:49:58Z <p>point to newer guides</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 00:49, 4 April 2011</td> </tr> <tr><td colspan="2" align="left"><strong>Line 1:</strong></td> <td colspan="2" align="left"><strong>Line 1:</strong></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">'''NOTE: This is an old unmaintained and duplicate guide. You should use one of the following currently maintained guides instead.'''</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;">For a GUI based method see: [[Separate LAN and WLAN]].</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;">If you're separating virtual interfaces then use the instructions from the [[Multiple_WLANs | Multiple WLAN Guide]].</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;">==Introduction==</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;">It took me quite a while to make all this work, so i thought i'd share all the hoops i had to jump through to get here with the community.</td><td> </td><td style="background: #eee; font-size: smaller;">It took me quite a while to make all this work, so i thought i'd share all the hoops i had to jump through to get here with the community.</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> Phuzi0n http://wiki.dd-wrt.com/wiki/index.php?title=WLAN_separate_from_LAN%2C_with_independent_dhcp%2C_etc&diff=39714&oldid=prev Tech128: /* Step 3: Turn off stock DHCPMasq */ 2011-02-24T04:17:40Z <p><span class="autocomment">Step 3: Turn off stock DHCPMasq</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 04:17, 24 February 2011</td> </tr> <tr><td colspan="2" align="left"><strong>Line 153:</strong></td> <td colspan="2" align="left"><strong>Line 153:</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;">Well to get this to work properly on V24 SP2 I had to modify the firewall and startup somewhat</td><td> </td><td style="background: #eee; font-size: smaller;">Well to get this to work properly on V24 SP2 I had to modify the firewall and startup somewhat</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;">Also on atheros builds keep in mind there are no vlans (that I saw anyway) so you want to set the wireless interface to unbridged and enable nat instead. And you will need to modify the startup and firewall since the interfaces will be different. I believe it was ath0 for the wireless and eth0 for the wan instead of vlan1</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;">First, the firewall:</td><td> </td><td style="background: #eee; font-size: smaller;">First, the firewall:</td></tr> <tr><td colspan="2" align="left"><strong>Line 185:</strong></td> <td colspan="2" align="left"><strong>Line 187:</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;">&lt;pre&gt;</td><td> </td><td style="background: #eee; font-size: smaller;">&lt;pre&gt;</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">## configure wired interface</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">ifconfig br0 up inet 192.168.7.1 netmask 255.255.255.0</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">## configure wireless interface</td><td> </td><td style="background: #eee; font-size: smaller;">## configure wireless interface</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">ifconfig eth1 up inet 192.168.8.1 netmask 255.255.255.0</td><td> </td><td style="background: #eee; font-size: smaller;">ifconfig eth1 up inet 192.168.8.1 netmask 255.255.255.0</td></tr> </table> Tech128 http://wiki.dd-wrt.com/wiki/index.php?title=WLAN_separate_from_LAN%2C_with_independent_dhcp%2C_etc&diff=39701&oldid=prev Tech128: /* Step 3: Turn off stock DHCPMasq */ 2011-02-23T04:49:32Z <p><span class="autocomment">Step 3: Turn off stock DHCPMasq</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 04:49, 23 February 2011</td> </tr> <tr><td colspan="2" align="left"><strong>Line 149:</strong></td> <td colspan="2" align="left"><strong>Line 149:</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;">I also found that step three was not actually necessary. Since during startup dnsmasq is being restarted anyway, forcing it not to start up shouldn't really matter.</td><td> </td><td style="background: #eee; font-size: smaller;">I also found that step three was not actually necessary. Since during startup dnsmasq is being restarted anyway, forcing it not to start up shouldn't really matter.</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;">Comment by tech128:</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;">Well to get this to work properly on V24 SP2 I had to modify the firewall and startup somewhat</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;">First, the 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;pre&gt;</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">## wan: vlan1</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">## lan: br0</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">## wifi: eth1</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">## permit incoming connections from WLAN</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">iptables -I INPUT 2 -i eth1 -m state --state NEW -j logaccept</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">## fixup forwarding table</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">## the lan2wan target didn't work for me, replace it with straight accept</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">iptables -R FORWARD 5 -i br0 -o vlan1 -j ACCEPT</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">## permit WLAN -&gt; WAN</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">iptables -I FORWARD 7 -i eth1 -o vlan1 -j ACCEPT</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">## disallow WLAN -&gt; LAN</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">iptables -I FORWARD 7 -i eth1 -o br0 -m state --state NEW -j DROP</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">## disallow LAN -&gt; WLAN</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">iptables -I FORWARD -i br0 -o eth1 -m state --state NEW -j DROP</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">## disallow WLAN -&gt; WAN subnet</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">iptables -I FORWARD -i eth1 -d `nvram get wan_ipaddr`/`nvram get wan_netmask` -m state --state NEW -j DROP</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">## disallow WLAN -&gt; direct router access</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">iptables -I INPUT -i eth1 -m state --state NEW -j DROP</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">## Allow WLAN -&gt; DHCP on the router</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">iptables -I INPUT -i eth1 -p udp --dport 67 -j ACCEPT</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">## Allow WLAN -&gt; DNS on the router</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">iptables -I INPUT -i eth1 -p udp --dport 53 -j ACCEPT</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">iptables -I INPUT -i eth1 -p tcp --dport 53 -j ACCEPT</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">&lt;/pre&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;">Next, the 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;">&lt;pre&gt;</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">## configure wireless interface</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">ifconfig eth1 up inet 192.168.8.1 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 colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">## setup dnsmasq</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">cat &lt;&lt; EOF &gt; /tmp/new.dnsmasq.conf</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">interface=br0</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">interface=eth1</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">#resolv-file=/tmp/resolv.conf</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"># RY - incorrect resolv file in 2.3</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">resolv-file=/tmp/resolv.dnsmasq</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">all-servers</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;">dhcp-script=/etc/lease_update.sh</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">dhcp-lease-max=50</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">dhcp-authoritative</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">dhcp-option=br0,3,192.168.7.1</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">dhcp-range=br0,192.168.7.100,192.168.7.249,255.255.255.0,1440m</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">dhcp-option=eth1,3,192.168.8.1</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">dhcp-range=eth1,192.168.8.100,192.168.8.249,255.255.255.0,1440m</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">stop-dns-rebind</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">EOF</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;">## restart dnsmasq</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">killall dnsmasq</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">dnsmasq --conf-file=/tmp/new.dnsmasq.conf </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;">## configure wireless options</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">## I set some extra options here, see the docs for the wl command</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">## this may all be handled by doing 'wlconf eth1 up' instead</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">wlconf eth1 up</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">&lt;/pre&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: #eee; font-size: smaller;">== References ==</td><td> </td><td style="background: #eee; font-size: smaller;">== References ==</td></tr> </table> Tech128 http://wiki.dd-wrt.com/wiki/index.php?title=WLAN_separate_from_LAN%2C_with_independent_dhcp%2C_etc&diff=31720&oldid=prev Glenn: catspec Category:Interfaces Category:Wlan Category:Lan 2010-04-30T15:28:32Z <p>catspec <a href="/wiki/index.php/Category:Interfaces" title="Category:Interfaces">Category:Interfaces</a> <a href="/wiki/index.php/Category:Wlan" title="Category:Wlan">Category:Wlan</a> <a href="/wiki/index.php/Category:Lan" title="Category:Lan">Category:Lan</a></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:28, 30 April 2010</td> </tr> <tr><td colspan="2" align="left"><strong>Line 153:</strong></td> <td colspan="2" align="left"><strong>Line 153:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">[[Separate LAN and WLAN]] </td><td> </td><td style="background: #eee; font-size: smaller;">[[Separate LAN and WLAN]] </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;">English documentation</del>]]</td><td>+</td><td style="background: #cfc; font-size: smaller;">[[Category:<ins style="color: red; font-weight: bold; text-decoration: none;">Interfaces]]</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;">[[Category:Wlan]]</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;">[[Category:Lan</ins>]]</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">[[Category:Advanced tutorials]]</td><td> </td><td style="background: #eee; font-size: smaller;">[[Category:Advanced tutorials]]</td></tr> </table> Glenn http://wiki.dd-wrt.com/wiki/index.php?title=WLAN_separate_from_LAN%2C_with_independent_dhcp%2C_etc&diff=30256&oldid=prev Phuzi0n: add categories 2010-02-16T21:01:02Z <p>add categories</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 21:01, 16 February 2010</td> </tr> <tr><td colspan="2" align="left"><strong>Line 151:</strong></td> <td colspan="2" align="left"><strong>Line 151:</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;">== References ==</td><td> </td><td style="background: #eee; font-size: smaller;">== References ==</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">[[Separate LAN and WLAN]]</td><td>+</td><td style="background: #cfc; font-size: smaller;">[[Separate LAN and WLAN<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;">&#160;</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;">[[Category:English documentation]]</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;">[[Category:Advanced tutorials</ins>]]</td></tr> </table> Phuzi0n http://wiki.dd-wrt.com/wiki/index.php?title=WLAN_separate_from_LAN%2C_with_independent_dhcp%2C_etc&diff=30255&oldid=prev Phuzi0n: add reference 2010-02-16T20:57:17Z <p>add reference</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 20:57, 16 February 2010</td> </tr> <tr><td colspan="2" align="left"><strong>Line 149:</strong></td> <td colspan="2" align="left"><strong>Line 149:</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;">I also found that step three was not actually necessary. Since during startup dnsmasq is being restarted anyway, forcing it not to start up shouldn't really matter.</td><td> </td><td style="background: #eee; font-size: smaller;">I also found that step three was not actually necessary. Since during startup dnsmasq is being restarted anyway, forcing it not to start up shouldn't really matter.</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;">== References ==</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">[[Separate LAN and WLAN]]</td></tr> </table> Phuzi0n http://wiki.dd-wrt.com/wiki/index.php?title=WLAN_separate_from_LAN%2C_with_independent_dhcp%2C_etc&diff=18722&oldid=prev Recalcitrantyouth: Updated with experiences using v2.3 SP2 2008-01-24T04:24:58Z <p>Updated with experiences using v2.3 SP2</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 04:24, 24 January 2008</td> </tr> <tr><td colspan="2" align="left"><strong>Line 101:</strong></td> <td colspan="2" align="left"><strong>Line 101:</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;">I think that's it. enjoy</td><td> </td><td style="background: #eee; font-size: smaller;">I think that's it. enjoy</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;">----</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Comment [[User:recalcitrantyouth|recalcitrantyouth]] 11:01, 23 Jan 2008 (CEST)</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Thanks for this! In order to make this work with v2.3 SP2 on a WRT54GL 1.1, I needed to make a couple of minor changes.</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;pre&gt;</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">## configure wireless interface</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">ifconfig eth1 up inet 192.168.8.1 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 colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">## setup dnsmasq</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">cat &lt;&lt; EOF &gt; /tmp/new.dnsmasq.conf</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">interface=br0</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">interface=eth1</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">#resolv-file=/tmp/resolv.conf</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"># RY - incorrect resolv file in 2.3</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">resolv-file=/tmp/resolv.dnsmasq</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;">leasefile-ro</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">dhcp-script=/etc/lease_update.sh</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">dhcp-lease-max=50</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">dhcp-option=br0,3,192.168.7.1</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">dhcp-range=br0,192.168.7.100,192.168.7.249,255.255.255.0,1440m</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">dhcp-option=eth1,3,192.168.8.1</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">dhcp-range=eth1,192.168.8.100,192.168.8.249,255.255.255.0,1440m</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">EOF</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;">## restart dnsmasq</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">killall dnsmasq</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">dnsmasq --conf-file /tmp/new.dnsmasq.conf </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;">## configure wireless options</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">## I set some extra options here, see the docs for the wl command</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">## this may all be handled by doing 'wlconf eth1 up' instead</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">wlconf eth1 up</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;">#wl -i eth1 down</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">#wl -i eth1 ap 1</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">#wl -i eth1 infra 1</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">#wl -i eth1 txpwr 84</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">#wl -i eth1 up</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;">## depending on your wifi settings, this will change. I just copied the existing command and changed the -l option</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"># RY - if not running authentication, no need for this - the process isn't running</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">#killall nas</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">#nas -P /tmp/nas.wl0lan.pid -H 34954 -l eth1 -i eth1 -A -m 128 -k secretkey -s yourssid -w 2 -g 3600 &amp;</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">&lt;/pre&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;">I also found that step three was not actually necessary. Since during startup dnsmasq is being restarted anyway, forcing it not to start up shouldn't really matter.</td></tr> </table> Recalcitrantyouth http://wiki.dd-wrt.com/wiki/index.php?title=WLAN_separate_from_LAN%2C_with_independent_dhcp%2C_etc&diff=15895&oldid=prev Tmk: /* Step 2: Configure startup scripts */ 2007-05-12T09:28:40Z <p><span class="autocomment">Step 2: Configure startup scripts</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 09:28, 12 May 2007</td> </tr> <tr><td colspan="2" align="left"><strong>Line 65:</strong></td> <td colspan="2" align="left"><strong>Line 65:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">'''Configure the necessary iptables rules:'''</td><td> </td><td style="background: #eee; font-size: smaller;">'''Configure the necessary iptables rules:'''</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;">The default firewalling setup is quite specific, and has no knowledge of the eth1 interface (it assumes it will be part of the LAN), so we need to add several rules to make it aware. These work under v23, you may need to tweak parts if you run a different version. Specifically, the rule #s <del style="color: red; font-weight: bold; text-decoration: none;">to insert before and replace </del>may be different on your system.</td><td>+</td><td style="background: #cfc; font-size: smaller;">The default firewalling setup is quite specific, and has no knowledge of the eth1 interface (it assumes it will be part of the LAN), so we need to add several rules to make it aware. These work under v23, you may need to tweak parts if you run a different version. Specifically, the rule #s may be different on your system.</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;">a) Paste the following into the same text box used above but this time press the 'Save Firewall' button: </td><td> </td><td style="background: #eee; font-size: smaller;">a) Paste the following into the same text box used above but this time press the 'Save Firewall' button: </td></tr> </table> Tmk http://wiki.dd-wrt.com/wiki/index.php?title=WLAN_separate_from_LAN%2C_with_independent_dhcp%2C_etc&diff=12268&oldid=prev Tmk: /* Step 2: Configure startup scripts */ 2007-05-12T09:27:34Z <p><span class="autocomment">Step 2: Configure startup scripts</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 09:27, 12 May 2007</td> </tr> <tr><td colspan="2" align="left"><strong>Line 47:</strong></td> <td colspan="2" align="left"><strong>Line 47:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">## configure wireless options</td><td> </td><td style="background: #eee; font-size: smaller;">## configure wireless options</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">## I set some extra options here, see the docs for the wl command</td><td> </td><td style="background: #eee; font-size: smaller;">## I set some extra options here, see the docs for the wl command</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">## this may all be handled by doing 'wlconf eth1 up' instead</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">wl -i eth1 down</td><td> </td><td style="background: #eee; font-size: smaller;">wl -i eth1 down</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">wl -i eth1 ap 1</td><td> </td><td style="background: #eee; font-size: smaller;">wl -i eth1 ap 1</td></tr> </table> Tmk