On Mon, Oct 15, 2012 at 5:33 PM, Gui Iribarren gui@altermundi.net wrote:
Hey Sophana, Don't bridge the wan, as you won't be able to route then.
I would like to explicitely bridge the wan, as it is the private network. Just like a transparent wifi access point would do. Routing is not always what you want if you connect to your private LAN.
we solved that "missing piece" with a few scripts
https://bitbucket.org/guidoi/batmesh/src/tip/packages/batman-adv-auto-gw-mod... https://bitbucket.org/guidoi/batmesh/src/tip/packages/watchping
Thanks a lot for sharing your code. I took some time to understand how it works. If I understand correctly, you are using the batman-adv gateway feature. watchping is a script that simply uses ping on a specific interface to determine wether you are connected to the internet. When connected, you launch a dhcp server. When not, you launch a dhcp client.
Using dhcp means that you are routed.
As I would like to be bridged, this looks like it is not really a solution for me. The only solution I see is to start with the wan not bridged, test internet connection for a certain amount of time, then definitively decide if we are gateway or not.
When you are bridged, is there is solution to ping only the WAN port?
I still have to test your solution. Do I have to install all the batmesh packages? It seems that the whole configuration is made in batmesh-autoconf? Too bad you don't have all default ar71xx router images ready to flash.