From e7f83d7cad2d5d0dec22623e5b7b1be55357fadf Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 30 Jun 2013 12:24:39 +0200 Subject: Add a trivial netio example --- hurd/translator/netio.mdwn | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'hurd/translator') diff --git a/hurd/translator/netio.mdwn b/hurd/translator/netio.mdwn index 44c35cf1..b220a4fe 100644 --- a/hurd/translator/netio.mdwn +++ b/hurd/translator/netio.mdwn @@ -15,3 +15,10 @@ filesystem. # Source [[source_repositories/incubator]], netio/master + +# Usage: + +e.g. + +cat /tmp/netio/tcp/ftp.gnu.org/21 + -- cgit v1.2.3 From 5a04918c996e7898bbe6dbaef69630f4feb11db0 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 30 Jun 2013 12:27:55 +0200 Subject: refer to socketio --- hurd/translator/netio.mdwn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hurd/translator') diff --git a/hurd/translator/netio.mdwn b/hurd/translator/netio.mdwn index b220a4fe..12a3f55c 100644 --- a/hurd/translator/netio.mdwn +++ b/hurd/translator/netio.mdwn @@ -16,9 +16,10 @@ filesystem. [[source_repositories/incubator]], netio/master +This is supposed to be replaced by the better socketio. + # Usage: e.g. cat /tmp/netio/tcp/ftp.gnu.org/21 - -- cgit v1.2.3 From 7456c17491a18170b62f4be7114a15daaa8194d3 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 30 Jun 2013 13:26:37 +0200 Subject: Add socketio --- hurd/translator/socketio.mdwn | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 hurd/translator/socketio.mdwn (limited to 'hurd/translator') diff --git a/hurd/translator/socketio.mdwn b/hurd/translator/socketio.mdwn new file mode 100644 index 00000000..99a28416 --- /dev/null +++ b/hurd/translator/socketio.mdwn @@ -0,0 +1,25 @@ +[[!meta copyright="Copyright © 2010, 2013 Free Software Foundation, Inc."]] + +[[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable +id="license" text="Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation License, Version 1.2 or +any later version published by the Free Software Foundation; with no Invariant +Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license +is included in the section entitled [[GNU Free Documentation +License|/fdl]]."]]"""]] + +`socketio` is a translator designed for creating socket ports through the +filesystem. + + +# Source + +[[source_repositories/incubator]], socketio/master + +This is supposed to replace netio. + +# Usage: + +e.g. + +cat /tmp/socketio/tcp/ftp.gnu.org/21 -- cgit v1.2.3 From 8e114bb3aa935b5a730d3ce55547870bb0a04ae9 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 29 Jul 2013 14:08:59 +0200 Subject: Add firewalling example --- community/meetings/ghm2013.mdwn | 2 ++ hurd/translator/eth-filter.mdwn | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 hurd/translator/eth-filter.mdwn (limited to 'hurd/translator') diff --git a/community/meetings/ghm2013.mdwn b/community/meetings/ghm2013.mdwn index 4de20c3c..5390ca30 100644 --- a/community/meetings/ghm2013.mdwn +++ b/community/meetings/ghm2013.mdwn @@ -37,6 +37,8 @@ License|/fdl]]."]]"""]] - nsmux, unionmount + - eth-filter + - list of nice translators - netio/socketio - tarfs, cvsfs, xmlfs, mboxfs diff --git a/hurd/translator/eth-filter.mdwn b/hurd/translator/eth-filter.mdwn new file mode 100644 index 00000000..a026b0b9 --- /dev/null +++ b/hurd/translator/eth-filter.mdwn @@ -0,0 +1,23 @@ +[[!meta copyright="Copyright © 2013 Free Software Foundation, Inc."]] + +[[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable +id="license" text="Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation License, Version 1.2 or +any later version published by the Free Software Foundation; with no Invariant +Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license +is included in the section entitled [[GNU Free Documentation +License|/fdl]]."]]"""]] + +`eth-filter` is a translator that implements a very simple stateless firewal. + +# Source + +[[source_repositories/incubator]], dde + +# Usage: + +For instance, to drop any attempt to access port 22: + + settrans -c /dev/eth0f /hurd/eth-filter -i /dev/eth0 -r "not port 22" + + settrans /servers/socket/2 /hurd/pfinet -i /dev/eth0f ... -- cgit v1.2.3 From e855d647cbc5128c7fb6e72184ce5e79822c83be Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 28 Aug 2013 18:08:23 +0200 Subject: explain a bit more --- hurd/translator/eth-filter.mdwn | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'hurd/translator') diff --git a/hurd/translator/eth-filter.mdwn b/hurd/translator/eth-filter.mdwn index a026b0b9..36ef4217 100644 --- a/hurd/translator/eth-filter.mdwn +++ b/hurd/translator/eth-filter.mdwn @@ -20,4 +20,8 @@ For instance, to drop any attempt to access port 22: settrans -c /dev/eth0f /hurd/eth-filter -i /dev/eth0 -r "not port 22" +This creates a /dev/eth0f device, which is the filtered version of /dev/eth0. One can then configure network by hand using /dev/eth0f instead of /dev/eth0: + settrans /servers/socket/2 /hurd/pfinet -i /dev/eth0f ... + +or run dhclient /dev/eth0f, etc. -- cgit v1.2.3