angt
|
6095cc021a
|
Include missing uio.h in tun.c
|
2015-11-16 16:08:44 +01:00 |
|
angt
|
2ad21e9375
|
Include missing ip-static.h in tun.c
|
2015-11-16 16:05:05 +01:00 |
|
angt
|
21ae1f34c3
|
Add common.c
|
2015-11-16 16:00:33 +01:00 |
|
angt
|
a8ebefbef3
|
Add tun.[ch]
|
2015-11-16 15:44:16 +01:00 |
|
angt
|
14c0c2edb1
|
Add ip-static.h
|
2015-11-16 12:53:47 +01:00 |
|
angt
|
b8148600f2
|
Add keepalive option
|
2015-11-16 11:44:28 +01:00 |
|
angt
|
164c32c23c
|
Code cleanup
|
2015-11-16 11:42:53 +01:00 |
|
angt
|
a5e415736d
|
Merge pull request #7 from jedisct1/keepalive
Set `SO_KEEPALIVE` on the socket
|
2015-11-16 10:50:50 +01:00 |
|
angt
|
0359c21643
|
Merge pull request #6 from jedisct1/dd
Use /dev/urandom
|
2015-11-16 10:50:39 +01:00 |
|
angt
|
725a8e2fd0
|
Merge pull request #5 from jedisct1/bsd-osx
Complete support for OSX & BSD
|
2015-11-16 10:50:22 +01:00 |
|
angt
|
4944e76f97
|
Fix last commit
|
2015-11-15 18:38:43 +01:00 |
|
angt
|
5865e61fd2
|
Use select() in the main loop (macos is full of sh!t)
|
2015-11-15 18:23:29 +01:00 |
|
angt
|
8855ce75fc
|
Code cleanup
|
2015-11-15 17:42:18 +01:00 |
|
angt
|
3e1809a608
|
Version 0.0.2
|
2015-11-15 16:27:03 +01:00 |
|
angt
|
04370f0aa0
|
Code cleanup
|
2015-11-15 10:51:28 +01:00 |
|
angt
|
e2a6aeced7
|
Be more paranoid: generate 2 keys
|
2015-11-13 17:57:21 +01:00 |
|
angt
|
ef0561764f
|
Add debug option
|
2015-11-13 11:49:44 +01:00 |
|
angt
|
1f2f697946
|
Update README.md
|
2015-11-12 16:18:44 +01:00 |
|
angt
|
b21e4ecea9
|
Update README.md
|
2015-11-12 16:07:23 +01:00 |
|
angt
|
44e61295e5
|
Update .gitignore
|
2015-11-11 14:09:27 +01:00 |
|
angt
|
78713006b8
|
Do not poll forever in fd_*_all()
|
2015-11-11 10:42:03 +01:00 |
|
angt
|
a744de7ef2
|
Fix option_usage()
|
2015-11-11 10:31:15 +01:00 |
|
angt
|
eb3dd064cf
|
Enable nodelay by default
|
2015-11-11 09:56:27 +01:00 |
|
angt
|
3a7ba82d59
|
Update configure.ac
|
2015-11-11 09:36:19 +01:00 |
|
angt
|
9cf4c97468
|
Move code in src
|
2015-11-11 09:14:35 +01:00 |
|
angt
|
e122d76a32
|
Code cleanup
|
2015-11-10 21:51:02 +01:00 |
|
angt
|
e9cad43bee
|
Simplify dump_ip_header()
|
2015-11-10 21:50:31 +01:00 |
|
angt
|
b686dd845c
|
Dump ip header when something looks wrong
|
2015-11-10 17:28:44 +01:00 |
|
angt
|
ff8372c70e
|
Hash public data with skey and check it
|
2015-11-09 21:31:44 +01:00 |
|
angt
|
8fb452de82
|
Warn if IFF_MULTI_QUEUE is not supported
|
2015-11-09 12:47:04 +01:00 |
|
angt
|
aee6a48da4
|
Warn if TCP_CONGESTION is not supported
|
2015-11-09 12:36:53 +01:00 |
|
angt
|
a406fb6096
|
Add the multiqueue option
|
2015-11-09 12:33:35 +01:00 |
|
angt
|
55275038c3
|
Add the nodelay option to disable nagle
|
2015-11-09 12:22:30 +01:00 |
|
angt
|
8c441b1221
|
Fix option_usage()
|
2015-11-09 10:24:52 +01:00 |
|
angt
|
df8a199bee
|
Add the keyfile option to load a secret key
|
2015-11-09 10:10:29 +01:00 |
|
angt
|
3a64658eaf
|
Do not allow the same option multiple times
|
2015-11-09 08:58:57 +01:00 |
|
angt
|
f7db7e0c45
|
Use gettimeofday() instead of clock_gettime()
|
2015-11-09 08:47:56 +01:00 |
|
angt
|
228b633183
|
Set glorytun_CFLAGS instead of CFLAGS
|
2015-11-09 08:40:11 +01:00 |
|
angt
|
b836f8f5e5
|
Fix Makefile.am
|
2015-11-09 06:51:53 +01:00 |
|
angt
|
e2150df5da
|
Add option.[ch]
|
2015-11-09 06:47:33 +01:00 |
|
angt
|
8d08d74b95
|
Merge pull request #3 from jedisct1/travis
Test under Linux and OSX, with gcc and clang
|
2015-11-09 06:26:45 +01:00 |
|
angt
|
399529eb86
|
Update .travis.yml
|
2015-11-08 23:23:28 +01:00 |
|
angt
|
f72063b650
|
TravisCI use autotools version 2.68
|
2015-11-08 18:40:27 +01:00 |
|
angt
|
f45aa3dc58
|
Update .gitignore
|
2015-11-08 18:20:13 +01:00 |
|
angt
|
14e3c892ba
|
Add minimal .travis.yml
|
2015-11-08 18:09:11 +01:00 |
|
angt
|
09a27fa817
|
Print usage when an unknown option is present
|
2015-11-08 17:05:17 +01:00 |
|
angt
|
5bf8e8ea5e
|
Merge pull request #2 from jedisct1/sad
Don't expect TCP_INFO and clock_gettime() to be portable
|
2015-11-07 23:38:37 +01:00 |
|
angt
|
62980c97a3
|
Show TCP_INFO
|
2015-11-07 13:06:18 +01:00 |
|
angt
|
6ed8c3a034
|
Code cleanup
|
2015-11-06 19:12:14 +01:00 |
|
angt
|
f53c78f861
|
Use xored random data in the hash
|
2015-11-06 18:59:39 +01:00 |
|
angt
|
98331d8b7c
|
Keep last return from fd_{read,write} in netio
|
2015-11-06 17:54:59 +01:00 |
|
angt
|
91535db6f1
|
Be more verbose
|
2015-11-06 17:44:50 +01:00 |
|
angt
|
408aa4bb3d
|
Add str_cat()
|
2015-11-06 17:43:30 +01:00 |
|
angt
|
03de613f0a
|
Use libsodium in PKG_CHECK_MODULES
|
2015-11-05 11:12:19 +01:00 |
|
angt
|
1c31500018
|
Warn in stderr and do not use gai_strerror()
|
2015-11-04 13:06:50 +01:00 |
|
angt
|
5f269ec870
|
Update README.md
|
2015-11-03 18:23:34 +01:00 |
|
angt
|
8b51e4613c
|
Add option version
|
2015-11-03 18:03:34 +01:00 |
|
angt
|
2905943105
|
Add URLs
|
2015-11-03 18:03:06 +01:00 |
|
angt
|
24e3ad3f18
|
Init sodium and check for AES after option()
|
2015-11-03 17:47:33 +01:00 |
|
angt
|
9e83f58139
|
Use autotools
|
2015-11-03 17:12:18 +01:00 |
|
angt
|
8e9e5d8e91
|
Call poll() only when it's needed in fd_{read,write}_all()
|
2015-11-02 12:44:57 +01:00 |
|
angt
|
4740089f81
|
Code cleanup
|
2015-11-01 19:19:00 +01:00 |
|
angt
|
5951a560af
|
Be nice with the CPU in fd_{read,write}_all()
|
2015-11-01 19:16:51 +01:00 |
|
angt
|
b77fd86f2a
|
Warn if decrypt_packet() fail
|
2015-10-31 22:37:17 +01:00 |
|
angt
|
1b3c23889a
|
Do not use the shared secret as AES key directly
|
2015-10-31 22:03:47 +01:00 |
|
angt
|
0aeab9a33b
|
Add a very simple encryption layer for testing
|
2015-10-31 21:30:51 +01:00 |
|
angt
|
a25ac267d3
|
Update Makefile
|
2015-10-30 17:22:34 +01:00 |
|
angt
|
13086a0f88
|
Fix typo
|
2015-10-30 16:47:14 +01:00 |
|
angt
|
1722b5e05f
|
Add a more generic option system
|
2015-10-30 16:34:41 +01:00 |
|
angt
|
c9dca9269f
|
Do not use writev() for now
|
2015-10-29 18:18:52 +01:00 |
|
angt
|
0957a0c341
|
Rewrite the ip size directly in the packet
|
2015-10-29 11:57:32 +01:00 |
|
angt
|
8a7fedcb7a
|
Stop reading if no more space...
|
2015-10-28 17:14:47 +01:00 |
|
angt
|
504df2e318
|
Make GCC happy
|
2015-10-28 16:27:55 +01:00 |
|
angt
|
cf1ccba57f
|
Wait after a failed connect
|
2015-10-28 08:17:49 +01:00 |
|
angt
|
b480a6eac3
|
Do not format buffer on restart
|
2015-10-27 20:11:11 +01:00 |
|
angt
|
e48333d955
|
Use writev to write in tun
|
2015-10-27 12:55:41 +01:00 |
|
angt
|
575796fc6f
|
Add get_ip_size() and cleanup
|
2015-10-26 15:59:02 +01:00 |
|
angt
|
b82f2fd0da
|
Fix poll
|
2015-10-26 10:45:09 +01:00 |
|
angt
|
2eece5ab15
|
Update Makefile
|
2015-10-25 15:58:02 +01:00 |
|
angt
|
c6d8ad288e
|
Update .gitignore
|
2015-10-25 13:14:58 +01:00 |
|
angt
|
29b0924db6
|
Do not force c99
|
2015-10-25 13:12:59 +01:00 |
|
angt
|
fa026aa36d
|
Code cleanup
|
2015-10-24 22:46:51 +02:00 |
|
angt
|
1e7db434e7
|
Update Makefile
|
2015-10-24 19:38:51 +02:00 |
|
angt
|
4b5c774593
|
Use common-static.h
|
2015-10-24 15:59:52 +02:00 |
|
angt
|
b3647c507a
|
Add common-static.h
|
2015-10-24 15:30:35 +02:00 |
|
angt
|
b01502a115
|
Set AI_PASSIVE only for listener
|
2015-10-24 12:12:09 +02:00 |
|
angt
|
7f7e2a7723
|
Code cleanup
|
2015-10-24 11:18:25 +02:00 |
|
angt
|
4f4b64bffd
|
Code cleanup
|
2015-10-24 11:04:11 +02:00 |
|
angt
|
582c9a9ee7
|
Use fcntl(O_NONBLOCK) instead of old FIONBIO and set tun.fd to be non-blocking
|
2015-10-24 11:01:37 +02:00 |
|
angt
|
6ba1ed89b8
|
Update LICENSE
|
2015-10-22 21:49:10 +02:00 |
|
angt
|
7bce8aad83
|
Do not use gnu %m
|
2015-10-22 17:28:10 +02:00 |
|
angt
|
822dd459d8
|
Merge pull request #1 from jedisct1/linuxisms
Ditch Linuxisms
|
2015-10-22 17:13:21 +02:00 |
|
angt
|
7fb0e3f97d
|
Code cleanup
|
2015-10-22 16:26:12 +02:00 |
|
angt
|
f8484777b3
|
Add congestion
|
2015-10-22 11:12:14 +02:00 |
|
angt
|
4d98a16579
|
Setup fd for perf and always reconnect
|
2015-10-22 10:47:04 +02:00 |
|
angt
|
692a1c3c55
|
Warn and quit if an option is unknown
|
2015-10-22 00:46:02 +02:00 |
|
angt
|
69a3414e76
|
Drop bad packets
|
2015-10-22 00:37:35 +02:00 |
|
angt
|
6ad9807f9d
|
First draft of a stupid and slow tunnel
|
2015-10-21 22:56:10 +02:00 |
|
angt
|
a16215e099
|
Set SO_REUSEADDR on listener
|
2015-10-21 18:14:53 +02:00 |
|
angt
|
ae7f1aa941
|
Try to be a nice guy, even if it is a PoC
|
2015-10-21 12:32:53 +02:00 |
|