what is the sheep/goat project for MINIX network projects?

35 views
Skip to first unread message

Murali Krishna

unread,
Mar 21, 2010, 2:30:38 PM3/21/10
to min...@googlegroups.com
Hello

Can any one tell me what is the sheep/goat project for the projects that involve networking part like MINIX Firewall?

Murali

Arun Thomas

unread,
Mar 22, 2010, 5:27:20 AM3/22/10
to min...@googlegroups.com

You will hear a response about this today. The two possible mentors are
discussing this and will respond on this group.

Arun

Cristiano Giuffrida

unread,
Mar 22, 2010, 1:20:35 PM3/22/10
to minix3, Lorenzo Cavallaro
Hi,

here's our thought for a sheep/goat project. The idea is that you
implement a simple packet filter that does the following. When
enabled, it should drop *every* [1] incoming / outgoing packet and
dump it on stdout in the appropriate format. You are asked to write
support to enable/disable the packet filter dynamically in MINIX 3.
You also have to write a simple user-space application which reads
rules from an input file. For now, rules are as simple as "simplepf
on" / "simplepf off" to enable / disable the simple packet filter.

[1] note: there are different ways to do it, of course. However, what
you don't have to do is to push the rules on each NIC, for instance.
We would like you to come up with an elegant solution ;-)

Cristiano & Lorenzo

Murali Krishna

unread,
Mar 23, 2010, 11:00:52 PM3/23/10
to min...@googlegroups.com
Hello 
Everyone

I tried the sheep/goat project for MINIX firewall. As required I am able to create a command called "data_table" with options 

-B             Block the packets in coming
-W            Block the packets Out going
-U             Allow all the packets both incoming and outgoing

I created a system call and using it I transfered the values from user level to kernel level data structure and then based on the flag values I am blocking the packets by freeing the packets using bf_afree(pack).

I added several screen shots of the output. If required I will post the source code.

The screenshots output_final1 and output_final2 will show the required task and output_final3 is snippet of the code which I used in data_table command.

Murali

--
You received this message because you are subscribed to the Google Groups "minix3" group.
To post to this group, send email to min...@googlegroups.com.
To unsubscribe from this group, send email to minix3+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/minix3?hl=en.


output_final1.PNG
output_final2.PNG
output_final3.PNG

Lorenzo Cavallaro

unread,
Mar 24, 2010, 5:39:24 PM3/24/10
to min...@googlegroups.com, murali...@gmail.com
Hi Murali,

could you send the source tarball to in...@minix3.org, please? Of
course, remember to apply to GSoC (http://socghop.appspot.com/) if you
haven't done it yet.

TIA, bye
Lorenzo

> <mailto:arun.tho...@gmail.com>> wrote:
> > Murali Krishna wrote:
> > > Hello
> >
> > > Can any one tell me what is the sheep/goat project for the
> projects that
> > > involve networking part like MINIX Firewall?
> >
> > You will hear a response about this today. The two possible
> mentors are
> > discussing this and will respond on this group.
> >
> > Arun
>
> --
> You received this message because you are subscribed to the Google
> Groups "minix3" group.
> To post to this group, send email to min...@googlegroups.com

> <mailto:min...@googlegroups.com>.


> To unsubscribe from this group, send email to
> minix3+un...@googlegroups.com

> <mailto:minix3%2Bunsu...@googlegroups.com>.


> For more options, visit this group at
> http://groups.google.com/group/minix3?hl=en.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "minix3" group.
> To post to this group, send email to min...@googlegroups.com.
> To unsubscribe from this group, send email to
> minix3+un...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/minix3?hl=en.
>

> ------------------------------------------------------------------------
>
>
> ------------------------------------------------------------------------
>
>
> ------------------------------------------------------------------------
>

--
Lorenzo `Gigi Sullivan' Cavallaro <sull...@few.vu.nl>
WWW on http://www.few.vu.nl/~sullivan

Until I loved, life had no beauty;
I did not know I lived until I had loved. (Theodor Korner)

See the reality in your eyes, when the hate makes you blind. (A.H.X)

Claudiu-Dan Gheorghe

unread,
Mar 24, 2010, 8:18:41 PM3/24/10
to min...@googlegroups.com
Hi,

I've also implemented a simple packet filter, as it was described.

As a briefly description, the patch is made entirely on the inet
server and the communication between user-space application and the
inet system process is made through the special device files (/dev/ip)
by using a special command within a ioctl() call. The behavior is
shortly presented on [1].

Should I attach the patch here or should I send it on in...@minix3.org?

Regards,

[1] http://pastebin.com/P7Wk8cmn
--
Claudiu-Dan Gheorghe

Murali Krishna

unread,
Mar 24, 2010, 10:18:25 PM3/24/10
to min...@googlegroups.com
Hello
Lorenzo

I send the source code to in...@minix3.org. I am also thinking of several other projects too I will let you know those also.

Thank you

Murali


Siddu

unread,
Mar 25, 2010, 4:53:17 AM3/25/10
to min...@googlegroups.com
On Wed, Mar 24, 2010 at 8:30 AM, Murali Krishna <murali...@gmail.com> wrote:
Hello 
Everyone

I tried the sheep/goat project for MINIX firewall. As required I am able to create a command called "data_table" with options 

-B             Block the packets in coming
-W            Block the packets Out going
-U             Allow all the packets both incoming and outgoing

I created a system call and using it I transfered the values from user level to kernel level data structure and then based on the flag values I am blocking the packets by freeing the packets using bf_afree(pack).

I added several screen shots of the output. If required I will post the source code.

I would be interested in seeing the source and so will be a few others . Can you please attach to this thread ?
 



--
Regards,
~Sid~
A little bird which escaped the nest had to fall before it learnt to fly !

Lorenzo Cavallaro

unread,
Mar 25, 2010, 5:13:28 AM3/25/10
to min...@googlegroups.com, clau...@gmail.com
Hi Gheorghe,

yes, please send the patch to in...@minix3.org.

TIA, bye
Lorenzo

--

Reply all
Reply to author
Forward
0 new messages