Re: [OpenWrt-Devel] Read-only copy of Wiki?

2018-10-19 Thread Nguyễn Hồng Quân
> action. > Have you tried e.g. an offline-reader plugin for your browser already? > I use Firefox and when I search its add-on with keywords "wiki offline", I only find Wikipedia-related add-ons, not general wiki. -- Quân Nguyễn Hồng Quân ☎ 093 9030

[OpenWrt-Devel] Read-only copy of Wiki?

2018-08-20 Thread Nguyễn Hồng Quân
Hi The OpenWrt wiki is sometimes too slow to access from my country. So I would like to host a read-only copy of it, to serve as reference documentation. Is this possible? Can you help export the wiki? Thanks -- Quân quan.hoabinh.vn agriconnect.vn

[OpenWrt-Devel] [Bug] Trunk (DD) doesn't build dnsmasq-full with ipset

2016-09-06 Thread Nguyễn Hồng Quân
g 30 10:37:41 2016 daemon.crit dnsmasq[1123]: recompile with HAVE_IPSET defined to enable ipset directives at line 38 of /etc/dnsmasq.conf Tue Aug 30 10:37:41 2016 daemon.crit dnsmasq[1123]: FAILED to start up -- Quân *** * Nguyễn

Re: [OpenWrt-Devel] Dynamically generate custom files before building?

2015-03-24 Thread Nguyễn Hồng Quân
changes since last save Options: and I don't understand what it can do :-( -- Quân *** * Nguyễn Hồng Quân* * Y!M: ng_hquan_vn* * Facebook: ng.hong.quan * * Web

Re: [OpenWrt-Devel] Dynamically generate custom files before building?

2015-03-24 Thread Nguyễn Hồng Quân
don't know what is xxx and also cannot find the trunk folder. Could you please tell me where it is? -- Quân *** * Nguyễn Hồng Quân* * Y!M: ng_hquan_vn* * Facebook: ng.hong.quan

Re: [OpenWrt-Devel] Dynamically generate custom files before building?

2015-03-24 Thread Nguyễn Hồng Quân
those default are. I may have to use this approach. Thank nam228, when I look into the Makefile, I see it mentions target folder. This may be a hint to look for. -- Quân *** * Nguyễn Hồng Quân* * Y!M: ng_hquan_vn

[OpenWrt-Devel] Dynamically generate custom files before building?

2015-03-23 Thread Nguyễn Hồng Quân
to modify the default config file for each target device, create the one in files/ folder before building? Where can I find the default /etc/config/wireless target device? Thanks -- Quân *** * Nguyễn Hồng Quân* * Y!M: ng_hquan_vn

[OpenWrt-Devel] Build ipk and make autostart?

2014-09-13 Thread Nguyễn Hồng Quân
puppysplash is the name of application. But after building the OpenWrt image with that application included, I didn't see the symlink in /etc/rc.d/ So, what is the right way to do? Thanks -- *** * Nguyễn Hồng Quân* * Y!M

Re: [OpenWrt-Devel] Build ipk and make autostart?

2014-09-13 Thread Nguyễn Hồng Quân
) define Package/postinst #!/bin/sh /etc/init.d/puppysplash enable endef but still, no symlink to /etc/init.d/puppysplash is created in /etc/rc.d/ -- *** * Nguyễn Hồng Quân* * Y!M: ng_hquan_vn

Re: [OpenWrt-Devel] Build ipk and make autostart?

2014-09-13 Thread Nguyễn Hồng Quân
/install $(INSTALL_DIR) $(1)/etc/init.d $(INSTALL_BIN) ./files/package.init $(1)/etc/init.d/package endef -- *** * Nguyễn Hồng Quân* * Y!M: ng_hquan_vn* * Facebook: ng.hong.quan

Re: [OpenWrt-Devel] Build ipk and make autostart?

2014-09-13 Thread Nguyễn Hồng Quân
. But that symlink is only created if you run the enable command. If you don't, there will be no such file in the rc.d. That's why I try to execute the enable command in postinst. -- Quân *** * Nguyễn Hồng Quân* * Y!M: ng_hquan_vn

[OpenWrt-Devel] Original wifidog.conf file

2013-09-21 Thread Nguyễn Hồng Quân
. -- *** * Nguyễn Hồng Quân* * Y!M: ng_hquan_vn* * Identi.ca: hongquan * *** ___ openwrt-devel mailing list

Re: [OpenWrt-Devel] OpenVPN in Backfire not start

2013-03-12 Thread Nguyễn Hồng Quân
Thank you all, I can start OpenVPN server now. Changing to '127.0.0.1:31194' doesn't work, but removing the line does. On Tue 12 Mar 2013 02:56:33 PM ICT, Bastian Bittorf wrote: * Nguyễn Hồng Quân quanngu...@mbm.vn [12.03.2013 08:47]: option 'management' '127.0.0.1 31194' maybe

[OpenWrt-Devel] How to bridge 2 Wifi subnet

2013-01-29 Thread Nguyễn Hồng Quân
Hello, Here is the picture for my question: http://i.imgur.com/pFwuhsZ.png Two Wifi network A B have same IP range (192.168.2.x) but separated. Two routers connect to the same wired network via their WAN interface. How can I bridge these two A B network (with OpenWrt) so that: - The IP is

Re: [OpenWrt-Devel] How to bridge 2 Wifi subnet

2013-01-29 Thread Nguyễn Hồng Quân
Thank you all, I think I will choose 1st or 2nd solution by Luiz Angelo Daros, because I am not running a mesh network. -- Regards, Quân Y!IM: ng_hquan_vn GTalk: ng.hong.quan ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org

[OpenWrt-Devel] PPPoE not working on TP-Link 941ND firmware

2013-01-21 Thread Nguyễn Hồng Quân
Hello I've just flashed my router TP-Link WR940N with OpenWrt Backfire and Attitude Adjustment (same firmware with 941ND). For both OpenWrt version, the WAN port does not work with PPPoE, though it works with static address protocol. Could you let me know how to solve this? Thanks! --

Re: [OpenWrt-Devel] PPPoE not working on TP-Link 941ND firmware

2013-01-21 Thread Nguyễn Hồng Quân
Discovery OpenWrt daemon.info pppd[2592]: Exit. OpenWrt daemon.notice netifd: Interface 'wan' is now down` On Mon 21 Jan 2013 04:30:55 PM ICT, Nguyễn Hồng Quân wrote: Hello I've just flashed my router TP-Link WR940N with OpenWrt Backfire and Attitude Adjustment (same firmware with 941ND). For both

Re: [OpenWrt-Devel] PPPoE not working on TP-Link 941ND firmware

2013-01-21 Thread Nguyễn Hồng Quân
OpenWrt daemon.notice pppd[4655]: Connect: pppoe-wan -- eth1 OpenWrt daemon.info pppd[4655]: Terminating on signal 15 OpenWrt daemon.notice netifd: Interface 'wan' is now down OpenWrt kern.info kernel: [ 2957.34] eth1: link down On Mon 21 Jan 2013 04:51:57 PM ICT, Nguyễn Hồng Quân wrote: Hello

Re: [OpenWrt-Devel] about m.uci:get!

2013-01-21 Thread Nguyễn Hồng Quân
Your config: config pin option pincode1 '1' means that pin is Typed Section, while the uci:get require a Named Section. You can use uci:get_first() with Typed Section, or convert to Named Section like this config general pin option (general is Typed Section and pin now is Named

Re: [OpenWrt-Devel] How to check the field is empty?

2013-01-21 Thread Nguyễn Hồng Quân
Add this attribute to your option: .optional = false Your example will become: code = s:option(Value, code, translate(Code)) code.option = false (Don't understand what password means and why it is there). On Mon 21 Jan 2013 05:25:19 PM ICT, . Elvis wrote: hi all, If the field does not enter a

Re: [OpenWrt-Devel] Get to RedBoot prompt in Atheros-based router

2013-01-17 Thread Nguyễn Hồng Quân
on the wiki for Micro Redboot, http://www.dd-wrt.com/wiki/index.php/Micro_Redboot, I can manage to get access via telnet (holding Reset button). I hope that this story is added to OpenWrt to help someones like me. On Thu 17 Jan 2013 08:52:17 PM ICT, Bastian Bittorf wrote: * Nguyễn Hồng Quân quanngu

Re: [OpenWrt-Devel] Get to RedBoot prompt in Atheros-based router

2013-01-16 Thread Nguyễn Hồng Quân
Hello On Wed 16 Jan 2013 06:06:09 PM ICT, Bastian Bittorf wrote: http://wiki.openwrt.org/doc/hardware/port.serial#finding.serial.console you are lucky! i'am ill at the moment and have time to debrick an old dir300 via serial today. will post my experience. Thanks in advance. I determined

Re: [OpenWrt-Devel] Get to RedBoot prompt in Atheros-based router

2013-01-16 Thread Nguyễn Hồng Quân
Hello Bastian, On Wed 16 Jan 2013 07:42:02 PM ICT, Bastian Bittorf wrote: * Nguyễn Hồng Quân quanngu...@mbm.vn [16.01.2013 13:15]: I determined serial pins based on http://wiki.openwrt.org/toh/d-link/dir-300#serial.port.jp1 here it is working out of the box: screen /dev/ttyS0 9600

[OpenWrt-Devel] Flash from DD-WRT to OpenWrt for ASUS RT-N13U router

2013-01-16 Thread Nguyễn Hồng Quân
Hello all Can I flash from DD-WRT to OpenWrt for ASUS RT-N13U B1 (http://wiki.openwrt.org/toh/asus/rt-n13u) without serial access? In the past, I flashed from stock firmware to DD-WRT using Asus Restoration Utility. This tool uses a single firmware file, while OpenWrt provides two files

Re: [OpenWrt-Devel] Flash from DD-WRT to OpenWrt for ASUS RT-N13U router

2013-01-16 Thread Nguyễn Hồng Quân
Thank HeXiLeD, Is there a way to determine which file is right? After building firmware, I see these files: - openwrt-ramips-rt305x-root.squashfs - openwrt-ramips-rt305x-rt-n13u-squashfs-sysupgrade.bin - openwrt-ramips-rt305x-uImage.bin - openwrt-ramips-rt305x-vmlinux.bin Sometimes, there is

Re: [OpenWrt-Devel] Get to RedBoot prompt in Atheros-based router

2013-01-15 Thread Nguyễn Hồng Quân
Hello, On Tue 15 Jan 2013 05:31:45 PM ICT, Bastian Bittorf wrote: it should be possible from DD-WRT/openwrt to alter variables from redboot. look out for fconfig: http://wiki.openwrt.org/doc/techref/bootloader/redboot Unfortunately, because I cannot get access to RedBoot, I cannot reset

[OpenWrt-Devel] Get to RedBoot prompt in Atheros-based router

2013-01-14 Thread Nguyễn Hồng Quân
Hello all I'm trying to flash OpenWrt to an old D-Link DIR-300 router. The router has contained DD-WRT already (not stock firmware), so I assume that its RedBoot listens at 192.168.1.1 when booting. However, I tried many times with telnet 192.168.1.1 9000 and cannot get in. The error is

Re: [OpenWrt-Devel] Get to RedBoot prompt in Atheros-based router

2013-01-14 Thread Nguyễn Hồng Quân
Hi Bastian, I tried that script but failed at Waiting for the wireless router… (infinite waiting). The scripted start from looking for factory bootloader step but as I told, the router has had DD-WRT already. This means factory bootloader was replaced. I wonder if the time for RedBoot to

Re: [OpenWrt-Devel] Evenly distribute bandwidth for users?

2013-01-13 Thread Nguyễn Hồng Quân
Thank you all, I'm reading carefully, because I don't understand at first :) Regards On Sat 12 Jan 2013 02:04:00 AM ICT, Sebastian Moeller wrote: Hi there, On Jan 11, 2013, at 05:16 , Brian J. Murrell wrote: On 13-01-11 07:29 AM, etienne.champet...@free.fr wrote: Hi

[OpenWrt-Devel] Evenly distribute bandwidth for users?

2013-01-11 Thread Nguyễn Hồng Quân
Hello, I'm looking for how to make the OpenWrt router automatically distribute bandwidth for users. For example, one user is downloading a big file and slow down Internet speed for others. I want to limit that downloading. I looked into QoS, but it seems that I have to specify a user (IP) to

Re: [OpenWrt-Devel] OpenWrt hang when turn wifi on

2012-12-18 Thread Nguyễn Hồng Quân
the device didn't actually upgrade with your new image. On 12/14/2012 09:06 PM, Nguyễn Hồng Quân wrote: Hello Jonathan, Here is my dmesg output before I enable wifi On Fri 14 Dec 2012 09:07:57 PM ICT, Jonathan Bither wrote: Hello Nguyen, Would you be able to provide me with a 'dmesg' prior

[OpenWrt-Devel] OpenWrt hang when turn wifi on

2012-12-14 Thread Nguyễn Hồng Quân
Hello, I'm building OpenWrt for Fonera router (FON2100) (Atheros target). By default, Wifi is off. But when I turn on the Wifi, OpenWrt freezes. There is even not output to Terminal (I flash firmware via serial cable). Did I build the firmware wrong or something else? Any help? Thanks. --

Re: [OpenWrt-Devel] OpenWrt hang when turn wifi on

2012-12-14 Thread Nguyễn Hồng Quân
Hello Jonathan, Here is my dmesg output before I enable wifi On Fri 14 Dec 2012 09:07:57 PM ICT, Jonathan Bither wrote: Hello Nguyen, Would you be able to provide me with a 'dmesg' prior to starting wifi? On 12/14/2012 03:46 AM, Nguyễn Hồng Quân wrote: Hello, I'm building OpenWrt

[OpenWrt-Devel] nixio.TLSContext not found

2012-10-03 Thread Nguyễn Hồng Quân
Hello I'm using luci (on OpenWrt backfire) to write a client for TLS-wrapped TCP protocol. However, this line require nixio.TLSContext fails with error: module 'nixio.TLSContext' not found How can I fix this? -- Regards, Quân Y!IM: ng_hquan_vn GTalk: ng.hong.quan

Re: [OpenWrt-Devel] nixio.TLSContext not found

2012-10-03 Thread Nguyễn Hồng Quân
Hi Le 03/10/2012 16:11, Jo-Philipp Wich a écrit : You need to enable a crypto backend in luci-lib-nixio and then recompile. The default builds do not inclue crypto capabilities in the nixio library due to size constraints. Sorry for stupid question, but how to enable the crypto backend? --

Re: [OpenWrt-Devel] nixio.TLSContext not found

2012-10-03 Thread Nguyễn Hồng Quân
Hi Jo-Philipp, I did: - Run make clean - Choose TLS provider (OpenSSL) and luci in make menuconfig - Run make package/luci/compile V=99 - I get luci-lib-nixio_0.10+svn9138-1_x86.ipk and install it with opkg install --force-downgrade. However, the error module 'nixio.TLSContext' not found

Re: [OpenWrt-Devel] nixio.TLSContext not found

2012-10-03 Thread Nguyễn Hồng Quân
I did wrong. Instead of using require nixio.TLSContext I should use tls = nixio.tls(client) Le jeu. 04 oct. 2012 09:37:12 ICT, Nguyễn Hồng Quân a écrit : Hi Jo-Philipp, I did: - Run make clean - Choose TLS provider (OpenSSL) and luci in make menuconfig - Run make package/luci/compile V=99 - I

[OpenWrt-Devel] How to write TCP client with nixio

2012-10-03 Thread Nguyễn Hồng Quân
Hello, I want to create c TCP client, with TLS support, based on nixio. From the API reference, I tried this require nixio local s = nixio.socket(inet, stream) local tls = nixio.tls(client) local ssoc = tls:create(s) print Connect local c = ssoc:connect() But I don't know how to specify the

Re: [OpenWrt-Devel] How to write TCP client with nixio

2012-10-03 Thread Nguyễn Hồng Quân
I found the answer, that is I have to put Socket:connect (host, port) before TLSSocket:connect () Le jeu. 04 oct. 2012 11:25:25 ICT, Nguyễn Hồng Quân a écrit : Hello, I want to create c TCP client, with TLS support, based on nixio. From the API reference, I tried this require nixio local s

[OpenWrt-Devel] Remote admin for multiple routers

2012-09-27 Thread Nguyễn Hồng Quân
Hello, I'm thinking about creating an admin interface to manage multiple OpenWrt routers at the same time. Is there anyone having experience in this? I've just sketched a scheme about the components and how they work

[OpenWrt-Devel] Single SSID for multiple AP in routed mode?

2012-09-25 Thread Nguyễn Hồng Quân
Hello, Normally, when setting up network of multiple routers with single ESSID, they set router in AP mode. Is this setup possible with router in routed AP mode? Thanks. -- Regards, Quân Y!IM: ng_hquan_vn GTalk: ng.hong.quan ___ openwrt-devel

[OpenWrt-Devel] Station mode for Fonera router?

2012-09-24 Thread Nguyễn Hồng Quân
Hello all, I'm trying to set Fonera FON2100 router to station mode, following this tutorial: http://wiki.openwrt.org/doc/recipes/routedclient#using.masquerade After changing the configuration to this: wireless.wifi0=wifi-device wireless.wifi0.type=atheros wireless.wifi0.channel=auto

Re: [OpenWrt-Devel] Station mode for Fonera router?

2012-09-24 Thread Nguyễn Hồng Quân
Thanks. I misunderstood about client mode. I want to setup like this: Router connect via Ethernet port with 192.168.1.x network. Router create a network 192.168.2.x via its wifi. All client in 192.168.2.x can see each others but do not need to see 192.168.1.x. How can I do? How I tried on

[OpenWrt-Devel] iptables to redirect traffic through AP router?

2012-09-24 Thread Nguyễn Hồng Quân
Hello I run a router in AP mode and want to setup iptables rule to redirect traffics to Google AdSense to a proxy. I added this chain and rule to NAT table: 1. Create GoogleAds chain -N GoogleAds 2. Append this chain to PREROUTING chain -A PREROUTING -j GoogleAds 3. In GoogleAds chain, I make

Re: [OpenWrt-Devel] Station mode for Fonera router?

2012-09-24 Thread Nguyễn Hồng Quân
Thanks for the link, I did after the tutorial: root@OpenWrt:~# uci show network.wifi network.wifi=interface network.wifi.proto=static network.wifi.ipaddr=192.168.2.1 network.wifi.netmask=255.255.255.0 network.wifi.gateway=192.168.2.1 network.wifi.dns=192.168.1.200 root@OpenWrt:~# uci show

[OpenWrt-Devel] How to build luci-app-xxx package

2012-08-19 Thread Nguyễn Hồng Quân
Hello, I wrote an application based on LuCI. Now I want to build a luci-app-xxx.ipk package from the source, how can I do. I referenced the luci-app-pbx-0.10.tar.gz in https://lists.openwrt.org/pipermail/openwrt-devel/2011-October/012538.html, but I found the folder structure is different from

[OpenWrt-Devel] Global variables live across LuCI modules

2012-08-13 Thread Nguyễn Hồng Quân
Hello, I'm writing a LuCI app with two modules. I want to keep a data generated in this module and accessed from other module. Is there any way to do that? Because LuCI run embedded in uhttpd, I think there may be a way to have a variable live with uhttpd and accessible from LuCI. Or, if inside

[OpenWrt-Devel] Setup domain for router?

2012-08-06 Thread Nguyễn Hồng Quân
Hello everybody, How can I setup a domain name for OpenWrt-powered router, for example splash.local? My purpose is to make a redirection URL for an OAuth app, so that after logging in, the OAuth provider (Facebook) will redirect browser to a page hosted in router (where we will capture the

Re: [OpenWrt-Devel] Filter HTTPS traffic based on URL?

2012-08-06 Thread Nguyễn Hồng Quân
Thank you all. On Tue 07 Aug 2012 03:30:37 AM ICT, Daniel Golle wrote: On 06/08/12 22:57, Felix Fietkau wrote: Do you have any solution? There really is no good way to filter HTTPS traffic. It requires intercepting the SSL connection and doing a man-in-the-middle-attack on it, which requires

[OpenWrt-Devel] Make UCI support for other software?

2012-08-02 Thread Nguyễn Hồng Quân
Hello To make a software use UCI for configuration instead of its own config, what do we have to do? Do we change in that software source code or UCI source code? For example, I want to make UCI setting for WifiDog. Also, is there documentation about using C API of libuci? I searched but

[OpenWrt-Devel] Build WifiDog against OpenWrt Backfire?

2012-07-25 Thread Nguyễn Hồng Quân
Hello, I'm trying to build ipkg package of WifiDog from source, based on the tutorial http://dev.wifidog.org/wiki/doc/install/gateway but the command make ipk does not work. It said that ipk rule does not exist. So, how can I build it? The WifiDog author has stopped working on building WifiDog

Re: [OpenWrt-Devel] Build WifiDog against OpenWrt Backfire?

2012-07-25 Thread Nguyễn Hồng Quân
Thank for your reply On Wed 25 Jul 2012 03:59:51 PM ICT, Christoph Thielecke wrote: Hello, Already packaged :) Yes, but because I want to make some change in the source, so I have to rebuild it. Use this dir inside packages dir on backfire:

Re: [OpenWrt-Devel] Captive Portal with OAuth support?

2012-07-01 Thread Nguyễn Hồng Quân
Thanks Bastian, I want to try your kalua. How to build it? Is it run on OpwnWrt Backfire or Kamikaze? On 06/30/2012 01:43 AM, Bastian Bittorf wrote: Is there anyone in this mailing list tried with this idea? Which should I start from? we have this included since a long time:

Re: [OpenWrt-Devel] Captive Portal with OAuth support?

2012-07-01 Thread Nguyễn Hồng Quân
Sorry, I found the instruction. Is there a pre-built binary package of kalua? On Mon 02 Jul 2012 11:10:23 AM ICT, Nguyễn Hồng Quân wrote: Thanks Bastian, I want to try your kalua. How to build it? Is it run on OpwnWrt Backfire or Kamikaze? On 06/30/2012 01:43 AM, Bastian Bittorf wrote

[OpenWrt-Devel] Captive Portal with OAuth support?

2012-06-27 Thread Nguyễn Hồng Quân
I'm about to implement Captive Portal with OAuth support for OpenWrt. Is there anyone in this mailing list tried with this idea? Which should I start from? I just begin and I'm trying with WifiDog, but have problem when installing AuthPuppy. Do you think which webserver should be installed to use