|
DD-WRT - Multiple SSIDs - 1 for FON - 1 for Private Network |
|
|
|
|
Written by Kevan
|
|
Page 3 of 3
9) Again, select the following text and paste it into the Commands window. Scroll to the bottom and select Save Firewall. (You can change the DOWNLINK and UPLINK settings in the text below to whatever bandwidth you want to be available to your FON users. Setting is in kb/s)
------------------- Copy starting below this line. ------------------- #!/bin/sh
##
iptables -I INPUT -i tun0 -j ACCEPT iptables -I FORWARD -i tun0 -o vlan1 -m state --state NEW -j ACCEPT iptables -I FORWARD -i tun0 -o ppp0 -m state --state NEW -j ACCEPT iptables -I FORWARD -i br0 -o tun0 -j logdrop
iptables -A FORWARD -i tun0 -j DROP; iptables -t nat -I PREROUTING -i tun0 -d `nvram get lan_ipaddr`/`nvram get lan_netmask` -j DROP
DEV="tun0" DOWNLINK="1024" UPLINK="256" tc qdisc del dev $DEV root tc qdisc del dev $DEV ingress # limit download tc qdisc add dev $DEV root handle 1: htb tc class add dev $DEV parent 1: classid 1:1 htb rate ${DOWNLINK}kbit burst 6k tc filter add dev $DEV parent 1: protocol ip prio 16 u32 match ip dst 192.168.182.1/24 flowid 1:1 # limit upload tc qdisc add dev $DEV ingress handle ffff: tc filter add dev $DEV parent ffff: protocol ip u32 match ip src 0.0.0.0/0 police rate ${UPLINK}kbit burst 10k drop flowid :1
------------- Stop here when selecting text to copy -----------
10) Click the Management sub-tab and scroll to the bottom and click the Reboot Router button.
11) Now connect to your router via the FON ssid and login to fon.com. Login or create your fon.com account. Once your router is registered your setup should be complete.
Good luck! (Don't forget to go to the Management sub-tab and change your routers password.)
*** Just a note... the drivers on some wireless cards handle the multi SSIDs differently. On some cards when connected to 1 of the SSIDs won't display the other SSID. Just disconnect from the currently connected SSID and you should be able to see both SSIDs. ***
Only registered users can write comments. Please login or register. Powered by AkoComment!
<< Start < Prev 1 2 3 Next > End >> |