Rt n16 openwrt wifi

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Technology template on how to make openwrt run on the Asus RT-N16 router

moozer/TT_Asus_RT-N16_and_OpenWrt

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

Technology template on how to make openwrt run on the Asus RT-N16 router

This TT provides an easy way of flashing or reflashing the router. It is intended to be the easy solution when the router behaves oddly due to some configuration issue.

  • A pc (or other) running linux You must have root access on this machine. Currently only «su» is supported (as oposed to «sudo»)
  • An Asus RT_N16 + power supply The state of the router is not important (at least I have not suceeded in bricking it yet) If the router runs DD-WRT, the guide will most likely fail.
  • a patch cable
  • internet access
  1. Get this code: git clone https://github.com/moozer/TT_Asus_RT-N16_and_OpenWrt.git
  2. Change the parameters in runme.sh
  3. Run the script: cd TT_Asus_RT-N16_and_OpenWrt followed by ./runme.sh
  4. Follow what the script says
  5. Resetting to defaults: telnet 192.168.1.1 , mtd erase nvram and finally reboot
  • OpenWrt forum discussion: https://forum.openwrt.org/viewtopic.php?id=33560&p=3
  • Domething from DD-wrt: http://www.dd-wrt.com/wiki/index.php/Asus_RT-N16
  • Asus reflashing utility (from CD)
  • Creativity and some help using the serial connection

In the compilation directory, you’ll find recomplitation notes and some scripts, should you want to recompile the kernel yourself.

About

Technology template on how to make openwrt run on the Asus RT-N16 router

Источник

Still Reflection 返照

It took me a while to figure out how to setup 802.11n in OpenWrt on Asus RT-N16 so I figured I’d share the process, hopefully to save somebody’s time.

Background

I’ve used dd-wrt for a long time (on 4 wireless routers over the years). However, my network setup is getting more and more complex. While dd-wrt allows some customization, the inconsistency between GUI and the command-line configuration made it very hard for me to maintain. For example, editing the DHCP static address table from the GUI is a tedious process because it doesn’t sort so it’s very hard to detect duplication. I could edit the configuration file directly but the GUI does not reflect my changes correctly. Saving from the GUI can easily overwrite my manually edited config files.

Читайте также:  Pci express wifi mac

Choosing Alternatives

Therefore, I started to look for an alternative. Besides dd-wrt, Tomato and it’s family, and OpenWrt are the other two high-profile router firmware development efforts. And both lineages provide very customizable environment.

However, there are two things I’m looking for.

1. I am looking for a project that’s still actively maintained, especially after Heart Bleed, Shell Shock, and Poodle. (Note that these vulnerabilities don’t necessarily compromise home routers, but in my environment, I’d rather not take the chance.) While a repository system allows individual package upgrade, I want the base developers to still be around.

2. I’m looking for a project that’s owned by a team rather than individuals. In the WRT history, there have been many brilliant individuals that made crucial advances for everyone. However, it has happened a few times when these individuals moved on, their projects died, too.

Therefore, I ended up choosing OpenWrt.

Installation

It was quite straightforward to switch to OpenWrt from dd-wrt, as instructed in the official guide.

Securing the admin access was obvious. However, it took me a while to realize that I also needed to reboot my Cable Modem for it to reset its DHCP. If you are also doing this, I suggest you open all installation guides in the browser first before you flash your new firmware. I had to use my phone to check the guides before my internet was up.

802.11n

This took me a while because the guide is not very obvious. Anyway, after some trials and errors, broadcom-wl was the only one that worked for me (thanks to Stratos about the dependency nas. I already had that so I didn’t realize that dependency).

  1. # opkg update
  2. # opkg install kmod-brcm-wl wl wlc
  3. # rm /etc/config/wireless
  4. # opkg install nas
  5. # reboot

config wifi-device wl0
option type broadcom
option channel 1
option txantenna 3
option rxantenna 3
option txpower ’20’
option plcphdr ‘auto’
option frameburst 1
option disabled 0
config wifi-iface
option device wl0
option network lan
option mode ap
option ssid YOUR_SSID
option key YOUR_KEY
option wmm 1
option encryption ‘psk2’
option disabled ‘0’

Another strange thing to work around is that after reboot, while a client can connect to the router with 802.11n, the DHCP failed to issue IPs. I had to turn the wifi off and on for it to work properly.

I did not spend time debugging. Instead, as a temporary workaround, I added that to /etc/rc.local, which now looks like this:

# Put your custom commands here that should be executed once # the system init finished. By default this file does nothing. # workaround for Broadcom proprietary driver problem /sbin/wifi down /bin/sleep 1 /sbin/wifi up exit 0 

Update: badineu in the comment mentioned that he also needed to manually select the wifi frequency. You may also have to do so if, for some reason, it’s not already properly set.

Читайте также:  Раздача интернета wifi устройствам

Источник

OpenSource

NOTE: Please use internet explorer for all of these configurations. There are some issues reported in other browsers.

3. You will have to load a DD-WRT basic image first to load the openWRT image. You cannot directly load openWRT image for some reason I dont know of

4. Once the image is downloaded just click on browse on the ASUS firmware upgrade page and browse to the DDWRT image and upload it

5. router will restart and it will ask you to set a root username and password. Just set anything, you won’t be using ddwrt for very long.

14. Now take an ethernet cable from your Rogers modem and plug it into the WAN port at the back of your ASUS router(This should give your router internet access)

· opkg upgrade libuci uci libc opkg busybox base-files dnsmasq libiptc dropbear mtd wl libgcc ppp wlc

17. Configure uhtppd daemon to work on port 8080 (so you can access luci even when you are not authorized to go the internet)

· There is a lot of options with nodogsplash, I did not change much except that I modified the redirect URL, so if the client gets the splash page and he/she authenticates, instead of going to the website they wanted to go, it will redirect them to the URL I want them to go, then they can server all the internet they want.

· you can change the value of «RedirectURL» to the website if you want to the redirection, otherwise leave it.

· One thing you must do is add port 8080 to firewall rule. Look for «for administration from the GatewayInterface. If not, # comment these out.»

22. Now if you connect through wifi you will get the default splash page that comes with nodogsplash. If you dont get it then restart the nodogsplash service by /etc/init.d/nodogsplash stop

If you want to modify the splash page, which you most like would want to, then you can do so by vi /etc/nodogsplash/htdocs/splash.html
you can write your own html code there.

My SOURCES:
http://www.youtube.com/watch?v=nw4bo4rXGgQ
https://projectfirewall4.wordpress.com/2012/02/01/installing-openwrt-firmware-on-asus-rt-n16-router/#comment-21
http://www.dd-wrt.com/wiki/index.php/Asus_RT-N16#How_to_restore_to_factory_firmware
http://wiki.openwrt.org/doc/howto/wireless.hotspot.nodogsplash
http://wiki.openwrt.org/doc/uci/uhttpd

12 comments:

Hi There!
I’m wondering if you can help me to set up nodogslpash on my access point, not a router (using open wrt)
I have already falshed the device with the firmware, installed nodogsplash and configured id, but i have a problem, cause i’m using a static IP for my access point (dhcp disabled), and thats why it doesnt work. How can i setup this? It is a simple access point, no router.
do you have a mailadress, i can write to you? I’d be glad to hear from you. thanks in advance Reply Delete

Читайте также:  Какая wi fi антенна принимает

Hey Bernhard,
I havent configured it on an Access Point as I was doing wifi hotspots for relatively small resturants. However, It should be possible, did you have a look at this document yet?

I might be able to find a tutorial for you. No need to email blog comments get to my email directly. Reply Delete

Hallo!
Yes, i found this yesterday night, but i think i am overwhelmed with this.i just started with this a few days ago, never heard about open wrt before, and sorry for some english mistakes in my writing, usualy i speak german
This is also for my little restaurant, and i just want to add a splash screen for my guests, they should accept some Terms and conditions to avoid problems with the law in my country ( no illegal downloads and so on. ).
It works fine, but only when i go to the ip of the router, the splash screen comes up, as a new connected wifi client. other pages is try to surf first, no spash screen, thats why i think, the problem is the static adress of my access point.
I never worked with linux commands before, and i don’t need any ip tables or rules, all i need is a forcedtimeout, and this also works with my nodogsplash config file( i can test it only with the ip of the AP;-(.

The tutorial tells me the way it should work but for example i don’ know how to set this dns forwarder or how to insert the mentioned line with the iptables rule. for a pro this is easy i think.

i think its just s few last steps to get it working how i need it, but i’m stuck of it afer 2 nights of try and error.
in the open wrt forum, i think they don’t want to help beginners, i already startet a thread there, please have a look, i described my current situation very exactly

best regrads from Austria

Источник

OpenWRT. Прошиваем ASUS RT-N16 на OpenWRT

Сперва необходимо скачать посленюю версию прошивки с официального сайта OpenWRT. На данный момент — это 18.06.

Далее необходимо установить tftp сервер:

apt install tftp tftpd-hpa

Теперь необходимо подготовить роутер к перепрошивке. Для этого необходимо:

  1. Сбросить до заводских nvram. Это можно сделать зажам кнопку WPS и включив адаптер от роутера в сеть. Роутер перезагрузится два раза.
  2. Включить режим восстановления. Для этого необходимо зажат кнопку Reset и включить адаптер от роутера в сеть. Индикатор питания должен начать мигать примерно один раз в секунду.

Настраиваем соединение. Для это:

  1. Настраиваем на машине статический IP адрес 192.168.1.15 и маску подсети 255.255.255.0.
  2. Подсоединяем Ethernet кабель к порту Lan1 роутера.
  3. Проверяем, что соединение есть с момощью ping 192.168.1.1.

Подлючаемся и настраиваем бинарный режим:

sudo tftp 192.168.1.1 mode binary

Проверяем, что соединение установлено:

tftp> status Connected to 192.168.1.1. Mode: octet Verbose: off Tracing: off Literal: off Rexmt-interval: 5 seconds, Max-timeout: 25 seconds
put openwrt-18.06.0-brcm47xx-mips74k-asus-rt-n16-squashfs.trx

Прошивка дожна загрузиться и установиться.

Роутер сам не перезагрузится!

Необходимо подождать около 5-ти минут и перзагрузить роутер с помощью адаптера питания.

Источник

Оцените статью
Adblock
detector