danitool / openwrt-pkgs

my custom OpenWrt packages: lirc and others
GNU General Public License v2.0
9 stars 4 forks source link

Building on 23.05 ? call_qcsapi breaks CloudFlare 1.1.1.1 DNS #8

Open softwarecreations opened 3 months ago

softwarecreations commented 3 months ago

Hi,

Thank you very much for sharing this!!! It's amazing. It's turned the Vodafone router from e-waste to something potentially potentially useful.

I successfully configured and brought up a 5GHz WiFi network on the Sercomm H500S vfes Hardware ver: V1.

The problem with call_qcsapi_1.0.1-1_mips_mips32-openwrt_21.02.ipk that using it interferes with CloudFlare's 1.1.1.1. The computers on my LAN can't ping 1.1.1.1 and also doing a simple dig a example.org @1.1.1.1 or dig a example.org @1.0.0.1 from LAN computers is broken.

CloudFlare is one of the biggest DNS providers on the internet and loads of services, hosts, software and companies use it.

Can you please add info for building call_qcsapi for the latest OpenWrt 23.05?

And also using a LAN IP somewhere in

Or even a loopback IP?

It's quite time consuming changing configs and waiting a few mins every time for the router to reboot and WiFi to come up etc so I've not experimented too much with it. I didn't see "1.1.1" in the source code, so is the call_qcsapi_sockrpc --host IP just whatever was set in uci set network.lan2.ipaddr=1.1.1.1 PLUS ONE? Also the netmask is very weird 255.0.0.0

I tried messing with it once doing uci set network.lan2.ipaddr=192.168 something but then my call_qcsapi_sockrpc commands were failing and I didn't have time to explore further yet. Now that I'm a bit more familiar with it I see that I'll also need to edit the IP in /etc/init.d/quantenna

softwarecreations commented 2 months ago

Tried compiling OpenWrt and call_qcsapi. I installed all the build deps. Compiled a lot of openWrt it seems.

I've got the package located at openwrt/package/community/openwrt-pkgs/call_qcsapi where openwrt dir is the openwrt source code root and after running make menuconfig and set Network > call_qcsapi > M and then make -j8 toolchain/install`

But couldn't get past

In file included from call_qcsapi_rpc/generated/call_qcsapi_rpc_clnt.c:7:
call_qcsapi_rpc/generated/call_qcsapi_rpc.h:9:10: fatal error: rpc/rpc.h: No such file or directory
    9 | #include <rpc/rpc.h>
      |          ^~~~~~~~~~~
compilation terminated.

When running openwrt$ make -j8 package/call_qcsapi/compile V=s


A build guide would be highly appreciated.