Bryan Boreham
8feddc96ed
Merge remote-tracking branch 'upstream/master'
2014-10-07 13:18:34 +01:00
Bryan Boreham
ff6f54488f
Tidy up
2014-10-07 13:18:07 +01:00
Michael Bridgen
e8e86dadc0
Changed to accept a CIDR address and use net.IP
...
* In general we'll have an IP address and a subnet mask for the weave
network address; account for this in the zone DB and in the HTTP
server.
* Use the net.IP type rather than string, which gives us a bit more
generality (in theory it'll deal with Ipv6 too) and validation (we
attempt to parse the input)
2014-10-07 12:49:52 +01:00
Bryan Boreham
a545d2738c
Move timeout to incoming queries
2014-10-07 12:47:18 +01:00
Michael Bridgen
e7ac6dafb3
Made the weave-local domain "weave" a constant
...
Plus some logging on startup
2014-10-07 12:46:59 +01:00
Bryan Boreham
2cab8415f2
Tidy up slightly
2014-10-07 12:10:19 +01:00
Bryan Boreham
a78766524b
Time out mDNS queries
2014-10-07 11:48:56 +01:00
David Wragg
c4c06a2dc0
Don't use /tmp for big files
...
/tmp is on tmpfs on some systems, so it's better to use /var/tmp
for large files.
2014-10-06 19:35:24 +01:00
David Wragg
89fa310c00
Provide a way to bypass the use of sudo
...
It's not necessary to be root to run "docker" commands, if your
user is in the "docker" group.
2014-10-06 19:34:12 +01:00
Bryan Boreham
2d142abd3e
Close channel
2014-10-06 17:57:35 +01:00
Bryan Boreham
574bc2cb9e
Refactor MDNSClient as Actor
2014-10-06 17:56:50 +01:00
Bryan Boreham
69c415741e
Take interface name as parameter; don't assume ethwe
2014-10-06 13:37:09 +01:00
Bryan Boreham
710fb135a6
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
dns/Dockerfile
2014-10-06 10:28:34 +01:00
Bryan Boreham
88618b38de
Make container start automatically
2014-10-06 07:36:18 +01:00
Bryan Boreham
61969ae92c
Wait for interface
2014-10-06 07:35:21 +01:00
Michael Bridgen
bc5bbd349a
Fix up Makefile and main.go for file moves
2014-10-04 15:23:32 +01:00
Michael Bridgen
3976e5ceaf
Moved main to top, libs to subpackage
2014-10-04 14:51:46 +01:00
Michael Bridgen
1ff9f7e9b7
Reformed Dockerfile and Makefile to account for moves
2014-10-03 21:01:45 +01:00
Michael Bridgen
9dcb7e2d73
Separated dockerising from code
2014-10-03 20:55:53 +01:00
Michael Bridgen
59b1db76c8
Added Makefile and updated Dockerfile
...
The Dockerfile is now more like the weave one, with a scratch layer
underneath.
Makefile taken more or less from weave, too; except, it uses
environment variables to cross-compile the binary (which should
probably be done for weave as well)
2014-10-03 20:08:32 +01:00
Bryan Boreham
d29781f9c2
One fewer Println
2014-10-03 16:43:33 +01:00
Bryan Boreham
c3f4c1a85f
Cleaner handling of our own multicast queries
2014-10-03 16:42:02 +01:00
Bryan Boreham
eedb6a1c30
Add command-line flag to use a different port
2014-10-03 14:12:16 +01:00
Bryan Boreham
dcb89369c3
Usability improvements
2014-10-03 13:50:12 +01:00
Bryan Boreham
f309afcd18
Fix port to listen on, and add simple Dockerfile
2014-10-02 18:07:09 +01:00
Bryan Boreham
953a577ba2
Add multicast
2014-10-02 18:06:16 +01:00
Bryan Boreham
b49eb5c2ac
Extract makeDNSReply function
2014-10-02 16:12:10 +01:00
Bryan Boreham
673b420afa
Ignore Emacs backup files
2014-10-02 15:01:35 +01:00
Bryan Boreham
0c4b5105fc
Added multicast DNS client
2014-10-02 15:01:14 +01:00
Bryan Boreham
b87a4efff7
Pass zone by pointer not value in match()
2014-10-02 14:20:41 +01:00
Bryan Boreham
dddb542a83
go fmt
2014-10-02 14:19:47 +01:00
Bryan Boreham
f17c684cc9
Only send response if we have one
2014-10-01 14:59:38 +01:00
Bryan Boreham
721038cbef
gofmt
2014-10-01 14:59:07 +01:00
Bryan Boreham
10421b501c
Sanity-check request
2014-10-01 14:52:29 +01:00
Bryan Boreham
2039ede511
gofmt
2014-10-01 14:52:02 +01:00
Matthias Radestock
e7e7de2173
check whether a container has died with docker rather than ps
...
since that means one less dependency on running 'weave' in the same
namespace as docker
2014-09-30 17:31:47 +01:00
Michael Bridgen
7c4e4c8716
Rearranged files to live in GOPATH properly
2014-09-30 16:52:46 +01:00
Matthias Radestock
9b14f0b507
Merge branch '94_iptables_for_ufw'
...
Fixes #94
2014-09-30 16:12:35 +01:00
Matthias Radestock
f4a5012dc7
refactor: keep bridge name abstract
2014-09-30 16:11:29 +01:00
Matthias Radestock
4d5faafd0c
refactor: order functions by dependency
2014-09-30 16:09:56 +01:00
Bryan Boreham
a09a229b44
Improve robustness
2014-09-30 16:02:06 +01:00
Bryan Boreham
c3fdee766f
Add iptables rule to forward traffic across the bridge, to avoid ufw blocking it
2014-09-30 15:24:30 +01:00
Bryan Boreham
a31d8c4d80
Refactor add_nat_rule into add_iptables_rule that is more general
2014-09-30 15:23:23 +01:00
rade
ab7b986fe1
Merge pull request #95 from squaremo/gopath-instructions
...
Cloning instructions
2014-09-30 15:14:33 +01:00
Michael Bridgen
68c6ba7203
Simplified cloning instructions
...
The package name and directory to clone into are almost the same.
(The previous revision also neglected to tell you to cd into the repo
dir)
2014-09-30 14:51:16 +01:00
Michael Bridgen
b3536859d2
Included where to put the repo in the instructions
...
Just in case, like me, the person following the instructions does not
know go all that well. You can make it work without doing things
exactly this way, but you may not get what you expect (because it
might, for example, fetch the weave code from github instead of using
the directory you're in).
2014-09-30 14:39:46 +01:00
Matthias Radestock
393b5cd459
automatically fetch dependencies
2014-09-30 13:13:41 +01:00
Bryan Boreham
4145528e24
Merge pull request #92 from dpw/87_multicast_route
...
Route multicast packets across the weave network
2014-09-30 12:50:47 +01:00
Michael Bridgen
2041f18fa1
About the noddiest thing that works.
2014-09-29 16:35:45 +01:00
Michael Bridgen
56a6ea6015
Initial commit
2014-09-29 16:34:39 +01:00