Changeset 08f927f in freewrt
- Timestamp:
- Mar 19, 2007, 11:20:20 AM (19 years ago)
- Children:
- 18e4876
- Parents:
- 5d8cc76
- Location:
- package
- Files:
-
- 3 added
- 3 edited
-
Config.in.network (modified) (2 diffs)
-
base-files-arch/Makefile (modified) (1 diff)
-
base-files-arch/files/interfaces.wlan (modified) (1 diff)
-
base-files-arch/files/interfaces.wlan.8021x (added)
-
base-files-arch/files/interfaces.wlan.wep (added)
-
base-files-arch/files/interfaces.wlan.wpa (added)
Legend:
- Unmodified
- Added
- Removed
-
package/Config.in.network
r5d8cc76 r08f927f 164 164 Wireless LAN interface name 165 165 166 config FWRT_NETWORK_WLAN_IP_ADDRESS 167 string "WLAN IP address" 168 default "192.168.1.1" 169 depends on FWRT_NETWORK_WLAN 170 help 171 WLAN IP address 172 173 config FWRT_NETWORK_WLAN_IP_NETMASK 174 string "WLAN IP netmask" 175 default "255.255.255.0" 176 depends on FWRT_NETWORK_WLAN 177 help 178 WLAN IP netmask 179 166 180 choice 167 181 prompt "Wireless mode" 168 182 depends on FWRT_NETWORK_WLAN 183 169 184 config FWRT_NETWORK_WLAN_MODE_AP 170 185 bool "Accesspoint Mode (AP)" … … 199 214 Wireless channel settings are country specific 200 215 201 config FWRT_NETWORK_WLAN_SECURITY 202 string "wireless security settings" 203 depends on FWRT_NETWORK_WLAN 204 default "none" 205 help 206 Wireless security settings 216 217 menu "wireless security settings" 218 depends on FWRT_NETWORK_WLAN 219 220 choice 221 prompt "security" 222 depends on FWRT_NETWORK_WLAN 223 config FWRT_NETWORK_WLAN_SECURITY_NONE 224 bool "No authorization" 225 help 226 No authorization !very unsecure! 227 228 config FWRT_NETWORK_WLAN_SECURITY_WEP 229 bool "wep" 230 help 231 WEP key 232 233 config FWRT_NETWORK_WLAN_SECURITY_WPA_PSK 234 bool "wpa-psk" 235 help 236 WPA with preshared key 237 238 config FWRT_NETWORK_WLAN_SECURITY_802.1X 239 bool "802.1x" 240 help 241 IEEE 802.1X authentication 242 243 endchoice 244 245 choice 246 prompt "authorization" 247 depends on !FWRT_NETWORK_WLAN_SECURITY_NONE 248 249 config FWRT_NETWORK_WLAN_AUTORIZATION_OPEN 250 bool "open" 251 depends on FWRT_NETWORK_WLAN_SECURITY_WEP || FWRT_NETWORK_WLAN_SECURITY_802.1X 252 help 253 Only Open System Authentication 254 255 config FWRT_NETWORK_WLAN_AUTORIZATION_SHARED 256 bool "shared" 257 depends on FWRT_NETWORK_WLAN_SECURITY_WEP || FWRT_NETWORK_WLAN_SECURITY_802.1X 258 help 259 Only Shared System Authentication 260 261 config FWRT_NETWORK_WLAN_AUTORIZATION_OPEN_AND_SHARED 262 bool "open+shared" 263 depends on FWRT_NETWORK_WLAN_SECURITY_WEP 264 help 265 Both Open System and Shared Key Authentication 266 267 config FWRT_NETWORK_WLAN_AUTORIZATION_PSK 268 bool "psk" 269 depends on FWRT_NETWORK_WLAN_SECURITY_WPA_PSK 270 help 271 WPA PSK 272 273 config FWRT_NETWORK_WLAN_AUTORIZATION_PSK2 274 bool "psk2" 275 depends on FWRT_NETWORK_WLAN_SECURITY_WPA_PSK 276 help 277 WPA2 PSK 278 279 config FWRT_NETWORK_WLAN_AUTORIZATION_PSK_PSK2 280 bool "psk psk2" 281 depends on FWRT_NETWORK_WLAN_SECURITY_WPA_PSK 282 help 283 WPA PSK and WPA2 PSK 284 285 config FWRT_NETWORK_WLAN_AUTORIZATION_WPA 286 bool "wpa" 287 depends on FWRT_NETWORK_WLAN_SECURITY_802.1X 288 help 289 WPA with RADIUS 290 291 config FWRT_NETWORK_WLAN_AUTORIZATION_WPA2 292 bool "wpa2" 293 depends on FWRT_NETWORK_WLAN_SECURITY_802.1X 294 help 295 WPA2 with RADIUS 296 297 config FWRT_NETWORK_WLAN_AUTORIZATION_WPA_AND_WPA2 298 bool "wpa wpa2" 299 depends on FWRT_NETWORK_WLAN_SECURITY_802.1X 300 help 301 WPA and WPA2 302 303 endchoice 304 305 choice 306 prompt "encryption" 307 depends on FWRT_NETWORK_WLAN_SECURITY_WPA_PSK || FWRT_NETWORK_WLAN_SECURITY_802.1X 308 309 config FWRT_NETWORK_WLAN_ENCRYPTION_TKIP 310 bool "tkip" 311 help 312 RC4 encryption 313 314 config FWRT_NETWORK_WLAN_ENCRYPTION_AES 315 bool "aed" 316 help 317 AES encryption 318 319 config FWRT_NETWORK_WLAN_ENCRYPTION_AES_TKIP 320 bool "aes+tkip" 321 help 322 Support for RC4 and AES encryption 323 324 config FWRT_NETWORK_WLAN_ENCRYPTION_WEP 325 bool "wep" 326 depends on FWRT_NETWORK_WLAN_SECURITY_802.1X 327 help 328 RC4 encryption (static) 329 330 endchoice 331 332 333 choice 334 prompt "eap-type" 335 depends on FWRT_NETWORK_WLAN_SECURITY_802.1X 336 337 config FWRT_NETWORK_WLAN_EAP_TLS 338 bool "tls" 339 help 340 Transport Layer Security 341 342 config FWRT_NETWORK_WLAN_EAP_TTLS 343 bool "ttls" 344 help 345 Tunnelled TLS 346 347 config FWRT_NETWORK_WLA_EAP_PEAP 348 bool "peap" 349 help 350 Protected EAP 351 352 config FWRT_NETWORK_WLAN_EAP_LEAP 353 bool "leap" 354 help 355 Cisco Wireless 356 357 endchoice 358 359 menu "radius settings" 360 depends on FWRT_NETWORK_WLAN_SECURITY_802.1X 361 362 config FWRT_NETWORK_WLAN_RADIUS_IPADDR 363 string "radius ipaddr" 364 default "0.0.0.0" 365 help 366 Transport Layer Security 367 368 config FWRT_NETWORK_WLAN_RADIUS_PORT 369 string "radius port" 370 default "1812" 371 help 372 RADIUS-Port# to connect 373 374 config FWRT_NETWORK_WLAN_RADIUS_KEY 375 string "radius key" 376 help 377 Shared Secret for connection to the Radius server 378 207 379 endmenu 380 381 config FWRT_NETWORK_WLAN_WEP_KEY 382 string "wep key" 383 depends on FWRT_NETWORK_WLAN_SECURITY_WEP 384 help 385 wep key to use 386 387 config FWRT_NETWORK_WLAN_WPA_KEY 388 string "wpa key" 389 depends on FWRT_NETWORK_WLAN_SECURITY_WPA_PSK 390 help 391 wpa key to use 392 393 config FWRT_NETWROK_WLAN_WPA_GTK_REKEY 394 string "Rekeying interval in seconds" 395 depends on FWRT_NETWORK_WLAN_SECURITY_802.1X || FWRT_NETWORK_WLAN_SECURITY_WPA_PSK 396 default "3600" 397 help 398 Rekeying interval in seconds 399 400 endmenu 401 402 endmenu -
package/base-files-arch/Makefile
r5d8cc76 r08f927f 101 101 endif 102 102 endif 103 104 ifeq ($(FWRT_NETWORK_WLAN),y) 105 cat ./files/interfaces.wlan >> $(IDIR_BASE_ARCH)/etc/network/interfaces 106 107 $(SED) "s/@FWRT_WLAN@/$(FWRT_NETWORK_WLAN_INTERFACE)/g" \ 108 $(IDIR_BASE_ARCH)/etc/network/interfaces 109 $(SED) "s/@FWRT_ADDRESS@/$(FWRT_NETWORK_WLAN_IP_ADDRESS)/g" \ 110 $(IDIR_BASE_ARCH)/etc/network/interfaces 111 $(SED) "s/@FWRT_NETMASK@/$(FWRT_NETWORK_WLAN_IP_NETMASK)/g" \ 112 $(IDIR_BASE_ARCH)/etc/network/interfaces 113 $(SED) "s/@FWRT_INTERFACE@/$(FWRT_NETWORK_WLAN_INTERFACE)/g" \ 114 $(IDIR_BASE_ARCH)/etc/network/interfaces 115 $(SED) "s/@FWRT_TYPE@/$(FWRT_NETWORK_WLAN_TYPE)/g" \ 116 $(IDIR_BASE_ARCH)/etc/network/interfaces 117 $(SED) "s/@FWRT_COUNTRY@/$(FWRT_NETWORK_WLAN_COUNTRY)/g" \ 118 $(IDIR_BASE_ARCH)/etc/network/interfaces 119 $(SED) "s/@FWRT_SSID@/$(FWRT_NETWORK_WLAN_ESSID)/g" \ 120 $(IDIR_BASE_ARCH)/etc/network/interfaces 121 $(SED) "s/@FWRT_CHANNEL@/$(FWRT_NETWORK_WLAN_CHANNEL)/g" \ 122 $(IDIR_BASE_ARCH)/etc/network/interfaces 123 124 125 ifeq ($(FWRT_NETWORK_WLAN_MODE_AP), y) 126 $(SED) "s/@FWRT_MODE@/ap/g" \ 127 $(IDIR_BASE_ARCH)/etc/network/interfaces 128 else ifeq ($(FWRT_NETWORK_WLAN_MODE_STA), y) 129 $(SED) "s/@FWRT_CHANNEL@/sta/g" \ 130 $(IDIR_BASE_ARCH)/etc/network/interfaces 131 endif 132 133 134 ifeq ($(FWRT_NETWORK_WLAN_SECURITY_NONE), y) 135 $(SED) "s/@FWRT_SECURITY@/none/g" \ 136 $(IDIR_BASE_ARCH)/etc/network/interfaces 137 else ifeq ($(FWRT_NETWORK_WLAN_SECURITY_WEP), y) 138 $(SED) "s/@FWRT_SECURITY@/wep/g" \ 139 $(IDIR_BASE_ARCH)/etc/network/interfaces 140 141 cat ./files/interfaces.wlan.wep >> $(IDIR_BASE_ARCH)/etc/network/interfaces 142 143 ifeq ($(FWRT_NETWORK_WLAN_AUTORIZATION_OPEN), y) 144 $(SED) "s/@FWRT_AUTH@/open/g" \ 145 $(IDIR_BASE_ARCH)/etc/network/interfaces 146 else ifeq ($(FWRT_NETWORK_WLAN_AUTORIZATION_SHARED), y) 147 $(SED) "s/@FWRT_AUTH@/shared/g" \ 148 $(IDIR_BASE_ARCH)/etc/network/interfaces 149 else ifeq ($(FWRT_NETWORK_WLAN_AUTORIZATION_OPEN_AND_SHARED), y) 150 $(SED) "s/@FWRT_AUTH@/open+shared/g" \ 151 $(IDIR_BASE_ARCH)/etc/network/interfaces 152 endif 153 154 $(SED) "s/@FWRT_KEY@/$(FWRT_NETWORK_WLAN_WEP_KEY)/g" \ 155 $(IDIR_BASE_ARCH)/etc/network/interfaces 156 157 else ifeq ($(FWRT_NETWORK_WLAN_SECURITY_WPA_PSK), y) 158 $(SED) "s/@FWRT_SECURITY@/wpa-psk/g" \ 159 $(IDIR_BASE_ARCH)/etc/network/interfaces 160 161 cat ./files/interfaces.wlan.wpa >> $(IDIR_BASE_ARCH)/etc/network/interfaces 162 163 ifeq ($(FWRT_NETWORK_WLAN_AUTORIZATION_PSK), y) 164 $(SED) "s/@FWRT_AUTH@/psk/g" \ 165 $(IDIR_BASE_ARCH)/etc/network/interfaces 166 else ifeq ($(FWRT_NETWORK_WLAN_AUTORIZATION_PSK2), y) 167 $(SED) "s/@FWRT_AUTH@/psk2/g" \ 168 $(IDIR_BASE_ARCH)/etc/network/interfaces 169 else ifeq ($(FWRT_NETWORK_WLAN_AUTORIZATION_PSK_PSK2), y) 170 $(SED) "s/@FWRT_AUTH@/psk psk2/g" \ 171 $(IDIR_BASE_ARCH)/etc/network/interfaces 172 endif 173 174 ifeq ($(FWRT_NETWORK_WLAN_ENCRYPTION_TKIP), y) 175 $(SED) "s/@FWRT_ENC@/tkip/g" \ 176 $(IDIR_BASE_ARCH)/etc/network/interfaces 177 else ifeq ($(FWRT_NETWORK_WLAN_ENCRYPTION_AES), y) 178 $(SED) "s/@FWRT_ENC@/aes/g" \ 179 $(IDIR_BASE_ARCH)/etc/network/interfaces 180 else ifeq ($(FWRT_NETWORK_WLAN_ENCRYPTION_AES_TKIP), y) 181 $(SED) "s/@FWRT_ENC@/aes+tkip/g" \ 182 $(IDIR_BASE_ARCH)/etc/network/interfaces 183 endif 184 185 $(SED) "s/@FWRT_KEY@/$(FWRT_NETWORK_WLAN_WPA_KEY)/g" \ 186 $(IDIR_BASE_ARCH)/etc/network/interfaces 187 188 $(SED) "s/@FWRT_REKEY@/$(FWRT_NETWROK_WLAN_WPA_GTK_REKEY)/g" \ 189 $(IDIR_BASE_ARCH)/etc/network/interfaces 190 191 else ifeq ($(FWRT_NETWORK_WLAN_SECURITY_802.1X), y) 192 $(SED) "s/@FWRT_SECURITY@/8021x/g" \ 193 $(IDIR_BASE_ARCH)/etc/network/interfaces 194 195 cat ./files/interfaces.wlan.8021x >> $(IDIR_BASE_ARCH)/etc/network/interfaces 196 197 ifeq ($(FWRT_NETWORK_WLAN_AUTORIZATION_OPEN), y) 198 $(SED) "s/@FWRT_AUTH@/open/g" \ 199 $(IDIR_BASE_ARCH)/etc/network/interfaces 200 else ifeq ($(FWRT_NETWORK_WLAN_AUTORIZATION_SHARED), y) 201 $(SED) "s/@FWRT_AUTH@/shared/g" \ 202 $(IDIR_BASE_ARCH)/etc/network/interfaces 203 else ifeq ($(FWRT_NETWORK_WLAN_AUTORIZATION_WPA), y) 204 $(SED) "s/@FWRT_AUTH@/wpa/g" \ 205 $(IDIR_BASE_ARCH)/etc/network/interfaces 206 else ifeq ($(FWRT_NETWORK_WLAN_AUTORIZATION_WPA2), y) 207 $(SED) "s/@FWRT_AUTH@/wpa2/g" \ 208 $(IDIR_BASE_ARCH)/etc/network/interfaces 209 else ifeq ($(FWRT_NETWORK_WLAN_AUTORIZATION_WPA_AND_WPA2), y) 210 $(SED) "s/@FWRT_AUTH@/wpa wpa2/g" \ 211 $(IDIR_BASE_ARCH)/etc/network/interfaces 212 endif 213 214 215 ifeq ($(FWRT_NETWORK_WLAN_ENCRYPTION_WEP), y) 216 $(SED) "s/@FWRT_ENC@/wep/g" \ 217 $(IDIR_BASE_ARCH)/etc/network/interfaces 218 else ifeq ($(FWRT_NETWORK_WLAN_ENCRYPTION_TKIP), y) 219 $(SED) "s/@FWRT_ENC@/tkip/g" \ 220 $(IDIR_BASE_ARCH)/etc/network/interfaces 221 else ifeq ($(FWRT_NETWORK_WLAN_ENCRYPTION_AES), y) 222 $(SED) "s/@FWRT_ENC@/aes/g" \ 223 $(IDIR_BASE_ARCH)/etc/network/interfaces 224 else ifeq ($(FWRT_NETWORK_WLAN_ENCRYPTION_AES_TKIP), y) 225 $(SED) "s/@FWRT_ENC@/aes+tkip/g" \ 226 $(IDIR_BASE_ARCH)/etc/network/interfaces 227 endif 228 229 230 ifeq ($(FWRT_NETWORK_WLAN_EAP_TLS), y) 231 $(SED) "s/@FWRT_EAP@/tls/g" \ 232 $(IDIR_BASE_ARCH)/etc/network/interfaces 233 else ifeq ($(FWRT_NETWORK_WLAN_EAP_TTLS), y) 234 $(SED) "s/@FWRT_EAP@/ttls/g" \ 235 $(IDIR_BASE_ARCH)/etc/network/interfaces 236 else ifeq ($(FWRT_NETWORK_WLAN_EAP_PEAP), y) 237 $(SED) "s/@FWRT_EAP@/peap/g" \ 238 $(IDIR_BASE_ARCH)/etc/network/interfaces 239 else ifeq ($(FWRT_NETWORK_WLAN_EAP_LEAP), y) 240 $(SED) "s/@FWRT_EAP@/LEAP/g" \ 241 $(IDIR_BASE_ARCH)/etc/network/interfaces 242 endif 243 244 $(SED) "s/@FWRT_REKEY@/$(FWRT_NETWROK_WLAN_WPA_GTK_REKEY)/g" \ 245 $(IDIR_BASE_ARCH)/etc/network/interfaces 246 247 248 $(SED) "s/@FWRT_RADIUS_IP@/$(FWRT_NETWORK_WLAN_RADIUS_IPADDR)/g" \ 249 $(IDIR_BASE_ARCH)/etc/network/interfaces 250 $(SED) "s/@FWRT_RADIUS_PORT@/$(FWRT_NETWORK_WLAN_RADIUS_PORT)/g" \ 251 $(IDIR_BASE_ARCH)/etc/network/interfaces 252 $(SED) "s/@FWRT_RADIUS_KEY@/$(FWRT_NETWORK_WLAN_RADIUS_KEY)/g" \ 253 $(IDIR_BASE_ARCH)/etc/network/interfaces 254 255 256 endif 257 258 endif 259 103 260 -find $(IDIR_BASE_ARCH) -type d -name CVS | xargs rm -rf 104 261 -find $(IDIR_BASE_ARCH) -type d -name .svn | xargs rm -rf -
package/base-files-arch/files/interfaces.wlan
r5d8cc76 r08f927f 1 # WLAN without encryption (for VPN users) 2 #auto @FWRT_WLAN@ 3 #iface @FWRT_WLAN@ inet static 4 # address 192.168.10.1 5 # netmask 255.255.255.0 6 # wireless-type broadcom 7 # wireless-country DE 8 # wireless-mode ap 9 # wireless-ssid FreeWRT 10 # wireless-channel 11 11 # wireless-security none 12 # 13 # WLAN with WPA2, MAC-Filter and WLAN-Speedup 14 #auto @FWRT_WLAN@ 15 #iface @FWRT_WLAN@ inet static 16 # address 192.168.10.1 17 # netmask 255.255.255.0 18 # wireless-type broadcom 19 # wireless-country DE 20 # wireless-mode ap 21 # wireless-ssid FreeWRT 22 # wireless-channel 11 23 # wireless-security wpa-psk 24 # wireless-authorization psk2 25 # wireless-encryption aes 26 # wireless-wpa-key MyWlanSecret 27 # wireless-macmode 2 28 # wireless-mac 00:01:02:03:04:05 06:07:08:09:0a:0b 29 # wireless-gmode performance 30 # wireless-frameburst 1 31 # wireless-afterburner 1 1 2 # WLAN port configuration 3 auto @FWRT_WLAN@ 4 iface @FWRT_WLAN@ inet static 5 address @FWRT_ADDRESS@ 6 netmask @FWRT_NETMASK@ 7 wireless-type @FWRT_TYPE@ 8 wireless-country @FWRT_COUNTRY@ 9 wireless-mode @FWRT_MODE@ 10 wireless-ssid @FWRT_SSID@ 11 wireless-channel @FWRT_CHANNEL@ 12 wireless-security @FWRT_SECURITY@
Note:
See TracChangeset
for help on using the changeset viewer.
