I have problems with firewall. All other setting are default. One WAN one LAN.
First problem: I set port forwaring and gave it a ipset for src_ip.The connections get through even if the IP in not in allowed list. Sometimes. Restarted router.
Second: I disabled Ping in Traffic rules and can still ping my router. Also tried restaring router in both cases. I disabled all but "Allow-DHCP-Renew" traffic rule. Can still ping in with my phone with LTE connection.
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
ubus call system board
cat /etc/config/network
cat /etc/config/firewall
There is a high probability that one or both of the following apply to your connection wrt IPv4:
you are behind NAT/CG-NAT from the carrier. This would mean that your phone wouldn’t have a public IPv4 address and therefore would not be reachable for inbound connections
Your phone likely applies a NAT layer of its own, providing an RFC1918 address to the downstream device (your router). This would require that you have a means of port forwarding though the phone. I don’t know if most phones have this capability exposed (I’ve never seen it on iOS, not sure about Android).
What are the first two octets of your openwrt wan (in bold: aaa.bbb.ccc.ddd):
I don't understand how this apply to my problem. Problem is I CAN ping my home IP from anywhere, but this setting is disabled on OpenWRT(option Allow-Ping is off). This was not possible with my old router (FreshTomato).
OpenWRT WAN: 192.168.100.X which is DMZ on ISP Router.
PS: I have tried unpluging OpenWRT. I guess ISP router is responding to Ping requests.
What about my first problem: Is it possible that if the connection is established before ipset is enabled it ignores those connections? I tried rebooting the router.
You can not open public port if you are fronted by ISP router with another nat.
Can you show nat type with pc behind provider's router? If it is 4th type there is no hope.
The ping part of the question has been resolved. It was a reponse from ISP modem and not OpenWRT router. My bad, I thought DMZing a device meant ping requsts will also be forwarded. If I understand correctly IGMP is not forwarded. You learn every day.
PS: I have figure out the first part also. If the connection is already established (in my case Wireguard connection) and the ipset list is changed to exclude that IP the connection must first be killed (router restart helps but there is probably better solution).
Sorry for my post, I didn't research enough on my own and posted this too fast.