You are visiting:Home arrow Articles for Geeks arrow Latest arrow DD-WRT - Multiple SSIDs - 1 for FON - 1 for Private Network Thursday, 20 November 2008
Google
Support Geek-Pages.com in making a small donation:
Main Menu
Home
Articles for Geeks
FAQs for Non-Geeks
Links
Kevan's Blog
Contact Us
Forum
Search
Login Form





Lost Password?
No account yet? Register
Submit article to:
DD-WRT - Multiple SSIDs - 1 for FON - 1 for Private Network PDF Print E-mail
Written by Kevan   


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. ***

Comments
Written by free6 on 2006-12-24 11:34:19
The script create 2 DNS entrys in my chilli.conf file in dns2, I had to manually remove the third entry to get it working. Do you have a smart workaround for this or else I have to manually update this for every reboot.
No IP on FON_Something
Written by This email address is being protected from spam bots, you need Javascript enabled to view it on 2007-01-19 08:43:11
Hi, 
 
everything seems to work fine on the linksys, but the clients are not able to resolve an IP from the FON_ Wlan. 
 
Canīt get a single Client working when using the Vwlan as unbriged. Only briged workes fine. 
 
Greetz 
/Robert
Written by free6 on 2007-01-20 11:47:20
I had the same problem in the beginning due to a typo in my firewall. If you ssh into the router and type TOP do you see chilli running?
Diffirent AP scenarios
Written by olmari on 2007-01-21 16:31:27
Does this work in every type of Access Points, or does it need specifically router with WAN access? I mean I have PC as router and then DD-WRT box as WLAN access point, and I'd like to use this in it, is it possible? 
 
I'm asking this already as I do not yet have my AP arrived, but want to gather as much info I can. I am pretty good computer user, but linux stuff is little alien to me, but I am learning... Who knows in the future I can help some newbie asking similar questions :zzz
firewall typo?
Written by This email address is being protected from spam bots, you need Javascript enabled to view it on 2007-05-27 05:40:33
I can't find a typo but I have the same problem with no IP assignment on FON SSID. If I run "top" on ssh, chilli isn't running. How can I find the typo? Or solve the prob? Thx

Only registered users can write comments.
Please login or register.

Powered by AkoComment!