From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marek Lindner Date: Mon, 4 Jul 2011 14:55:32 +0200 References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201107041455.33023.lindner_marek@yahoo.de> Subject: Re: [B.A.T.M.A.N.] Disconnecting the nodes in batman-adv 2011.1.0 Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: The list for a Better Approach To Mobile Ad-hoc Networking On Monday, July 04, 2011 14:45:57 Max Ip wrote: > sudo iptables -A INPUT -s 10.42.43.3 -j DROP > > When, I now run batman-adv protocol, node_1 still finds node_3 without > node_2 being involved. > > Though they cannot ping and avahi doesn't run, batman-adv shows them > as 1 hop neighbors. > > How can I disconnect node_1 from node_3 so that I can see the 2 hop > patterns. batman-adv operates on layer 2 - the mac address layer. IP addresses are irrelevant for the mesh to work. You can remove all IP addresses and the nodes still find each other (try batctl ping or batctl traceroute when you have no IP addresses configured). Therefore blocking the IP traffic does not interrupt anything. You'd have to block mac addresses via ebtables or similar tools. Regards, Marek