80 likes | 225 Views
Netfilter. 指導老師 李正帆 專題報告 黃健瑋. nvram show. lan_ifname=br0 lan_ifnames=vlan0 eth1 landevs=vlan0 wl0 vlan0hwname=et0 vlan0ports=1 2 3 4 5* vlan1hwname=et0 vlan1ports=0 5 wan0_ifname=vlan1 wan_ifname=vlan1 wlan_ifname=eth1 wlan_ipaddr=192.168.21.1. AP config. eth1->wireless
E N D
Netfilter 指導老師 李正帆 專題報告 黃健瑋
nvram show lan_ifname=br0 lan_ifnames=vlan0 eth1 landevs=vlan0 wl0 vlan0hwname=et0 vlan0ports=1 2 3 4 5* vlan1hwname=et0 vlan1ports=0 5 wan0_ifname=vlan1 wan_ifname=vlan1 wlan_ifname=eth1 wlan_ipaddr=192.168.21.1
AP config eth1->wireless vlan0->lan vlan1->wan br0->vlan0,eth1(can also use brctl)
Hook function • Put in “netif_rx” • The first function after net driver’s process • Test “netif_receive_skb • Hook data same as “netif_rx”
Interface filter problem eth0: • complicated Wireless data • But include output data… br0: • Can see the correct wireless data • But this also include vlan0 data…
Research • Tcpdump –i • Use pcap • Still researching……
Reference http://docs.google.com/present/view?id=dczm9xqd_133fxzrs8cq http://fantasymew.pixnet.net/blog/post/25630263 http://www.cndw.com/tech/server/2006042152366.asp http://blog.chinaunix.net/u1/35815/showart_318257.html http://www.right.com.cn/forum/redirect.php?tid=22029&goto=lastpost http://hi.baidu.com/westhack/blog/item/83fd4aadfd8e4b0e4b36d616.html