alfred - one gateway - multiple interfaces
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hello list,
running here 3 gateways serving two communities. Nearly everything is duplicated/separated logically: fastd, bridges, routing tables, batman domains, etc.
Operating System is currently Ubuntu 14.04.
alfred:
Installed: 2014.1.0-1
Candidate: 2014.1.0-1
Version table:
*** 2014.1.0-1 0
500 http://apt.rfc2324.org/debian/ wheezy/main amd64 Packages 100 /var/lib/dpkg/status
Guess what: We have the requirement to run one alfred instance for each batman domain. What is the suggested way to achieve this? For instance, I assume that this isn't intended by design because /etc/default/alfred in conjunction with the init script aren't multiple interface aware.
- From our POV the preferred solution for this would be to patch the init script in order to support multiple interfaces by reading this from /etc/default/alfred, like:
INTERFACES="bridge_one bridge_two"
BATMANIFS="bat_one bat_two"
Just to fork multiple separated processes.
Maybe this is solved elsewhere and we didn't get it, yet.
Please give us your thoughts and hopefully a solution to this issue.
Regards,
Tobias Hachmer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQIcBAEBCgAGBQJT0AuvAAoJEHXGlTiIv2V4QPUP/13h9qrMX79NMUBbIDnLGt41 b1tViUzs1v8zGeYfshgER4cTNk1j7B1iikjCchojxwhGdZpXh5CuWaTzJnbSVBjA 5SxSKsRdhVetp3EBErhezhv4jW1E7QlzjIQ9BW/kBV7bxyMxvaYhn6sfTlviCH2h WTYNxtU0ACxVJ63h8c720qneTkiS8O+SGLUHSxy7v8BuCRRTJtiMBYJf3zv7jJ2D 0Zskla7ASW9leWkMgescjcYL4c2m3N+BR1m01tML5C3En49NVddAEawwcoU/RTmR WH8NdRTG/SExwZqWGiya+wIvORsAqMZTmgjAqoAJsX5MbK9vzuOqQQv0VVxCerr/ r+l9mtOGluzLr5hMB4/1rpvAdd1VH5xlqtu9UArTJWANFStMQCr70g/jMknghkhj aUjo8Qg6hunP6y7npWFQmv/TR6fEF9BNETHIeGDVvUh5SvwtEIzg6PjbEU3poRKK h64fRdqdSe0UEuiC6fiaMWE+ryke3Mf2lPTJUsjrnOerwS4QCctL0MHsuuEtmJlv OVlfRWWAWJHcf9/oykGIpwmxgTbeLqoAn9fOZVab4o3yHkeELJlTHX3pK7F7jxzw 1Y1yk8fxxE5cx/7BHkQsDOubzZyrr5gt3uh66YbtYuwO5Envh7GxhzLBvzQJn+MD QjGkA6b7zn4g/+g5jnO2
=YiHt
-----END PGP SIGNATURE-----
Quoted 6 lines · Tobias Hachmer
Hello list,
running here 3 gateways serving two communities. Nearly everything is duplicated/separated logically: fastd, bridges, routing tables, batman domains, etc.
Quoted 8 lines
Operating System is currently Ubuntu 14.04.
alfred: Installed: 2014.1.0-1 Candidate: 2014.1.0-1 Version table:
*** 2014.1.0-1 0 500 http://apt.rfc2324.org/debian/ wheezy/main amd64 Packages 100/var/lib/dpkg/statusGuess what: We have the requirement to run one alfred instance for each batman domain. What is the suggested way to achieve this?
a tangential question:
given you have a big enough hardware (since you mention ubuntu 14.04) have you considered turning it into a "hardnode" and using any kind of virtualization technology? openvz, lxc...
it would help with isolation and simplify things in the long run (including having two alfred instances)
cheers!
gui
Quoted 19 lines
For instance, I assume that this isn't intended by design because
/etc/default/alfredin conjunction with the init script aren't multiple interface aware.From our POV the preferred solution for this would be to patch the init script in order to support multiple interfaces by reading this from
/etc/default/alfred, like:INTERFACES="bridge_one
bridge_two" BATMANIFS="bat_onebat_two"Just to fork multiple separated processes.
Maybe this is solved elsewhere and we didn't get it, yet.
Please give us your thoughts and hopefully a solution to this issue.
Regards, Tobias Hachmer
Hallo Gui,
thanks for your reply.
Quoted 4 lines · Gui Iribarren
Quoted 2 lines · Tobias Hachmer
Guess what: We have the requirement to run one alfred instance for each batman domain. What is the suggested way to achieve this?
Quoted 8 lines
a tangential question:
given you have a big enough hardware (since you mention ubuntu 14.04) have you considered turning it into a "hardnode" and using any kind of virtualization technology? openvz, lxc...
it would help with isolation and simplify things in the long run (including having two alfred instances)
Yeah, this could be an approach later. But for now our gates are either a VM or just small hardware (Atom). But I don't want to discuss this here.
It is possible to create multiple batman interfaces wich are serving different domains. Corollary, alfred has to also.
As I said, a workaround could be to just simply duplicate the init script (adjusting all relevant names like pid and so on, of course).
But there could be more communities out there which will stumble over the same issue, sooner or later. So I just wanted the developer to know, that there is such a requirement.
And, maybe, this could be achieved in a way we don't know about? Anybody here?
Greetings,
Tobias
Hey Tobias,
thank you very much for stating your requirement - even if that it's not implemented yet, maybe there are people out there who want that too and can help implenting it. It shouldn't be too hard ...
Quoted 2 lines
As I said, a workaround could be to just simply duplicate the init script (adjusting all relevant names like pid and so on, of course).
I'd like to point out that you'd also need to add an option in alfred and its clients to duplicate the unix socket used to communicate between alfred clients and the server - currently that is hardcoded:
#define ALFRED_SOCK_PATH "/var/run/alfred.sock"
Quoted 7 lines
But there could be more communities out there which will stumble over the same issue, sooner or later. So I just wanted the developer to know, that there is such a requirement.
And, maybe, this could be achieved in a way we don't know about? Anybody here?
In any case, if someone wants to work on that, patches are welcome :)
Cheers,
Simon
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hello Simon,
Quoted 10 lines · Simon Wunderlich
Quoted 3 lines
As I said, a workaround could be to just simply duplicate the init script (adjusting all relevant names like pid and so on, of course).
I'd like to point out that you'd also need to add an option in alfred and its clients to duplicate the unix socket used to communicate between alfred clients and the server - currently that is hardcoded:
#define
ALFRED_SOCK_PATH"/var/run/alfred.sock"
Bad news, would be great if an alfred developer could make this configurable passing a socket option to the daemon.
I'm not a programmer, so would be great if someone could help us out.
Regards, Tobias
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQIcBAEBCgAGBQJT0UaNAAoJEHXGlTiIv2V4NTgP+QH3VhxUz4xx4cAPQbJfSOBn mrfAVWe/3AiOYOuk/b1cvzQeQH7Ae/i5a/JpOChP8t6T/p2V6PMCLlw2PfUJdLCz /D+CqhwCRNCRi5zAINIrrhD5sQDiFe+L5owvicZ5Uy6qOIrqReYLgJ2Wh/5rSRsV QSAWdxsMSuHbuwzvylfWwg1NsUs0YsFtdTE3n7Uo+xTs+I7b01rbbnHnC4Hj1JKG 3up0e9bwtp6UQO4EH1hmfiz597/LvP+3b4ojwAYXyHtm2ObxaBWMfm02drWfXKyW uk2jV3qOBaWps22go3h08VV/dXehTTt7uGF68rVFj+/s7F4IrenfGPcMWvaGk+et DjcLZvTf7noC9miSFxVZR05UrY7w2uDqyGQ0lCtEJbHs+wSD3Pa4f9xZeUEZOHeL QK7ZWf+3qO0ey8jQ8cde8AR8O0EhYOIuih+nnJGEuK+zU3vELnqbD7Bs80DqjFSR yoK3PKiMe80E3Nux93BbF4UDDWzCqPA/JtSzE9cdsQVBjQpbAuCY2BrRzFGxrg/h VI/EouXu/qk8gzDDxkykgWrXggNCLkvL9Q1waePe2/7HTTHqs3fwZ+NqXIJzfUP8 Dc9EVu0maidfTH8UZkPJTLkFRr6l8pEoM4c3UKNbFZ2EpG27Ky5vFQtpfho9/mNo nzSiALthFbfxauZXRMGD
=2Gnv
-----END PGP SIGNATURE-----