opentechinstitute / commotion-dnsproxy

Simple DNS proxy that allows captive portal on non-internet-connected networks
GNU General Public License v3.0
2 stars 6 forks source link

How to port this to OpenWrt #1

Open chengdanhao opened 8 years ago

chengdanhao commented 8 years ago

I am trying to port dnsproxy to OpenWrt system.

dnsproxy depends on libldns, I put libldns into the soure directory, and modify Makefile, but still face some compile errors.

Could you please tell me how to do this, Thanks.

chengdanhao commented 8 years ago

By importing the libldns source code, I successfully port dnsproxy to OpenWrt, but it doesn't run successfully.

In other words, I don't know how to run it. I use the command below: dnsproxy -n -b 8006 -p /tmp/cdh -s 53 -i br-lan

Could you please tell me how to run it or improve project README?

Thanks in advance.

dismantl commented 8 years ago

The build scripts for dnsproxy, including OpenWRT makefile, are here: https://github.com/opentechinstitute/commotion-feed/tree/master/packages/commotion-dnsproxy. If you build the commotion-router firmware, it will be included in the image: https://github.com/opentechinstitute/commotion-router.

dismantl commented 8 years ago

I don't really have the availability to put OpenWRT build instructions in the README, but if you get it working and want to make a pull request, I'm happy to accept that.

chengdanhao commented 8 years ago

Thanks a lot!

I will follow your advice these days, if it works well on OpenWrt, I will make a pull request

chengdanhao commented 8 years ago

I followed your advice, now dnsproxy is running but still cannot popup nodogsplash page. :(

Do you need some system information? Maybe it can give some inspiration.