mirror of https://github.com/dswd/vpncloud.git
Ready to release 0.3
This commit is contained in:
parent
d8276fad58
commit
6be85ea1cb
|
@ -3,7 +3,7 @@ name = "vpncloud"
|
||||||
version = "0.3.0"
|
version = "0.3.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"aligned_alloc 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
"aligned_alloc 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"docopt 0.6.76 (registry+https://github.com/rust-lang/crates.io-index)",
|
"docopt 0.6.78 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"epoll 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
"epoll 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gcc 0.3.20 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gcc 0.3.20 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"libc 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
"libc 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -26,7 +26,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "aho-corasick"
|
name = "aho-corasick"
|
||||||
version = "0.3.4"
|
version = "0.4.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"memchr 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",
|
"memchr 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -49,10 +49,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "docopt"
|
name = "docopt"
|
||||||
version = "0.6.76"
|
version = "0.6.78"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"regex 0.1.41 (registry+https://github.com/rust-lang/crates.io-index)",
|
"regex 0.1.43 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"rustc-serialize 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)",
|
"rustc-serialize 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"strsim 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"strsim 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
]
|
]
|
||||||
|
@ -145,10 +145,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "regex"
|
name = "regex"
|
||||||
version = "0.1.41"
|
version = "0.1.43"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"aho-corasick 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
"aho-corasick 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"memchr 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",
|
"memchr 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"regex-syntax 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
"regex-syntax 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
]
|
]
|
||||||
|
|
|
@ -26,7 +26,7 @@ This is what works:
|
||||||
|
|
||||||
* Setting up tunnels between two networks via Ethernet (TAP) and IP (TUN)
|
* Setting up tunnels between two networks via Ethernet (TAP) and IP (TUN)
|
||||||
* Connecting multiple networks with multiple forwarding behaviors (Hub, Switch, Router)
|
* Connecting multiple networks with multiple forwarding behaviors (Hub, Switch, Router)
|
||||||
* Encrypted connections using *libsodium*
|
* Encrypted connections using [libsodium](https://github.com/jedisct1/libsodium)
|
||||||
* Automatic peer-to-peer meshing
|
* Automatic peer-to-peer meshing
|
||||||
* NAT and (limited) firewall traversal using hole punching
|
* NAT and (limited) firewall traversal using hole punching
|
||||||
* Automatic reconnecting when connections are lost
|
* Automatic reconnecting when connections are lost
|
||||||
|
|
12
deb/Makefile
12
deb/Makefile
|
@ -6,10 +6,20 @@ default: clean build
|
||||||
|
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
build: $(PACKAGE)_*.deb
|
build: $(PACKAGE)_*.deb
|
||||||
$(PACKAGE)_*.deb:
|
$(PACKAGE)_*.deb: $(PACKAGE)/vpncloud.1.ronn $(PACKAGE)/vpncloud
|
||||||
(cd $(PACKAGE); make clean; debuild -b -us -uc; cd ..)
|
(cd $(PACKAGE); make clean; debuild -b -us -uc; cd ..)
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
(cd $(PACKAGE); debuild clean; cd ..)
|
(cd $(PACKAGE); debuild clean; cd ..)
|
||||||
rm -rf $(PACKAGE)_*
|
rm -rf $(PACKAGE)_*
|
||||||
|
rm ../target/release/vpncloud
|
||||||
|
|
||||||
|
$(PACKAGE)/vpncloud.1.ronn: ../vpncloud.md
|
||||||
|
cp ../vpncloud.md $(PACKAGE)/vpncloud.1.ronn
|
||||||
|
|
||||||
|
$(PACKAGE)/vpncloud: ../target/release/vpncloud
|
||||||
|
cp ../target/release/vpncloud $(PACKAGE)/vpncloud
|
||||||
|
|
||||||
|
../target/release/vpncloud: ../src/*.rs ../Cargo.toml
|
||||||
|
(cd ..; cargo build --release)
|
||||||
|
|
|
@ -1,20 +1,8 @@
|
||||||
build: vpncloud.1 vpncloud
|
build: vpncloud.1
|
||||||
|
|
||||||
vpncloud.1: vpncloud.1.ronn
|
vpncloud.1: vpncloud.1.ronn
|
||||||
ronn -r vpncloud.1.ronn
|
ronn -r vpncloud.1.ronn
|
||||||
|
|
||||||
vpncloud.1.ronn: ../../vpncloud.md
|
|
||||||
cp ../../vpncloud.md vpncloud.1.ronn
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -f vpncloud.1* vpncloud ../../target/release/vpncloud
|
|
||||||
|
|
||||||
vpncloud: ../../target/release/vpncloud
|
|
||||||
cp ../../target/release/vpncloud vpncloud
|
|
||||||
|
|
||||||
../../target/release/vpncloud: ../../src/*.rs ../../Cargo.toml ../../src/usage.txt ../../src/c/*
|
|
||||||
(cd ../..; cargo build --release)
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
install -d $(DESTDIR)/usr/bin
|
install -d $(DESTDIR)/usr/bin
|
||||||
install -m 755 vpncloud $(DESTDIR)/usr/bin/vpncloud
|
install -m 755 vpncloud $(DESTDIR)/usr/bin/vpncloud
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
vpncloud (0.3.0) stable; urgency=medium
|
||||||
|
|
||||||
|
* Inluding libsodium-1.0.7
|
||||||
|
* Support for AES256
|
||||||
|
|
||||||
|
-- Dennis Schwerdel <schwerdel@informatik.uni-kl.de> Tue, 01 Dec 2015 16:12:16 +0100
|
||||||
|
|
||||||
vpncloud (0.2.0) stable; urgency=medium
|
vpncloud (0.2.0) stable; urgency=medium
|
||||||
|
|
||||||
* More stable release
|
* More stable release
|
||||||
|
|
|
@ -220,12 +220,10 @@ impl<P: Protocol> GenericCloud<P> {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn handle_net_message(&mut self, peer: SocketAddr, options: Options, msg: Message) -> Result<(), Error> {
|
fn handle_net_message(&mut self, peer: SocketAddr, options: Options, msg: Message) -> Result<(), Error> {
|
||||||
if let Some(id) = self.options.network_id {
|
if self.options.network_id != options.network_id {
|
||||||
if options.network_id != Some(id) {
|
|
||||||
info!("Ignoring message from {} with wrong token {:?}", peer, options.network_id);
|
info!("Ignoring message from {} with wrong token {:?}", peer, options.network_id);
|
||||||
return Err(Error::WrongNetwork(options.network_id));
|
return Err(Error::WrongNetwork(options.network_id));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
debug!("Received {:?} from {}", msg, peer);
|
debug!("Received {:?} from {}", msg, peer);
|
||||||
match msg {
|
match msg {
|
||||||
Message::Data(payload) => {
|
Message::Data(payload) => {
|
||||||
|
|
Loading…
Reference in New Issue