Questions tagged [openwrt]

OpenWrt is a Linux distribution primarily targeted at routing on embedded devices.

OpenWrt provides a fully writable filesystem with package management.

Some of the features:

  • Routing
  • QoS
  • Firewall
  • Traffic shaping
  • Load balancing
  • Network monitoring

Official site

227 questions
0
votes
0 answers

nftables or fw4 issue with timebased traffic rules

Since the OpenWRT ver > 22.3 does use NFTABLES instead of IPTABLES I got issue with some firewall (fw4) time based traffic rules that I have no idea how to solve them. The firewall rule is as follows config rule option name 'Block-Traffic' …
Sina S.
  • 11
  • 1
  • 2
0
votes
1 answer

running openwrt in virtualbox with 2 network adapters- a host only adapter and bridged adapter, but only host-only adapter shows

following this video to try and set up a virtual network for me to practice hacking, but only the host-only adapter shows (I am currently 17 minutes into the video). uci show network ip addr /etc/config/network contents network adapter 1…
0
votes
1 answer

iptables rules openwrt not working

I am new here and I hope find answer to my question i hvae set rule in openwrt iptables iptables -A FORWARD -s 192.168.2.14 -m time --timestart 8:00 --timestop 18:30 -j ACCEPT iptables -A FORWARD -s 192.168.2.14 -j DROP this…
0
votes
1 answer

Is ingress filtering described in RFC2827 implemented in most routers? How does such implementation look like?

RFC 2827 describes the idea of ingress filtering that is meant to deal with DOS attacks that utilize IP spoofing: An input traffic filter on the ingress (input) link of "router 2", which provides connectivity to the attacker's network, restricts…
John Smith
  • 105
  • 3
0
votes
0 answers

I want to test IGMP capability of a OpenWRT based router. How caan i test?

This is what I want to test out, SEE IMAGE: Router connected to users and is accessible over the internet as well PC1 and PC2 should be able to join some group(s). Should be able to leave group as well. When joined they should receive the multicast…
0
votes
0 answers

Transform Broadcast packet in Unicast packet with iptables and ebtables

I've been struggling with this problem for months, and my limited networking knowledge doesn't allow me to progress further, so here I am asking for an advice. I have an OpenWRT Router with two subnets, 192.168.1.x and 192.168.2.x. On 192.168.1.x I…
0
votes
1 answer

How to add a routing rule that only match "dport"?

In my OpenWrt box, I want to route only a specific protocol(tcp:1888) to a tun interface only for one PC(192.168.28.2), so I do as following: ip rule add from 192.168.28.2 dport 1888 lookup 123 ip route add default via 10.8.0.2 dev tun0 table…
Leon
  • 169
  • 9
0
votes
1 answer

OpenVPN and IPTABLES - How to assign lan (vpn) gateway to clients

I am trying to set up my openvpn network but I have a problem. My LAN configuration is as follows: main router Zyxel 192.168.1.1 acting as gateway (vdsl connection) and access point; openwrt router TD-W8970 192.168.1.2 acting as access point and…
0
votes
1 answer

Redirect TLS traffic by hostname

I have an IoT device that connects to a.iot.x.amazonaws.com at port 8883 (secure MQTT). I would instead like it to connect to my own site at b.iot.x.amazonaws.com (same port and protocol). I would like to use network tools to redirect the traffic. I…
0
votes
0 answers

IPv6 connection drops after renewing an address

I have a router running OpenWrt and a machine with embedded Linux built with Yocto. I need to detect lease renewing in my C application. On my router I decrease lease time to 30 seconds. When I log on Linux to my OpenWrt network and get DHCPv6…
tom654321
  • 3
  • 1
  • 3
0
votes
1 answer

Is it possible to force the DHCP server to assign a different IP address each time the address is renewed?

I need to detect IP address renewals in my C++ Linux application and check if the new address is different from the old one. I have access to a router running OpenWrt. I can change the lease time, but I can't find a way to force an address change…
tom654321
  • 3
  • 1
  • 3
0
votes
0 answers

Requests to WAN IP are served by LAN interface on OpenWrt

Here's the situation. I have OpenWrt installation with multiple zones: WAN - let it be 1.1.1.1 LAN0 - 192.168.0.0/24 LAN1 - 192.168.1.0/24 After forwarding some port from WAN to LAN0 I can reach it from another host in the Internet (e.g. 2.2.2.2)…
WGOS
  • 101
0
votes
1 answer

Unraid share fails to mount on OpenWRT using mount.cifs?

So I have an Unraid machine with some shares on it and I would like to be able to mount this share on my OpenWRT router for backing up/transfering files onto the router (avoids having to plug-in/remove USB constantly as the share is also mounted on…
Kris Rice
  • 51
  • 2
0
votes
0 answers

OpenVPN on OpenWRT fails to connect "connection timeout"

It seems very elegant to be able to connect to your homenetwork from any public accesspoint without being worried to disclose your traffic. So dispite my lack of computer network experience, and after creating a dyndns for MYDOMAIN.com -- which…
alex
  • 101
  • 1
0
votes
1 answer

Capturing IEEE802.11.x auth and capabilities data with tcpdump?

I'm troubleshooting some issues with my wireless network (OpenWrt 19.x and mobile device) and I came across this: https://dot11.exposed/2017/09/20/violation-of-802-11-standard-intel-wireless-cards-send-40mhz-intolerant-bit-in-5ghz/ Most notably,…
KreonZZ
  • 13
  • 3