Enviar pesquisa
Carregar
2015.10.05 Updated > Network Device Development - Part 1: Switch
•
29 gostaram
•
4,138 visualizações
Cheng-Yi Yu
Seguir
Network Device Development Part 1: Switch How to develop a network device like switch
Leia menos
Leia mais
Software
Denunciar
Compartilhar
Denunciar
Compartilhar
1 de 113
Baixar agora
Baixar para ler offline
Recomendados
2015.10.05 Updated > Network Device Development - Part 2: Firewall 101
2015.10.05 Updated > Network Device Development - Part 2: Firewall 101
Cheng-Yi Yu
Network Device Development - Part 5: Firewall 104 ~ Packet Splitter
Network Device Development - Part 5: Firewall 104 ~ Packet Splitter
Cheng-Yi Yu
Network Device Development - Part 4: Firewall 103 ~ Protocol Filter & Payload...
Network Device Development - Part 4: Firewall 103 ~ Protocol Filter & Payload...
Cheng-Yi Yu
Android Security Development - Part 2: Malicious Android App Dynamic Analyzi...
Android Security Development - Part 2: Malicious Android App Dynamic Analyzi...
Cheng-Yi Yu
Telehack: May the Command Line Live Forever
Telehack: May the Command Line Live Forever
Gregory Hanis
Mak3
Mak3
webuploader
Installation of CaudalFin E1/T1 (PRI) Boards on Asterisk & CentOS
Installation of CaudalFin E1/T1 (PRI) Boards on Asterisk & CentOS
CaudalFin Technologies
How to Connect MQTT Broker on ESP8266 WiFi
How to Connect MQTT Broker on ESP8266 WiFi
Naoto MATSUMOTO
Recomendados
2015.10.05 Updated > Network Device Development - Part 2: Firewall 101
2015.10.05 Updated > Network Device Development - Part 2: Firewall 101
Cheng-Yi Yu
Network Device Development - Part 5: Firewall 104 ~ Packet Splitter
Network Device Development - Part 5: Firewall 104 ~ Packet Splitter
Cheng-Yi Yu
Network Device Development - Part 4: Firewall 103 ~ Protocol Filter & Payload...
Network Device Development - Part 4: Firewall 103 ~ Protocol Filter & Payload...
Cheng-Yi Yu
Android Security Development - Part 2: Malicious Android App Dynamic Analyzi...
Android Security Development - Part 2: Malicious Android App Dynamic Analyzi...
Cheng-Yi Yu
Telehack: May the Command Line Live Forever
Telehack: May the Command Line Live Forever
Gregory Hanis
Mak3
Mak3
webuploader
Installation of CaudalFin E1/T1 (PRI) Boards on Asterisk & CentOS
Installation of CaudalFin E1/T1 (PRI) Boards on Asterisk & CentOS
CaudalFin Technologies
How to Connect MQTT Broker on ESP8266 WiFi
How to Connect MQTT Broker on ESP8266 WiFi
Naoto MATSUMOTO
Installation of DAHDI, libpri and Asterisk
Installation of DAHDI, libpri and Asterisk
CaudalFin Technologies
visagie_freebsd
visagie_freebsd
webuploader
Hardening Linux and introducing Securix Linux
Hardening Linux and introducing Securix Linux
Security Session
Linux Hardening - nullhyd
Linux Hardening - nullhyd
n|u - The Open Security Community
Shutdown agent for_v_mware_esx
Shutdown agent for_v_mware_esx
moy725
Buildstrapping Aloofix
Buildstrapping Aloofix
Kevin Johnson
Cisco pix firewall configuration for dcsl
Cisco pix firewall configuration for dcsl
IT Tech
Kali tools list with short description
Kali tools list with short description
Jose Moruno Cadima
firmware hacking, slash the pineapple for fun (codebali 2015)
firmware hacking, slash the pineapple for fun (codebali 2015)
Rama Nanda
ERP System Implementation Kubernetes Cluster with Sticky Sessions
ERP System Implementation Kubernetes Cluster with Sticky Sessions
Chanaka Lasantha
Server hardening
Server hardening
Teja Babu
OSDC 2018 | OPNsense: the “open” firewall for your datacenter by Thomas Niede...
OSDC 2018 | OPNsense: the “open” firewall for your datacenter by Thomas Niede...
NETWAYS
Security Onion Conference - 2016
Security Onion Conference - 2016
DefensiveDepth
Wispi: Mini Karma Router For Pentester - Rama Tri Nanda
Wispi: Mini Karma Router For Pentester - Rama Tri Nanda
idsecconf
Webinar: Automate IBM Connections Installations and more
Webinar: Automate IBM Connections Installations and more
panagenda
Gns3 0.5 Tutorial
Gns3 0.5 Tutorial
rusevi
Router Virtualization With GNS3
Router Virtualization With GNS3
mrmouse
Demo
Demo
anoop_wi
20141102 VyOS 1.1.0 and NIFTY Cloud New Features
20141102 VyOS 1.1.0 and NIFTY Cloud New Features
雄也 日下部
Demo
Demo
anoop_wi
Cryptography Simplified - Symmetric Key, Public Key, PKI, Digital Signature, ...
Cryptography Simplified - Symmetric Key, Public Key, PKI, Digital Signature, ...
Muhammad Faisal Naqvi, CISSP, CISA, AMBCI, ITIL, ISMS LA n Master
SSL Technology
SSL Technology
Pushpraj Verma
Mais conteúdo relacionado
Mais procurados
Installation of DAHDI, libpri and Asterisk
Installation of DAHDI, libpri and Asterisk
CaudalFin Technologies
visagie_freebsd
visagie_freebsd
webuploader
Hardening Linux and introducing Securix Linux
Hardening Linux and introducing Securix Linux
Security Session
Linux Hardening - nullhyd
Linux Hardening - nullhyd
n|u - The Open Security Community
Shutdown agent for_v_mware_esx
Shutdown agent for_v_mware_esx
moy725
Buildstrapping Aloofix
Buildstrapping Aloofix
Kevin Johnson
Cisco pix firewall configuration for dcsl
Cisco pix firewall configuration for dcsl
IT Tech
Kali tools list with short description
Kali tools list with short description
Jose Moruno Cadima
firmware hacking, slash the pineapple for fun (codebali 2015)
firmware hacking, slash the pineapple for fun (codebali 2015)
Rama Nanda
ERP System Implementation Kubernetes Cluster with Sticky Sessions
ERP System Implementation Kubernetes Cluster with Sticky Sessions
Chanaka Lasantha
Server hardening
Server hardening
Teja Babu
OSDC 2018 | OPNsense: the “open” firewall for your datacenter by Thomas Niede...
OSDC 2018 | OPNsense: the “open” firewall for your datacenter by Thomas Niede...
NETWAYS
Security Onion Conference - 2016
Security Onion Conference - 2016
DefensiveDepth
Wispi: Mini Karma Router For Pentester - Rama Tri Nanda
Wispi: Mini Karma Router For Pentester - Rama Tri Nanda
idsecconf
Webinar: Automate IBM Connections Installations and more
Webinar: Automate IBM Connections Installations and more
panagenda
Gns3 0.5 Tutorial
Gns3 0.5 Tutorial
rusevi
Router Virtualization With GNS3
Router Virtualization With GNS3
mrmouse
Demo
Demo
anoop_wi
20141102 VyOS 1.1.0 and NIFTY Cloud New Features
20141102 VyOS 1.1.0 and NIFTY Cloud New Features
雄也 日下部
Demo
Demo
anoop_wi
Mais procurados
(20)
Installation of DAHDI, libpri and Asterisk
Installation of DAHDI, libpri and Asterisk
visagie_freebsd
visagie_freebsd
Hardening Linux and introducing Securix Linux
Hardening Linux and introducing Securix Linux
Linux Hardening - nullhyd
Linux Hardening - nullhyd
Shutdown agent for_v_mware_esx
Shutdown agent for_v_mware_esx
Buildstrapping Aloofix
Buildstrapping Aloofix
Cisco pix firewall configuration for dcsl
Cisco pix firewall configuration for dcsl
Kali tools list with short description
Kali tools list with short description
firmware hacking, slash the pineapple for fun (codebali 2015)
firmware hacking, slash the pineapple for fun (codebali 2015)
ERP System Implementation Kubernetes Cluster with Sticky Sessions
ERP System Implementation Kubernetes Cluster with Sticky Sessions
Server hardening
Server hardening
OSDC 2018 | OPNsense: the “open” firewall for your datacenter by Thomas Niede...
OSDC 2018 | OPNsense: the “open” firewall for your datacenter by Thomas Niede...
Security Onion Conference - 2016
Security Onion Conference - 2016
Wispi: Mini Karma Router For Pentester - Rama Tri Nanda
Wispi: Mini Karma Router For Pentester - Rama Tri Nanda
Webinar: Automate IBM Connections Installations and more
Webinar: Automate IBM Connections Installations and more
Gns3 0.5 Tutorial
Gns3 0.5 Tutorial
Router Virtualization With GNS3
Router Virtualization With GNS3
Demo
Demo
20141102 VyOS 1.1.0 and NIFTY Cloud New Features
20141102 VyOS 1.1.0 and NIFTY Cloud New Features
Demo
Demo
Destaque
Cryptography Simplified - Symmetric Key, Public Key, PKI, Digital Signature, ...
Cryptography Simplified - Symmetric Key, Public Key, PKI, Digital Signature, ...
Muhammad Faisal Naqvi, CISSP, CISA, AMBCI, ITIL, ISMS LA n Master
SSL Technology
SSL Technology
Pushpraj Verma
Secure Socket Layer
Secure Socket Layer
Naveen Kumar
CCNA Routing Protocols
CCNA Routing Protocols
Mansour Naslcheraghi
Fundamental of Secure Socket Layer (SSL) | Part - 2
Fundamental of Secure Socket Layer (SSL) | Part - 2
Vishal Kumar
Network device management
Network device management
Arnold Derrick Kinney
Routing to components
Routing to components
Christopher Caplinger
Lecture 6 web security
Lecture 6 web security
rajakhurram
Introduction to Secure Sockets Layer
Introduction to Secure Sockets Layer
Nascenia IT
Dhcp ppt
Dhcp ppt
Hema Dhariwal
CCNA Routing Protocols
CCNA Routing Protocols
Dsunte Wilson
CCNA Advanced Routing Protocols
CCNA Advanced Routing Protocols
Dsunte Wilson
Destaque
(12)
Cryptography Simplified - Symmetric Key, Public Key, PKI, Digital Signature, ...
Cryptography Simplified - Symmetric Key, Public Key, PKI, Digital Signature, ...
SSL Technology
SSL Technology
Secure Socket Layer
Secure Socket Layer
CCNA Routing Protocols
CCNA Routing Protocols
Fundamental of Secure Socket Layer (SSL) | Part - 2
Fundamental of Secure Socket Layer (SSL) | Part - 2
Network device management
Network device management
Routing to components
Routing to components
Lecture 6 web security
Lecture 6 web security
Introduction to Secure Sockets Layer
Introduction to Secure Sockets Layer
Dhcp ppt
Dhcp ppt
CCNA Routing Protocols
CCNA Routing Protocols
CCNA Advanced Routing Protocols
CCNA Advanced Routing Protocols
Semelhante a 2015.10.05 Updated > Network Device Development - Part 1: Switch
Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)
Ata Rehman
High performance content hosting
High performance content hosting
Aleksey Korzun
Xen time machine
Xen time machine
The Linux Foundation
the NML project
the NML project
Lei Yang
RunX ELCE 2020
RunX ELCE 2020
Stefano Stabellini
Rac on NFS
Rac on NFS
mengjiagou
SF Bay Area OpenStack Meetup Stacki Presentation
SF Bay Area OpenStack Meetup Stacki Presentation
StackIQ
Continuous delivery with docker
Continuous delivery with docker
Johan Janssen
Kernel compilation
Kernel compilation
mcganesh
Slackware Demystified [SELF 2011]
Slackware Demystified [SELF 2011]
Vincent Batts
Dependencies Managers in C/C++. Using stdcpp 2014
Dependencies Managers in C/C++. Using stdcpp 2014
biicode
ONOS SDN Controller - Clustering Tests & Experiments
ONOS SDN Controller - Clustering Tests & Experiments
Eueung Mulyana
NFD9 - Matt Peterson, Data Center Operations
NFD9 - Matt Peterson, Data Center Operations
Cumulus Networks
Razor, the Provisioning Toolbox - PuppetConf 2014
Razor, the Provisioning Toolbox - PuppetConf 2014
Puppet
Linux conf-admin
Linux conf-admin
badamisri
Linux conf-admin
Linux conf-admin
badamisri
Linux Conf Admin
Linux Conf Admin
Srinivas Badami
Snort296x centos6x 2
Snort296x centos6x 2
Trinh Tuan
Domino9on centos6
Domino9on centos6
a8us
Instalando Cacti no CentOS 5
Instalando Cacti no CentOS 5
Carlos Eduardo
Semelhante a 2015.10.05 Updated > Network Device Development - Part 1: Switch
(20)
Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)
High performance content hosting
High performance content hosting
Xen time machine
Xen time machine
the NML project
the NML project
RunX ELCE 2020
RunX ELCE 2020
Rac on NFS
Rac on NFS
SF Bay Area OpenStack Meetup Stacki Presentation
SF Bay Area OpenStack Meetup Stacki Presentation
Continuous delivery with docker
Continuous delivery with docker
Kernel compilation
Kernel compilation
Slackware Demystified [SELF 2011]
Slackware Demystified [SELF 2011]
Dependencies Managers in C/C++. Using stdcpp 2014
Dependencies Managers in C/C++. Using stdcpp 2014
ONOS SDN Controller - Clustering Tests & Experiments
ONOS SDN Controller - Clustering Tests & Experiments
NFD9 - Matt Peterson, Data Center Operations
NFD9 - Matt Peterson, Data Center Operations
Razor, the Provisioning Toolbox - PuppetConf 2014
Razor, the Provisioning Toolbox - PuppetConf 2014
Linux conf-admin
Linux conf-admin
Linux conf-admin
Linux conf-admin
Linux Conf Admin
Linux Conf Admin
Snort296x centos6x 2
Snort296x centos6x 2
Domino9on centos6
Domino9on centos6
Instalando Cacti no CentOS 5
Instalando Cacti no CentOS 5
Mais de Cheng-Yi Yu
Crawler 2
Crawler 2
Cheng-Yi Yu
Python Crawler
Python Crawler
Cheng-Yi Yu
CEF.net
CEF.net
Cheng-Yi Yu
Go Web Development
Go Web Development
Cheng-Yi Yu
Facebook Dynamic Ads API
Facebook Dynamic Ads API
Cheng-Yi Yu
2015.04.24 Updated > Android Security Development - Part 1: App Development
2015.04.24 Updated > Android Security Development - Part 1: App Development
Cheng-Yi Yu
Mais de Cheng-Yi Yu
(6)
Crawler 2
Crawler 2
Python Crawler
Python Crawler
CEF.net
CEF.net
Go Web Development
Go Web Development
Facebook Dynamic Ads API
Facebook Dynamic Ads API
2015.04.24 Updated > Android Security Development - Part 1: App Development
2015.04.24 Updated > Android Security Development - Part 1: App Development
Último
Generic or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisions
Bert Jan Schrijver
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
Nitya salvi
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
masabamasaba
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
AmarnathKambale
The title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
masabamasaba
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
masabamasaba
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
kalichargn70th171
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
masabamasaba
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
OnePlan Solutions
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
masabamasaba
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
Delhi Call girls
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
HimanshiGarg82
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
Mind IT Systems
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
masabamasaba
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
aagamshah0812
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
masabamasaba
%in Durban+277-882-255-28 abortion pills for sale in Durban
%in Durban+277-882-255-28 abortion pills for sale in Durban
masabamasaba
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
masabamasaba
Último
(20)
Generic or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisions
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
The title is not connected to what is inside
The title is not connected to what is inside
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Durban+277-882-255-28 abortion pills for sale in Durban
%in Durban+277-882-255-28 abortion pills for sale in Durban
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
2015.10.05 Updated > Network Device Development - Part 1: Switch
1.
Network Device Development PART 1
– Switch SEAN
2.
Sean • Developer • erinus.startup@gmail.com •
https://www.facebook.com/erinus
3.
GitHub https://github.com/erinus/NetworkDeviceDevelop ment
4.
Choose your Board
5.
Simple, Support, Easy,
… X86 Board
6.
X86 Board with
6 Ethernet
7.
Specification
8.
Specification
9.
LAN-1037-6L http://tw.taobao.com/item/42824613011.htm
10.
Choose your Operating
System
11.
Simple, Clean, Easy,
… Debian
12.
Debian 6.0.10 http://cdimage.debian.org/mirror/cdimage/archive /6.0.10/i386/iso-cd/debian-6.0.10-i386- businesscard.iso Debian 7.9.0 http://cdimage.debian.org/mirror/cdimage/archive /7.9.0/i386/iso-cd/debian-7.9.0-i386-netinst.iso
13.
Choose your Virtual
Machine
14.
Simple, Stable, Fast,
… VMware Workstation
15.
Setup your Board
16.
X86 Board with
6 Ethernet eth5 eth4 eth3 eth2 eth1 eth0
17.
X86 Board with
6 Ethernet Internet mSATA mSATA RAM USB DVD-ROM
18.
Setup your Virtual
Machine
19.
Simple, Stable, Fast,
… VMware Workstation
20.
Virtual Network Editor Add
Network: VMnet2, VMnet3, …, VMnet8
21.
Virtual Network Editor Modify
IP number (192.168.10X.0) to match VMnetX for debugging Modify this
22.
Virtual Network Editor Uncheck
"Connect a host virtual adapter to this network" to make isolated subnet Uncheck this
23.
New Virtual Machine
24.
Install Operating System
Later
25.
Choose Guest Operating
System Linux + Debian 6 Linux + Debian 7
26.
Name and Location
27.
Disk Capacity 32+ GB
28.
Customize Hardware Profile
29.
Add 6 Virtual
Network Adapter
30.
Done
31.
Install your Operating
System
32.
Splash Screen Install
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
Uncheck them to
keep smallest installation
63.
64.
65.
66.
67.
68.
69.
Setup your Operating
System
70.
Reboot
71.
Login by root
72.
Remove account $ deluser
--remove-home user
73.
Update and Upgrade $
apt-get update $ apt-get –y upgrade $ apt-get –y dist-upgrade
74.
Install Packages $ apt-get
install –y vim gcc g++ ssh make cmake openssh-server openssh-client binutils build- essential git python python-dev python-pip zip unzip bzip2 bridge-utils
75.
Check Kernel Version
76.
Search Kernel DevelopmentPackages Debian
6.0.10 VMware use linux-headers-2.6.32-5-686 Debian 7.8.0 VMware use linux-headers-3.2.0-4-686-pae
77.
Search Kernel DevelopmentPackages Debian
6.0.10 VMware use linux-headers-2.6.32-5-686 Debian 7.9.0 VMware use linux-headers-3.2.0-4-686-pae
78.
Install Kernel DevelopmentPackages Debian
6.0.10 $ apt-get install –y linux-headers-2.6.32-5-common linux-headers-2.6.32-5-686 Debian 7.9.0 $ apt-get install –y linux-headers-3.2.0-4-common linux-headers-3.2.0-4-686-pae
79.
Final # release 100+
MB $ apt-get autoremove $ apt-get autoclean $ rm /var/cache/apt/archives/*.deb
80.
Before Development
81.
Development More Easily Use
SSH Client, SFTP Client, and Smart Text Editor
82.
Recommended Xshell Xftp Sublime Text
83.
First Kernel Module
84.
Always
85.
Hello World
86.
Create Makefile Return kernel
version
87.
Create main.c Include Header
File Init $ insmod *.ko Exit $ rmmod *.ko Register Module
88.
Clear Kernel Message
Buffer $ dmesg -c
89.
Build $ make
90.
Install $ make install $
dmesg
91.
Remove $ make remove $
dmesg
92.
About Netfilter
93.
PREROUTING POSTROUTING IN dest is localhost ? FORWARD LOCALHOSTINPUT
OUTPUT OUT
94.
About Network Topology
95.
VMnet2 192.168.102.? VMnet3 192.168.103.? CLIENT Ubuntu Desktop 192.168.102.128 CLIENT Ubuntu Desktop 192.168.103.128 SWITCH Debian VMnet1 NAT eth1
eth2 eth0
96.
About Bridge-Utils
97.
Set Promisc Mode $
ifconfig eth1 0.0.0.0 promisc up $ ifconfig eth2 0.0.0.0 promisc up
98.
Create Bridge $ brctl
addbr br0 $ brctl setfd br0 0 # Debian 6.0.10 $ brctl sethello br0 0 # Debian 7.9.0 $ brctl sethello br0 1 $ brctl addif br0 eth1 $ brctl addif br0 eth2 $ brctl stp br0 off $ ifconfig br0 up
99.
Avoid Unknown Problems $
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts $ echo 0 > /proc/sys/net/ipv4/ip_forward $ echo 0 > /proc/sys/net/ipv4/tcp_syncookies
100.
First Netfilter Kernel
Module
101.
Modify main.c Include Header
Files Forward Hook Hook Declaration
102.
Modify main.c Include Header
Files Forward Hook Hook Declaration If one header miss, compilation still success. But, operating system will crash when module inserting.
103.
Modify main.c Register Hook Unregister
Hook
104.
Install $ make $ make
install $ dmesg
105.
Test your Netfilter
Kernel Module
106.
CLIENT of VMnet2 $
sudo ip route add 192.168.103.0/24 via 192.168.102.128
107.
CLIENT of VMnet3 $
sudo ip route add 192.168.102.0/24 via 192.168.103.128
108.
Test on CLIENT
of VMnet2 $ ping 192.168.103.128 For all packets, forwarding is accepted.
109.
Modify main.c Include Header
Files Forward Hook Hook Declaration
110.
Reinstall $ make remove $
make $ make install
111.
Test on CLIENT
of VMnet2 $ ping 192.168.103.128 For all packets, forwarding is rejected.
112.
Next Part
113.
Firewall 101
Baixar agora