31 votes

How to log all DNS requests made through OpenWRT router?

You can edit the config file: vi /etc/dnsmasq.conf # /etc/dnsmasq.conf log-dhcp log-queries log-facility=/tmp/dnsmasq.log Or edit another config file: vi /etc/config/dhcp config ...
kev's user avatar
  • 12.8k
21 votes

Disable IPv6 with OpenWRT

A simpler approach would be to SSH into your OpenWrt router and execute the following commands: uci set 'network.lan.ipv6=off' uci set 'network.wan.ipv6=off' uci set 'dhcp.lan.dhcpv6=disabled' /etc/...
Sir Muffington's user avatar
16 votes

Disable IPv6 with OpenWRT

On initial installation (or settings reset) OpenWrt generates a Unique Local Address prefix and assigns ULAs to all the devices in the network, allowing them to communicate internally via IPv6 even ...
Michael Hampton's user avatar
8 votes

Is there a way to associate a descriptive name to a MAC address in OpenWRT?

If you want to assign a hostname to a DHCP client based on its mac address then you can configure that in /etc/config/dhcp with a block like this: config host option name myhost option mac de:...
starfry's user avatar
  • 1,647
6 votes

How to log all DNS requests made through OpenWRT router?

You can install tcpdump and sniff the packet going to the port 53 tcpdump -i eth0 -l -vvv dst host 192.168.1.100 and dst port 53 >> dump.log This file will grow really fast and your router ...
Joe's user avatar
  • 673
6 votes

OpenWRT redirect incoming WAN traffic based on domain name

This is not the purpose of a router, routers w/NAT operate at Layer 3 and Layer 4 (IP and Port) what you need operates at layer 7 (application: http). TLDR; You need to configure a web proxy to route ...
Jacob Evans's user avatar
5 votes

Output of the "ps w" command

It is showing you the grep kkkk process that you are running!
Scott - Слава Україні's user avatar
5 votes

IPv6 home set-up | OpenWrt 18.06.1 - how to?

In a nutshell: Stateful DHCPv6 auto-configuration of IPv6 is the equivalent of DHCP in IPv4. A DHCPv6 service provides the IPv6 address to the client device and both client and server maintain the "...
harrymc's user avatar
  • 481k
4 votes

OpenWrt vs DDWrt

An important consideration these days is router security. Out of the three distributions, only the OpenWRT has a security advisories page: https://openwrt.org/advisory/start So basically from ...
nponeccop's user avatar
  • 249
4 votes

How to set up a static/persistent ARP entry with OpenWRT 14.07, Barrier Breaker?

I was able to use ip neighbor replace 192.168.0.1 lladdr 11:22:33:44:55:66 nud permanent dev eth0 or if not requested already ip neighbor add 192.168.0.1 lladdr 11:22:33:44:55:66 nud permanent dev ...
User's user avatar
  • 151
4 votes
Accepted

Can't connect via LuCI or SSH from WAN side network to Raspberry Pi 1B running OpenWRT 14.07

Figured it out. It's a firewall issue. Here's the source that provided the solution: http://blog.differentpla.net/blog/2015/05/27/openwrt-ssh-wan To enable access from hosts on the WAN side of the ...
Rhyknowscerious's user avatar
4 votes
Accepted

OpenWRT - how to do initial login (ssh) if 192.168.1.1 can't be routed?

You should be able to configure your local (windows) network card so that you can talk to the router over wired ethernet. Most likely the DHCP server and packet routing services of the router are not ...
Argonauts's user avatar
  • 4,440
4 votes
Accepted

External antennas of same router on different floors

Does the router communicate with the same wifi-device through more than one antenna? (which obviously would not work anymore in case the antennas are all on different floors/stories. Often, yes – ...
u1686_grawity's user avatar
4 votes
Accepted

How to renew a client DHCP address with an OpenWrt router?

Done the research and answering to the future me. OpenWrt uses udhcpc as its DHCP client (rather than dhclient). To renew DHCP leases on all interfaces, the following one-liner can be used (thanks to ...
noseratio's user avatar
  • 2,773
4 votes

Preserve incoming interface for answers in openwrt router

Marks set via -j MARK are specific to the packet, so if you mark an incoming packet, this has no effect on outgoing responses by default. You need to set a connection mark – in other words, store the ...
u1686_grawity's user avatar
3 votes

Mirroring all router traffic (openwrt) to a snort sensor?

It is now possible to set up port mirroring on OpenWrt via the Switch configuration. This can be done using the OpenWrt web interface (LuCI) by going to the Network->Switch menu then enabling '...
Pierz's user avatar
  • 1,989
3 votes

Accidentally installed OpenWRT Upgrade image on TP-Link and now Cannot Telnet

TP-Link WR841N router supports flash from TFTP server. If you want to revert, download latest firmware for your router with correct HW revision from TP-Link website. Then download some TFTP server. ...
Misaz's user avatar
  • 626
3 votes
Accepted

Updating OpenWRT due to security issues

Updating OpenWrt requires reflashing each time there is an update to apply, except in the case where you have deliberately placed the root filesystem on external storage (e.g. USB drive). However, ...
Michael Hampton's user avatar
3 votes

(Openwrt) How to set a service to automatically restart at a particular time in Luci Web interface Schedule tasks?

In the LEDE GUI, go to Schedule Tasks and then enter the following code (change the number for what time you want it to restart) # Reboot at 4am every day 0 4 * * * reboot
Jon Pienkowski's user avatar
3 votes
Accepted

Installing OpenWRT in TPLink Archer C50

According to the installation section of its page: Supported Current Rel: external image Firmware OpenWrt Install URL: http://openrouter.info/forum/viewtopic.php?p=41591#p41591 At that ...
ivan_pozdeev's user avatar
  • 1,912
3 votes
Accepted

Connecting two LANs via WIFI where each has its own internet access with OpenWRT

I will answer this myself since I got this to work in the way I proposed and I think this is the best and fasted method for this specific problem. The OpenWRT is connected on the LAN port with a ...
rezeptpflichtig's user avatar
3 votes

Https abuse in public place

My question is pretty simple , how to have fake https sessions or force them to have on our "server" unencoded to overcome this and again we have open source software You can't do this really well ...
LawrenceC's user avatar
  • 74k
3 votes
Accepted

How do I configure dnsmasq to resolve local hostnames with dualstack ipv4 & ipv6?

If you don’t use a custom OpenWrt image, the default DHCP/DNS constellation is as follows: dnsmasq does DHCPv4 and DNS dnsmasq ships without DHCPv6 support (dunno why that’s different for you) odhcpd ...
Daniel B's user avatar
  • 63.1k
3 votes

OpenWRT: How can I kick a wireless client from command-line?

UPDATE: simplifying informations thanks to comments from @pim The best method to retrieve association informations for eg on card wlan1 should be the command iwinfo wlan1 assoclist that can be ...
A.B's user avatar
  • 5,936
3 votes
Accepted

TLS Handshake resets for some web sites when using OpenWRT router

This seems to be an issue with MTU and fragmentation. Ethernet MTU is 1500, while PPPoE MTU is (1500-8) = 1492. Setting the MTU on the router alone doesn't help. You reduce set the MSS size in ...
RalfFriedl's user avatar
  • 1,704
3 votes
Accepted

IPv6 home set-up | OpenWrt 18.06.1 - how to?

So, there were two separate problems: WAN - IPv6 Upstream not connecting LAN - Error in the configuration For #1, i.e. WAN configuration, I tried pretty much everything that the GUI offers without ...
Vlastimil Burián's user avatar
3 votes
Accepted

Change DNS servers in an OpenWrt router from command line

The OpenWRT documentation provides an example of this configuration, see https://openwrt.org/docs/guide-user/base-system/dhcp_configuration # Configure DNS provider uci set network.wan.peerdns="0" ...
thebiss's user avatar
  • 44
3 votes
Accepted

Connecting an OpenWrt router to a “dumb” modem provided to me by my ISP

There are a few things going on here. I'll summarize. That "modem" is much more than a modem. It's a router, DHCP server, DNS server, gateway (to the modem) and an L2 bridge (switch). We'll ...
Spooler's user avatar
  • 432
3 votes
Accepted

What's the difference between dd into a file and dd into a physical disk

Dunno what OpenWRT does nowadays. However, what you are doing is simply adding some garbage data at the file end. Because the file size ends up being the device size inside the virtual machine, it’s ...
Daniel B's user avatar
  • 63.1k
3 votes
Accepted

Connect OpenWRT to Eduroam

See the WPA Enterprise (Client) section in the documentation. OpenWRT settings closely map to the underlying wpa_supplicant settings, so first find the correct configuration for that, then translate ...
u1686_grawity's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible