1 | root@OpenWrt:~#
|
2 | root@OpenWrt:~#
|
3 | root@OpenWrt:~# ifconfig
|
4 | br-lan Link encap:Ethernet HWaddr 64:66:B3:93:CB:92
|
5 | inet addr:192.168.0.254 Bcast:192.168.0.255 Mask:255.255.255.0
|
6 | UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
|
7 | RX packets:4886 errors:0 dropped:0 overruns:0 frame:0
|
8 | TX packets:4393 errors:0 dropped:0 overruns:0 carrier:0
|
9 | collisions:0 txqueuelen:0
|
10 | RX bytes:480924 (469.6 KiB) TX bytes:785887 (767.4 KiB)
|
11 |
|
12 | eth0 Link encap:Ethernet HWaddr 64:66:B3:93:CB:92
|
13 | UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
|
14 | RX packets:4886 errors:0 dropped:0 overruns:0 frame:0
|
15 | TX packets:4881 errors:0 dropped:0 overruns:0 carrier:0
|
16 | collisions:0 txqueuelen:1000
|
17 | RX bytes:549328 (536.4 KiB) TX bytes:808335 (789.3 KiB)
|
18 | Interrupt:4
|
19 |
|
20 | lo Link encap:Local Loopback
|
21 | inet addr:127.0.0.1 Mask:255.0.0.0
|
22 | UP LOOPBACK RUNNING MTU:16436 Metric:1
|
23 | RX packets:87 errors:0 dropped:0 overruns:0 frame:0
|
24 | TX packets:87 errors:0 dropped:0 overruns:0 carrier:0
|
25 | collisions:0 txqueuelen:0
|
26 | RX bytes:6561 (6.4 KiB) TX bytes:6561 (6.4 KiB)
|
27 |
|
28 | wlan0 Link encap:Ethernet HWaddr 64:66:B3:93:CB:92
|
29 | inet addr:192.168.178.51 Bcast:192.168.178.255 Mask:255.255.255.0
|
30 | UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
|
31 | RX packets:13381 errors:0 dropped:2559 overruns:0 frame:0
|
32 | TX packets:4884 errors:0 dropped:0 overruns:0 carrier:0
|
33 | collisions:0 txqueuelen:32
|
34 | RX bytes:2432605 (2.3 MiB) TX bytes:638957 (623.9 KiB)
|
35 |
|
36 | root@OpenWrt:~#
|
37 | root@OpenWrt:~#
|
38 | root@OpenWrt:~#
|
39 | root@OpenWrt:~# route -n
|
40 | Kernel IP routing table
|
41 | Destination Gateway Genmask Flags Metric Ref Use Iface
|
42 | 0.0.0.0 192.168.178.1 0.0.0.0 UG 0 0 0 wlan0
|
43 | 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 br-lan
|
44 | 192.168.178.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
|
45 | root@OpenWrt:~#
|
46 | root@OpenWrt:~#
|
47 | root@OpenWrt:~#
|
48 | root@OpenWrt:~# iptables -L
|
49 | Chain INPUT (policy ACCEPT)
|
50 | target prot opt source destination
|
51 | ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED
|
52 | ACCEPT all -- anywhere anywhere
|
53 | syn_flood tcp -- anywhere anywhere tcp flags:FIN,SYN,RST,ACK/SYN
|
54 | input_rule all -- anywhere anywhere
|
55 | input all -- anywhere anywhere
|
56 |
|
57 | Chain FORWARD (policy DROP)
|
58 | target prot opt source destination
|
59 | ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED
|
60 | forwarding_rule all -- anywhere anywhere
|
61 | forward all -- anywhere anywhere
|
62 | reject all -- anywhere anywhere
|
63 |
|
64 | Chain OUTPUT (policy ACCEPT)
|
65 | target prot opt source destination
|
66 | ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED
|
67 | ACCEPT all -- anywhere anywhere
|
68 | output_rule all -- anywhere anywhere
|
69 | output all -- anywhere anywhere
|
70 |
|
71 | Chain forward (1 references)
|
72 | target prot opt source destination
|
73 | zone_lan_forward all -- anywhere anywhere
|
74 | zone_wan_forward all -- anywhere anywhere
|
75 |
|
76 | Chain forwarding_lan (1 references)
|
77 | target prot opt source destination
|
78 |
|
79 | Chain forwarding_rule (1 references)
|
80 | target prot opt source destination
|
81 |
|
82 | Chain forwarding_wan (1 references)
|
83 | target prot opt source destination
|
84 |
|
85 | Chain input (1 references)
|
86 | target prot opt source destination
|
87 | zone_lan all -- anywhere anywhere
|
88 | zone_wan all -- anywhere anywhere
|
89 |
|
90 | Chain input_lan (1 references)
|
91 | target prot opt source destination
|
92 |
|
93 | Chain input_rule (1 references)
|
94 | target prot opt source destination
|
95 |
|
96 | Chain input_wan (1 references)
|
97 | target prot opt source destination
|
98 |
|
99 | Chain output (1 references)
|
100 | target prot opt source destination
|
101 | zone_lan_ACCEPT all -- anywhere anywhere
|
102 | zone_wan_ACCEPT all -- anywhere anywhere
|
103 |
|
104 | Chain output_rule (1 references)
|
105 | target prot opt source destination
|
106 |
|
107 | Chain reject (5 references)
|
108 | target prot opt source destination
|
109 | REJECT tcp -- anywhere anywhere reject-with tcp-reset
|
110 | REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
|
111 |
|
112 | Chain syn_flood (1 references)
|
113 | target prot opt source destination
|
114 | RETURN tcp -- anywhere anywhere tcp flags:FIN,SYN,RST,ACK/SYN limit: avg 25/sec burst 50
|
115 | DROP all -- anywhere anywhere
|
116 |
|
117 | Chain zone_lan (1 references)
|
118 | target prot opt source destination
|
119 | input_lan all -- anywhere anywhere
|
120 | zone_lan_ACCEPT all -- anywhere anywhere
|
121 |
|
122 | Chain zone_lan_ACCEPT (2 references)
|
123 | target prot opt source destination
|
124 | ACCEPT all -- anywhere anywhere
|
125 | ACCEPT all -- anywhere anywhere
|
126 |
|
127 | Chain zone_lan_DROP (0 references)
|
128 | target prot opt source destination
|
129 | DROP all -- anywhere anywhere
|
130 | DROP all -- anywhere anywhere
|
131 |
|
132 | Chain zone_lan_REJECT (1 references)
|
133 | target prot opt source destination
|
134 | reject all -- anywhere anywhere
|
135 | reject all -- anywhere anywhere
|
136 |
|
137 | Chain zone_lan_forward (1 references)
|
138 | target prot opt source destination
|
139 | zone_wan_ACCEPT all -- anywhere anywhere
|
140 | forwarding_lan all -- anywhere anywhere
|
141 | zone_lan_REJECT all -- anywhere anywhere
|
142 |
|
143 | Chain zone_wan (1 references)
|
144 | target prot opt source destination
|
145 | ACCEPT udp -- anywhere anywhere udp dpt:bootpc
|
146 | ACCEPT icmp -- anywhere anywhere icmp echo-request
|
147 | input_wan all -- anywhere anywhere
|
148 | zone_wan_REJECT all -- anywhere anywhere
|
149 |
|
150 | Chain zone_wan_ACCEPT (2 references)
|
151 | target prot opt source destination
|
152 | ACCEPT all -- anywhere anywhere
|
153 | ACCEPT all -- anywhere anywhere
|
154 |
|
155 | Chain zone_wan_DROP (0 references)
|
156 | target prot opt source destination
|
157 | DROP all -- anywhere anywhere
|
158 | DROP all -- anywhere anywhere
|
159 |
|
160 | Chain zone_wan_REJECT (2 references)
|
161 | target prot opt source destination
|
162 | reject all -- anywhere anywhere
|
163 | reject all -- anywhere anywhere
|
164 |
|
165 | Chain zone_wan_forward (1 references)
|
166 | target prot opt source destination
|
167 | forwarding_wan all -- anywhere anywhere
|
168 | zone_wan_REJECT all -- anywhere anywhere
|
169 | root@OpenWrt:~#
|
170 | root@OpenWrt:~#
|
171 | root@OpenWrt:~#
|
172 | root@OpenWrt:~#
|