Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am currently trying to get a B.A.T.M.A.N mesh network up and running. the thing uses UDP port 4305 for broadcasting to nearby nodes and it seems this port is closed or used by something else.
now i have tried to open this port with commands like
Code:
iptables -A INPUT -p udp --dport 4305 -j ACCEPT
iptables -A OUTPUT -p udp --dport 4305 -j ACCEPT
it still gives me the same error saying the socket cannot connect.any way for me to scan that udp port, see what is blocking it and open the thing up ?
interesting result, netstat says the only 2 things listening are batmand, the BATMAN daemon which does the mesh networking. using fuser shows no output.
is it possible the two are interfering with each other ? heres an extract of what happens when i try to tell BATMAN to scan for neighboring nodes
Quote:
root@fit-4:/home/fit# batmand -d 1 wlan0
Deleting default route via unknown (table 67)
Deleting default route via unknown (table 67)
Error - can't bind send socket: Address already in use
Interface deactivated: wlan0
Not using interface wlan0 (retrying later): interface not active
B.A.T.M.A.N. 0.3.1 (compatibility version 5)
debug level: 1
BOD
Originator (#/255) Nexthop [outgoingIF]: Potential nexthops ... [B.A.T.M.A.N. 0.3.1, MainIF/IP: wlan0/192.168.10.10, UT: 0d 0h 0m]
No batman nodes in range ...
EOD
BOD
Originator (#/255) Nexthop [outgoingIF]: Potential nexthops ... [B.A.T.M.A.N. 0.3.1, MainIF/IP: wlan0/192.168.10.10, UT: 0d 0h 0m]
No batman nodes in range ...
EOD
and it goes on.
Last edited by WhiskeyTangoFoxtrot; 02-23-2009 at 02:24 PM.
I don't know how batman works, but you can try to stop/kill batmand before running the "batmand -d 1 wlan0" command. This way when you run the above command it will not complain and will start listening on udp port 4305. The batmand pid is 3470, thus you can also use:
interesting suggestion bathory, it doesnt seem to give me the socket error anymore when I try scanning for nearby mesh nodes. will get to the lab ASAP and test it out with the other nodes and post back on results.
thanks again.
Update:Success. Thanks to both of you guys.What i needed was :
netstat -unapl|grep 4305
based on the output i simply did:
kill -9 <whatever number was given by prev step>
Last edited by WhiskeyTangoFoxtrot; 03-03-2009 at 01:28 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.