A GNU/Linux based firmware program for embedded devices such as residential gateways and routers.

learn more… | top users | synonyms

8
votes
3answers
3k views

Zero-fill numbers to 2 digits with sed

Input: 201103 1 /mnt/hdd/PUB/SOMETHING 201102 7 /mnt/hdd/PUB/SOMETH ING 201103 11 /mnt/hdd/PUB/SO METHING 201104 3 /mnt/hdd/PUB/SOMET HING 201106 1 /mnt/hdd/PUB/SOMETHI NG Desired output: 201103 ...
7
votes
1answer
1k views

Linux find Wifi Networks trotocol(a/b/g/n) version of all available access points

I do use iwlist wlan0 scanning and it gives me a fair amount of data, but one part is missing. It is protocol version. By protocol I mean (a/b/g/n). It would be very good to have these commands in ...
5
votes
2answers
2k views

OpenVPN on OpenWrt

I have a step-by-step guide for OpenVPN on an OpenWRT 10.03 router: (wl500gpv2) Needed packages opkg install openvpn_2.1.1-1_brcm-2.4.ipk kmod-tun_2.4.37.9-1_brcm-2.4.ipk ...
4
votes
1answer
3k views

Have someone ever audited the default OpenWrt firewall rules?

I have an Openwrt 10.03.1 installed from: openwrt-ar71xx-wrt160nl-squashfs-factory.bin (firewall only customized with this: sed 's/REJECT/DROP/g' /etc/config/firewall) - so besides this, IT'S A ...
4
votes
1answer
40 views

How to measure traffic on OpenWRT 12.04

Since just doing a cronjob every morning, before the router reboots: ifconfig > "`date`.ifconfig.txt" isn't very effective, since after ~4 GByte's the counter in the ifconfig will go to zero. ...
4
votes
1answer
5k views

How to extend my wireless network with OpenWrt

I have two routers, both running OpenWRT 10.04 The first is a WRT160NL router connected to my ISP. I am using it as an access point with the ESSID of "160AP". It's WEP password is "AAAAA" and it's ...
4
votes
2answers
3k views

How to limit P2P/torrent traffic on an OpenWrt 10.03 router?

We have a WRT160NL router with OpenWRT 10.03, and a 60-70 Mbit connection (from ISP, don't ask why). This router can do 30-35 Mbit on ethernet(i mean cable)..ok! There are ~7 PC's using this Wireless ...
3
votes
2answers
215 views

Human readable dmesg time stamps on OpenWRT

The output of dmesg shows the number of second+milliseconds since the system start. [ 10.470000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 14.610000] device eth0 entered ...
3
votes
1answer
408 views

Need to improve urlencode function

I need a way to URL encode strings with a shell script on a OpenWRT device running old version of busybox. Right now I ended up with the following code: urlencode() { echo "$@" | awk -v ORS="" '{ ...
3
votes
1answer
1k views

The n mode on “iwlist wlan0 scan”

I know how to determine if scanned AP uses B or G mode, but how to know (using "iwlist wlan0 scan") it uses N protocol ? if I use "iw dev wlan0 scan" and see if the cell has a "HT capabilities" block. ...
3
votes
1answer
2k views

How to configure an OpenWrt 10.03 router to forward an IPv6 connection to the clients?

So I have a TL-WR1043ND router with OpenWrt 10.03 on it. I have clients connected to it through the LAN ports. My ISP provides me a /64 IPv6 block, and I'm using PPPoE authentication. How can I ...
3
votes
2answers
1k views

How do I use dhcpcd in openwrt instead of udhcpc?

I'm trying to determine the reason my router is not syncing up to my ISP, I do suspect snafu on their end so I'm trying to replicate my desktops setup which includes using dhcpcd. Problem is I don't ...
3
votes
4answers
2k views

DNS Troubleshoot. Campus domain does not resolve when using campus network

I am having a very odd DNS issue. I live on-campus and the university provides Internet access with my rent, but I can not get access to the university websites. I am hoping to get direction on how to ...
3
votes
1answer
5k views

Configure OpenWRT as repeater

At home I'd like to configure one of my wifi routers to serve as a WI-FI signal extender. Since my main router is OpenWrt-based (Backfire 10.1.3), I'd like to use it for that purpose. I've looked ...
2
votes
2answers
290 views

non-case-sensitive sed - OpenWrt

the input would be like this in a file: <sCripT and the parsing looks like this: sed -i "s/<script//g" SOMETHING.html the "/gi" is not good, because OpenWrt doesn't knows it (busybox..): ...
2
votes
1answer
1k views

Ideas for securing OpenVPN on an OpenWrt router

I put an OpenVPN server on port 1194 on an OpenWrt 10.03 router: echo "nameserver 8.8.8.8" > /etc/resolv.conf; opkg update; opkg install luci-app-openvpn openvpn openssl-util openssh-sftp-server ...
2
votes
2answers
2k views

Force to use specific DNS provider at network

OpenDNS offers a quite simple way for internet filtering by categories. Of course who could get the correct IP address can easily bypass the filter but it would be enough for my expectations. The ...
2
votes
1answer
619 views

Good OpenWRT alternative? [duplicate]

Possible Duplicate: Open Source router firmware options? I own an ASUS wl-520gU (4 LAN, 1 WAN, WiFi, 1 USB, 4mb flash rom, 16mb ram. Broadcom BCM5354 @ 240). I am going to use it as a ...
2
votes
1answer
147 views

Only output printable chars OpenWrt

perl is not a very good idea, because it's an OpenWrt router, so not enough space for it. "cat -v" doesn't works, because it doesn't supports the "-v" option Any ideas? :\ Here's a bad text: ...
2
votes
2answers
48 views

Unable to launch the requested CGI program: /www/cgi-bin/first.cgi: Text file busy

I'm trying to make a very simple shell script to run as a CGI on a uhttpd server running on an OpenWRT install. The file is called /www/cgi-bin/first.cgi and looks like... #!/bin/sh echo ...
2
votes
1answer
2k views

Find connections per ip on an OpenWRT router?

How can I list the number of connections per client on the FORWARD chain of an OpenWRT router? I know how to list the number of connections per IP address on the router: netstat -ntu | tail -n +3 | ...
2
votes
1answer
1k views

Limit the max connections per IP using OpenWRT?

Would the following iptables command on an OpenWRT router assure that no one client has more than 50 active connections? $ iptables -I FORWARD -m connlimit --connlimit-above 50 -j REJECT ...
2
votes
1answer
3k views

How to connect to OpenVPN with NetworkManager

I have installed an OpenVPN server on my OpenWrt 10.03 router [freshly flashed]: https://pastebin.com/raw.php?i=hRECWuf1 echo "nameserver 8.8.8.8" > /etc/resolv.conf; opkg update; opkg install ...
2
votes
1answer
2k views

How do I reimage OpenWRT?

How do I reimage openwrt in such a way that all my settings will be lost. I've been having some issues, and I want to ensure that it's not a lingering setting, I want this to be a fresh install.
2
votes
1answer
221 views

Port Forwarding using iptables on Open-Mesh

A quick overview for those who are unfamiliar with Open-Mesh: The system uses small wireless access points that automagically build their own mesh network. As long as one of the access points is ...
2
votes
1answer
158 views

How to apply new wireless settings on an OpenWRT router without rebooting it?

After I manually edit the: vi /etc/config/wireless file, what should I do to apply the modifications? Until this day I rebooted the router, but aren't there any better solutions? (and no, www is ...
2
votes
1answer
626 views

Allow IP packet forwarding from LAN to modem via router

In short: I'd like to be able to telnet to my modem from my PC via my router. There is a simple home router on 192.168.33.1. It is running OpenWrt. It has the following interfaces defined: br-lan ...
2
votes
0answers
499 views

openwrt firewall - block a set of ip addresses from internet access

I'm running OpenWRT Attitude Adjustment r33556 / LuCI Trunk (trunk+svn9325) on my WNDR3800. I would like to configure my firewall to: Only allow a specific range of IP addresses to access internet, ...
2
votes
0answers
822 views

How to setup PPPoE with OpenWrt

Probably this is a simple question, but I can't find an answer... I have an ADSL router (Dlink DSL-524T) which runs OpenWrt Backfire 10.03.1. It connects to the internet using PPPoA: this is my ...
2
votes
1answer
96 views

DMA errors on OpenWrt router

I have a WRT160NL router with OpenWrt Backfire (10.03.1, r29592), and there is a 3,5" WD Green 1,5TB HDD attached to it. In the recent time if I read the logs on it with "logread" I can see these ...
1
vote
2answers
182 views

Fastest hashing method under OpenWRT?

I frequently verify the file integrity on my OpenWrt router by hashing the files. I didn't want to use sha256sum, so I decided to use the faster md5sum. Is there anything even faster available?
1
vote
1answer
232 views

Imagemagick on open wrt router “UnableToOpenConfigureFile”

I have installed Open Wrt on my TP-Link TL-WR740N/ND v4. Everything works fine but the Imagemagick. I have installed it into ram (no enough space on rom ) with opkg # opkg install imagemagick ...
1
vote
2answers
390 views

I don't know how to connect preconfigured OpenWRT router to my home network

What I need to do is to connect preconfigured OpenWRT router to another network through WAN cable connection. My router assign the IP address to new router but even if I use this address it still ...
1
vote
2answers
519 views

How to make OpenWrt Makefile compile faster?

I have recorded that it took 50 minutes for an initial compilation of the OpenWrt firmware image, assuming all the necessary packages have been installed via sudo apt-get install. My BuildRoot Root ...
1
vote
1answer
502 views

TP-Link TL-WR1043ND as dumb access point

I followed these instructions on how to set up my TP-Link TL-WR1043ND as a dumb AP: Flashed brand new Attitude Adjustment 12.09-rc1 Logged into LuCI, set up a password Disabled and stopped firewall ...
1
vote
1answer
722 views

How to unlock read-only filesystem on OpenWRT router linux distribution?

I have installed minimal OpenWRT firmware on Linksys router. When I try to modify some of the files withing /etc/ directory for example firewall.user file by using command vi firewall.user it opens ...
1
vote
1answer
397 views

Samba mount isnt mounting when switching to wireless

I have a notebook with Scientific Linux 6.1. I have a wireless router with OpenWrt 10.03 - Wrt160NL. I have a HDD on the router that I share via samba: cat /etc/samba/smb.conf.template [global] ...
1
vote
1answer
3k views

D-Link DI-624 H/W ver. D: Flashing OpenWrt

I have a D-Link DI-624 rev. D2 Router. It is based around an Atheros AR2316A-001 chipset, and has 8MB RAM. I opened the device to check for actual parts use in it, and I can confirm, it is indeed the ...
1
vote
1answer
530 views

Only allow ssh/vpn on OpenWRT

If I don't want to use wireless encryption, but I still want security and I want to use sshuttle (on the clients, see: https://github.com/apenwarr/sshuttle/) for tunneling everything through an SSH ...
1
vote
2answers
621 views

OpenWrt ssh host identification with dyndns

If i ssh to my remote OpenWrt router ["via DynDNS"] I get the message @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ Ok, i delete the old line in ~/.ssh/known_hosts, add the new one ...
1
vote
1answer
953 views

IPTABLES rule for separating users

I have an OpenWrt 10.03 router [ IP: 192.168.1.1 ], and it has a DHCP server pool: 192.168.1.0/24 - clients are using it through wireless/wired connection. Ok! Here's the catch: I need to separate ...
1
vote
1answer
3k views

What firmware works with a D-Link DIR-600?

I'm planning on getting a D-Link DIR-600 to be used as a WLAN access point, and for WEP/WPA certificate management. I know it works with DD-WRT, and OpenWRT, but not Tomato. Now, I've been looking ...
1
vote
2answers
18 views

Retrieve value of RTS threshold without iwconfig

Is there a way in OpenWrt to read the current value of the RTS threshold for a specific interface without installing iwconfig? What I'm looking for is the value of RTS thr that can be found in the ...
1
vote
0answers
104 views

OpenWRT configuration when router is in bridged mode

I am planning on putting my Zyxel ADSL modem in bridged mode and use an OpenWRT router instead as the exit point from my local network. So, what protocol must have the Wan interface if the router is ...
1
vote
0answers
329 views

Installed library packages cannot be found on OpenWRT

I have been compiling / installing custom packages for OpenWRT. I kept running into problems when I was compiling getting errors like: Package x is missing dependencies for the following libraries: ...
1
vote
1answer
118 views

OpenWrt: prevent that an IP address could be reachable in the network, excluding a few hosts

So there is a network: 192.168.1.0/24. Router is an OpenWrt 12.04 on a WRT160NL. We got a new network printer. But it's www server is reachable to everyone in the network (and thus everyone can ...
1
vote
2answers
138 views

Accent error on OpenWrt 12.09?

[user@localhost ~] ssh -x -a root@192.168.1.1 BusyBox v1.19.4 (2013-03-14 11:28:31 UTC) built-in shell (ash) ----------------------------------------------------- ATTITUDE ADJUSTMENT (12.09, r36088) ...
1
vote
0answers
249 views

OpenWrt: Find neighbors knowing their MAC address

I have an Open Mesh access point connected to the same router (an Aerohive BR100) than an Axis camera. I would like to automate the discovery of the camera's IP from inside the Open Mesh sensor, ...
1
vote
1answer
512 views

Tunnel openwrt requests

I am pretty new to OpenWrt what I want to achieve is the following scenario: I have a socks5 proxy server running on a machine witch is at work. From my home I wish to configure my router who is ...
1
vote
0answers
79 views

How to find out logical interface name of tap0?

Well, the question is given. I have tap0 interface connecting to a server which provides IPv6 addresses. I would like to set my RDNSS settings in radvd config and I need the logical interface name of ...