All of lore.kernel.org
 help / color / mirror / Atom feed
* New extension: CRYPT target
@ 2006-05-21 15:59 Gervasio Bernal
  2006-05-21 17:01 ` Carl-Daniel Hailfinger
                   ` (3 more replies)
  0 siblings, 4 replies; 25+ messages in thread
From: Gervasio Bernal @ 2006-05-21 15:59 UTC (permalink / raw)
  To: netfilter-devel

Hi all!!!

After some months of development we have finished this new extension.
CRYPT is a new target extension for Netfilter/Iptables that enables the
user to encrypt, decrypt and authenticate any IP protocol traffic using
the Linux Cryptographic API.

For example, if you want to encrypt FTP (TOP) traffic between host A and
host B, you can do as follows:

(on host A, 1.2.3.4, FTP client)
# iptables -t mangle -A POSTROUTING -d 1.2.3.5 -p tcp --dport 20:21 -j
CRYPT --cipher blowfish --key topsecret --mode ecb --direction encrypt
# iptables -t mangle -A PREROUTING -s 1.2.3.5 -p 206 -j CRYPT --cipher
3des --key topsecretkeyinascii12345 --mode cbc --direction decrypt

(on host B, 1.2.3.5, FTP server)
# iptables -t mangle -A POSTROUTING -d 1.2.3.4 -p tcp --sport 20:21 -j
CRYPT --cipher 3des --key topsecretkeyinascii12345 --mode cbc
--direction encrypt
# iptables -t mangle -A PREROUTING -s 1.2.3.4 -p 206 -j CRYPT --cipher
blowfish --key topsecret --mode ecb --direction decrypt

_Note_ the symmetry in the rules. Also note the use of protocol 206
(CRYPT_PROTOCOL) in decryption.

We hope you can test it and we are open for comments and suggestions.

--
Gervasio Bernal <gervasiobernal(at)gmail(dot)com>
Pedro Deis <pedrakos(at)gmail(dot)com>

^ permalink raw reply	[flat|nested] 25+ messages in thread
* New extension: CRYPT target
@ 2006-05-23 23:33 Gervasio Bernal
  0 siblings, 0 replies; 25+ messages in thread
From: Gervasio Bernal @ 2006-05-23 23:33 UTC (permalink / raw)
  To: netfilter

Hi all!!!

After some months of development we have finished this new extension.
CRYPT is a new target extension for Netfilter/Iptables that enables the
user to encrypt, decrypt and authenticate any IP protocol traffic using
the Linux Cryptographic API.

For example, if you want to encrypt active FTP (TCP) traffic between
host A and host B, you can do as follows:

(on host A, 1.2.3.4, FTP client)
# iptables -t mangle -A POSTROUTING -d 1.2.3.5 -p tcp --dport 20:21 -j
CRYPT --cipher blowfish --key topsecret --mode ecb --direction encrypt
# iptables -t mangle -A PREROUTING -s 1.2.3.5 -p 206 -j CRYPT --cipher
3des --key topsecretkeyinascii12345 --mode cbc --direction decrypt

(on host B, 1.2.3.5, FTP server)
# iptables -t mangle -A POSTROUTING -d 1.2.3.4 -p tcp --sport 20:21 -j
CRYPT --cipher 3des --key topsecretkeyinascii12345 --mode cbc
--direction encrypt
# iptables -t mangle -A PREROUTING -s 1.2.3.4 -p 206 -j CRYPT --cipher
blowfish --key topsecret --mode ecb --direction decrypt

_Note_ the symmetry in the rules. Also note the use of protocol 206
(CRYPT_PROTOCOL) in decryption.

You can download it from:
http://crypt.negocios-sa.com.ar

We hope you can test it and we are open for comments and suggestions.

--
Gervasio Bernal <gervasiobernal(at)gmail(dot)com>
Pedro Deis <pedrakos(at)gmail(dot)com>


^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2006-05-26 18:25 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-21 15:59 New extension: CRYPT target Gervasio Bernal
2006-05-21 17:01 ` Carl-Daniel Hailfinger
2006-05-21 21:15   ` Gervasio Bernal
2006-05-21 22:17     ` Carl-Daniel Hailfinger
2006-05-22 23:49       ` Gervasio Bernal
2006-05-23 16:27         ` Gervasio Bernal
2006-05-23 16:46           ` Carl-Daniel Hailfinger
2006-05-23 17:07             ` Patrick McHardy
2006-05-23 17:14               ` Carl-Daniel Hailfinger
2006-05-23 23:13                 ` Gervasio Bernal
2006-05-24  5:03                   ` Patrick Schaaf
2006-05-23 18:26           ` Michael Richardson
2006-05-21 22:57     ` Michael Richardson
2006-05-22 23:36       ` Gervasio Bernal
2006-05-23 13:08         ` Michael Richardson
2006-05-23 17:19           ` Gervasio Bernal
2006-05-21 17:51 ` Martijn Lievaart
2006-05-21 20:34   ` Cedric Blancher
2006-05-21 21:01   ` Gervasio Bernal
2006-05-21 22:54   ` Michael Richardson
2006-05-21 20:27 ` Gervasio Bernal
2006-05-25 16:11 ` Lennart Poettering
2006-05-26 18:12   ` Gervasio Bernal
2006-05-26 18:25     ` Patrick McHardy
  -- strict thread matches above, loose matches on Subject: below --
2006-05-23 23:33 Gervasio Bernal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.