Changeset 08f927f in freewrt


Ignore:
Timestamp:
Mar 19, 2007, 11:20:20 AM (19 years ago)
Author:
Christian Gmeiner <austriancoder@…>
Children:
18e4876
Parents:
5d8cc76
Message:

git-svn-id: svn://www.freewrt.org/trunk/freewrt@2195 afb5a338-a214-0410-bd46-81f09a774fd1

Location:
package
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • package/Config.in.network

    r5d8cc76 r08f927f  
    164164         Wireless LAN interface name
    165165
     166config 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
     173config 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
    166180choice
    167181prompt "Wireless mode"
    168182depends on FWRT_NETWORK_WLAN
     183
    169184config FWRT_NETWORK_WLAN_MODE_AP
    170185        bool "Accesspoint Mode (AP)"
     
    199214         Wireless channel settings are country specific
    200215
    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
     217menu "wireless security settings"
     218depends on FWRT_NETWORK_WLAN
     219
     220choice
     221prompt "security"
     222depends on FWRT_NETWORK_WLAN
     223config FWRT_NETWORK_WLAN_SECURITY_NONE
     224        bool "No authorization"
     225        help
     226         No authorization !very unsecure!
     227
     228config FWRT_NETWORK_WLAN_SECURITY_WEP
     229        bool "wep"
     230        help
     231         WEP key
     232
     233config FWRT_NETWORK_WLAN_SECURITY_WPA_PSK
     234        bool "wpa-psk"
     235        help
     236         WPA with preshared key
     237
     238config FWRT_NETWORK_WLAN_SECURITY_802.1X
     239        bool "802.1x"
     240        help
     241         IEEE 802.1X authentication
     242
     243endchoice
     244
     245choice
     246prompt "authorization"
     247depends on !FWRT_NETWORK_WLAN_SECURITY_NONE
     248
     249config 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
     255config 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
     261config 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
     267config FWRT_NETWORK_WLAN_AUTORIZATION_PSK
     268        bool "psk"
     269        depends on FWRT_NETWORK_WLAN_SECURITY_WPA_PSK
     270        help
     271          WPA PSK
     272
     273config FWRT_NETWORK_WLAN_AUTORIZATION_PSK2
     274        bool "psk2"
     275        depends on FWRT_NETWORK_WLAN_SECURITY_WPA_PSK
     276        help
     277          WPA2 PSK
     278
     279config 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
     285config FWRT_NETWORK_WLAN_AUTORIZATION_WPA
     286        bool "wpa"
     287        depends on FWRT_NETWORK_WLAN_SECURITY_802.1X
     288        help
     289          WPA with RADIUS
     290
     291config FWRT_NETWORK_WLAN_AUTORIZATION_WPA2
     292        bool "wpa2"
     293        depends on FWRT_NETWORK_WLAN_SECURITY_802.1X
     294        help
     295          WPA2 with RADIUS
     296
     297config 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
     303endchoice
     304
     305choice
     306prompt "encryption"
     307depends on FWRT_NETWORK_WLAN_SECURITY_WPA_PSK || FWRT_NETWORK_WLAN_SECURITY_802.1X
     308
     309config FWRT_NETWORK_WLAN_ENCRYPTION_TKIP
     310        bool "tkip"
     311        help
     312          RC4 encryption
     313
     314config FWRT_NETWORK_WLAN_ENCRYPTION_AES
     315        bool "aed"
     316        help
     317          AES encryption
     318
     319config FWRT_NETWORK_WLAN_ENCRYPTION_AES_TKIP
     320        bool "aes+tkip"
     321        help
     322          Support for RC4 and AES encryption
     323
     324config FWRT_NETWORK_WLAN_ENCRYPTION_WEP
     325        bool "wep"
     326        depends on FWRT_NETWORK_WLAN_SECURITY_802.1X
     327        help
     328          RC4 encryption (static)
     329
     330endchoice
     331
     332
     333choice
     334prompt "eap-type"
     335depends on FWRT_NETWORK_WLAN_SECURITY_802.1X
     336
     337config FWRT_NETWORK_WLAN_EAP_TLS
     338        bool "tls"
     339        help
     340          Transport Layer Security
     341
     342config FWRT_NETWORK_WLAN_EAP_TTLS
     343        bool "ttls"
     344        help
     345          Tunnelled TLS
     346
     347config FWRT_NETWORK_WLA_EAP_PEAP
     348        bool "peap"
     349        help
     350          Protected EAP
     351
     352config FWRT_NETWORK_WLAN_EAP_LEAP
     353        bool "leap"
     354        help
     355          Cisco Wireless
     356
     357endchoice
     358
     359menu "radius settings"
     360depends on FWRT_NETWORK_WLAN_SECURITY_802.1X
     361
     362config FWRT_NETWORK_WLAN_RADIUS_IPADDR
     363        string "radius ipaddr"
     364        default "0.0.0.0"
     365        help
     366          Transport Layer Security
     367
     368config FWRT_NETWORK_WLAN_RADIUS_PORT
     369        string "radius port"
     370        default "1812" 
     371        help
     372          RADIUS-Port# to connect
     373
     374config FWRT_NETWORK_WLAN_RADIUS_KEY
     375        string "radius key"
     376        help
     377          Shared Secret for connection to the Radius server
     378
    207379endmenu
     380
     381config 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
     387config 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
     393config 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
     400endmenu
     401
     402endmenu
  • package/base-files-arch/Makefile

    r5d8cc76 r08f927f  
    101101endif
    102102endif
     103
     104ifeq ($(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
     125ifeq ($(FWRT_NETWORK_WLAN_MODE_AP), y)
     126        $(SED) "s/@FWRT_MODE@/ap/g" \
     127                $(IDIR_BASE_ARCH)/etc/network/interfaces
     128else ifeq ($(FWRT_NETWORK_WLAN_MODE_STA), y)
     129        $(SED) "s/@FWRT_CHANNEL@/sta/g" \
     130                $(IDIR_BASE_ARCH)/etc/network/interfaces
     131endif
     132
     133
     134ifeq ($(FWRT_NETWORK_WLAN_SECURITY_NONE), y)
     135        $(SED) "s/@FWRT_SECURITY@/none/g" \
     136                $(IDIR_BASE_ARCH)/etc/network/interfaces
     137else 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
     143ifeq ($(FWRT_NETWORK_WLAN_AUTORIZATION_OPEN), y)
     144        $(SED) "s/@FWRT_AUTH@/open/g" \
     145                $(IDIR_BASE_ARCH)/etc/network/interfaces
     146else ifeq ($(FWRT_NETWORK_WLAN_AUTORIZATION_SHARED), y)
     147        $(SED) "s/@FWRT_AUTH@/shared/g" \
     148                $(IDIR_BASE_ARCH)/etc/network/interfaces
     149else ifeq ($(FWRT_NETWORK_WLAN_AUTORIZATION_OPEN_AND_SHARED), y)
     150        $(SED) "s/@FWRT_AUTH@/open+shared/g" \
     151                $(IDIR_BASE_ARCH)/etc/network/interfaces
     152endif
     153
     154        $(SED) "s/@FWRT_KEY@/$(FWRT_NETWORK_WLAN_WEP_KEY)/g" \
     155                $(IDIR_BASE_ARCH)/etc/network/interfaces
     156
     157else 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
     163ifeq ($(FWRT_NETWORK_WLAN_AUTORIZATION_PSK), y)
     164        $(SED) "s/@FWRT_AUTH@/psk/g" \
     165                $(IDIR_BASE_ARCH)/etc/network/interfaces
     166else ifeq ($(FWRT_NETWORK_WLAN_AUTORIZATION_PSK2), y)
     167        $(SED) "s/@FWRT_AUTH@/psk2/g" \
     168                $(IDIR_BASE_ARCH)/etc/network/interfaces
     169else ifeq ($(FWRT_NETWORK_WLAN_AUTORIZATION_PSK_PSK2), y)
     170        $(SED) "s/@FWRT_AUTH@/psk psk2/g" \
     171                $(IDIR_BASE_ARCH)/etc/network/interfaces
     172endif
     173
     174ifeq ($(FWRT_NETWORK_WLAN_ENCRYPTION_TKIP), y)
     175        $(SED) "s/@FWRT_ENC@/tkip/g" \
     176                $(IDIR_BASE_ARCH)/etc/network/interfaces
     177else ifeq ($(FWRT_NETWORK_WLAN_ENCRYPTION_AES), y)
     178        $(SED) "s/@FWRT_ENC@/aes/g" \
     179                $(IDIR_BASE_ARCH)/etc/network/interfaces
     180else ifeq ($(FWRT_NETWORK_WLAN_ENCRYPTION_AES_TKIP), y)
     181        $(SED) "s/@FWRT_ENC@/aes+tkip/g" \
     182                $(IDIR_BASE_ARCH)/etc/network/interfaces
     183endif
     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
     191else 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
     197ifeq ($(FWRT_NETWORK_WLAN_AUTORIZATION_OPEN), y)
     198        $(SED) "s/@FWRT_AUTH@/open/g" \
     199                $(IDIR_BASE_ARCH)/etc/network/interfaces
     200else ifeq ($(FWRT_NETWORK_WLAN_AUTORIZATION_SHARED), y)
     201        $(SED) "s/@FWRT_AUTH@/shared/g" \
     202                $(IDIR_BASE_ARCH)/etc/network/interfaces
     203else ifeq ($(FWRT_NETWORK_WLAN_AUTORIZATION_WPA), y)
     204        $(SED) "s/@FWRT_AUTH@/wpa/g" \
     205                $(IDIR_BASE_ARCH)/etc/network/interfaces
     206else ifeq ($(FWRT_NETWORK_WLAN_AUTORIZATION_WPA2), y)
     207        $(SED) "s/@FWRT_AUTH@/wpa2/g" \
     208                $(IDIR_BASE_ARCH)/etc/network/interfaces
     209else ifeq ($(FWRT_NETWORK_WLAN_AUTORIZATION_WPA_AND_WPA2), y)
     210        $(SED) "s/@FWRT_AUTH@/wpa wpa2/g" \
     211                $(IDIR_BASE_ARCH)/etc/network/interfaces
     212endif
     213
     214
     215ifeq ($(FWRT_NETWORK_WLAN_ENCRYPTION_WEP), y)
     216        $(SED) "s/@FWRT_ENC@/wep/g" \
     217                $(IDIR_BASE_ARCH)/etc/network/interfaces
     218else ifeq ($(FWRT_NETWORK_WLAN_ENCRYPTION_TKIP), y)
     219        $(SED) "s/@FWRT_ENC@/tkip/g" \
     220                $(IDIR_BASE_ARCH)/etc/network/interfaces
     221else ifeq ($(FWRT_NETWORK_WLAN_ENCRYPTION_AES), y)
     222        $(SED) "s/@FWRT_ENC@/aes/g" \
     223                $(IDIR_BASE_ARCH)/etc/network/interfaces
     224else ifeq ($(FWRT_NETWORK_WLAN_ENCRYPTION_AES_TKIP), y)
     225        $(SED) "s/@FWRT_ENC@/aes+tkip/g" \
     226                $(IDIR_BASE_ARCH)/etc/network/interfaces
     227endif
     228
     229
     230ifeq ($(FWRT_NETWORK_WLAN_EAP_TLS), y)
     231        $(SED) "s/@FWRT_EAP@/tls/g" \
     232                $(IDIR_BASE_ARCH)/etc/network/interfaces
     233else ifeq ($(FWRT_NETWORK_WLAN_EAP_TTLS), y)
     234        $(SED) "s/@FWRT_EAP@/ttls/g" \
     235                $(IDIR_BASE_ARCH)/etc/network/interfaces
     236else ifeq ($(FWRT_NETWORK_WLAN_EAP_PEAP), y)
     237        $(SED) "s/@FWRT_EAP@/peap/g" \
     238                $(IDIR_BASE_ARCH)/etc/network/interfaces
     239else ifeq ($(FWRT_NETWORK_WLAN_EAP_LEAP), y)
     240        $(SED) "s/@FWRT_EAP@/LEAP/g" \
     241                $(IDIR_BASE_ARCH)/etc/network/interfaces
     242endif
     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
     256endif
     257
     258endif
     259
    103260        -find $(IDIR_BASE_ARCH) -type d -name CVS | xargs rm -rf
    104261        -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
     3auto @FWRT_WLAN@
     4iface @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.