===== OpenSolaris Pragmatics: ===== See http://www.cs.dartmouth.edu/~sergey/cs108/2009/l17.txt ===== OpenSolaris drivers: ===== See http://www.cs.dartmouth.edu/~sergey/cs108/2009/drivers.txt and the step-by step tutorial: http://www.cs.dartmouth.edu/~sergey/cs108/2009/Device_Drivers_Hands_on_Lab.pdf -------- Some quick links, more notes to come later: -------- "The journey of a packet through the linux 2.4 network stack": http://ftp.gnumonks.org/pub/doc/packet-journey-2.4.html (outlines the architecture of the network stack by example, together with http://ftp.gnumonks.org/pub/doc/skb-doc.html which explains the socket buffering data structures involved.) BPF paper, a significant stepping stone in this kind of design: http://www.tcpdump.org/papers/bpf-usenix93.pdf (also in the course dir) --------- Netfilter Hacking Howto: http://netfilter.org/documentation/HOWTO//netfilter-hacking-HOWTO.html A long but good tutorial/explanation of IPtables, with a much nicer diagram of hooks/chains in: http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch14_:_Linux_Firewalls_Using_iptables On connection tracking (a.k.a. modeling the state of connections in the firewall): http://www.sns.ias.edu/~jns/wp/2006/01/24/iptables-how-does-it-work/ More tutorials on NetFilter/Iptables: http://netfilter.org/documentation/