Commit graph

316 commits

Author SHA1 Message Date
Erik Ekman 9e265625a1 Fix authentication bypass bug
The client could bypass the password check by continuing after getting error
from the server and guessing the network parameters. The server would still
accept the rest of the setup and also network traffic.

Add checks for normal and raw mode that user has authenticated before allowing
any other communication.

Problem found by Oscar Reparaz.

Backported to iodine 0.6 branch.
2014-06-17 18:59:06 +02:00
Erik Ekman 859b019d65 Update version to 0.6.0-rc1 2010-02-13 14:38:32 +00:00
Erik Ekman a4f41b7db3 #89, use remote ip as second ip in ifconfig on FreeBSD 2010-02-08 16:50:45 +00:00
Erik Ekman 8e5d75e426 Fix build error on windows 2010-02-08 16:13:17 +00:00
Erik Ekman dc140c8b24 Fix #86, patch from jsbid1 gmail.com 2010-02-08 16:09:45 +00:00
Erik Ekman 158a365880 Fix osx compile, maybe also OpenBSD 2009-12-29 20:25:33 +00:00
Erik Ekman 6ce502ffa4 Fix compile for win32 2009-12-29 20:14:50 +00:00
Erik Ekman 35bd6f744f Applied patch from #88, thanks a lot! 2009-12-29 20:00:57 +00:00
Erik Ekman 4d42dbd879 #82, switch to gethostbyname() for win32 support 2009-09-26 09:42:32 +00:00
Erik Ekman b23f08773a #82 update docs 2009-09-25 22:11:18 +00:00
Erik Ekman 36a25ed642 #82, fix resolving given nameserver on everything but win32 2009-09-25 21:47:14 +00:00
Erik Ekman a130abbfd9 Make sure replies with errors get the name parsed 2009-09-21 20:35:18 +00:00
Erik Ekman 3614a96417 Print DNS errors only when requested packet has an error 2009-09-21 20:06:30 +00:00
Erik Ekman b6d154938f Fix buggy set lazy mode function 2009-09-20 21:10:46 +00:00
Erik Ekman 282a508f2b #76 merge client code 2009-09-20 21:10:44 +00:00
Erik Ekman 3348a533a3 #76 merge server code 2009-09-20 21:10:41 +00:00
Erik Ekman 92ea465653 #76 merge dns and user 2009-09-20 21:10:39 +00:00
Erik Ekman eb0bf45396 #76 start merging common and docs 2009-09-20 21:10:38 +00:00
Erik Ekman ed36bbdf65 Fix mtu fragment size probing 2009-09-20 16:54:29 +00:00
Erik Ekman a5c6f93fa2 Fix data length in encoding dns queries 2009-09-20 15:41:24 +00:00
Erik Ekman 3b4560505a Remove arg to inline_dotify 2009-09-20 15:15:25 +00:00
Erik Ekman 43b4cb8bac #75, update server code 2009-09-20 15:11:16 +00:00
Erik Ekman 8c082fe853 #75, update client code 2009-09-20 15:11:15 +00:00
Erik Ekman 83dfde0728 #75, update client code 2009-09-20 15:11:14 +00:00
Erik Ekman bd4a4eb24c #75, update dns parsing 2009-09-20 15:11:12 +00:00
Erik Ekman a02f7d776f #75 add downenc per-user field 2009-09-20 15:11:08 +00:00
Erik Ekman 3b47b8ad92 #75 Add win32 defines for TXT and SRV 2009-09-20 15:11:07 +00:00
Erik Ekman b9d4b37c87 #75, add win32 defines 2009-09-20 15:11:06 +00:00
Erik Ekman 26d59a9886 #75, add txt read/write 2009-09-20 15:11:04 +00:00
Erik Ekman 1c8f6e522f #75, base32 decode uppercase 2009-09-20 15:11:03 +00:00
Erik Ekman d5deccb354 Fix FreeBSD build error, remove more includes 2009-09-20 09:09:18 +00:00
Erik Ekman 593227a20e Prune includes 2009-09-20 09:05:09 +00:00
Erik Ekman 2c3fdf3346 Fix OpenBSD build error 2009-09-20 09:01:47 +00:00
Erik Ekman 34c69866c9 Added new test, found and fixed an actual bug 2009-09-20 08:43:49 +00:00
Erik Ekman 94f1d670d4 Refactored to make it easier to add unit tests 2009-09-20 08:43:48 +00:00
Erik Ekman 7ca260c319 #79 Fix build error on OSX 10.6 by Guillaume Rischard 2009-09-19 08:32:57 +00:00
Erik Ekman bcd7c1c15c #78, print server tunnel ip 2009-09-19 08:24:59 +00:00
Erik Ekman dfd74623a6 #77, get password from env variable 2009-09-19 08:09:12 +00:00
Erik Ekman f229342782 Fix password reading 2009-08-16 12:33:28 +00:00
Erik Ekman 0de9a49038 Split the client code out from the file with the main() func 2009-08-16 12:30:26 +00:00
Erik Ekman 021a6b5fd5 Updated docs 2009-08-15 22:02:00 +00:00
Erik Ekman 15b6d0cf21 #70 add -F option for writing pid file. Patch from misc@mandriva.org 2009-08-15 21:52:49 +00:00
Erik Ekman 8233636650 Fixes for unpacking raw packets 2009-08-15 21:46:31 +00:00
Erik Ekman 2212ceadd5 Fix win32 build error 2009-08-15 19:35:07 +00:00
Erik Ekman 0757c70ef8 Fix some uninitialized variable warnings 2009-08-15 19:28:48 +00:00
Erik Ekman 179d4c3d78 Keep user CC and CFLAGS/LDFLAGS. Patch from Victor Ostorga 2009-08-15 19:17:02 +00:00
Erik Ekman 03243094e5 #36, Send ping message every 20 seconds 2009-08-15 12:43:02 +00:00
Erik Ekman 62c171db0d #36, update printouts 2009-08-15 10:49:38 +00:00
Erik Ekman 2f75fe878a #36, Use -r to skip raw mode 2009-08-15 10:45:07 +00:00
Erik Ekman 186ba79bd1 #36, basic raw mode tunnel works 2009-08-06 20:42:26 +00:00