Erinevus lehekülje "FreeBSD wifi ap" redaktsioonide vahel

Allikas: Kuutõrvaja
 
 
(ei näidata sama kasutaja 18 vahepealset redaktsiooni)
1. rida: 1. rida:
pccard_enable="YES" # Set to YES if you want to configure PCCARD devices.
+
Antud õpetus räägib kuidas enda wifi kaarti sisaldab FreeBSD ruuter
pccard_ifconfig="inet 10.0.0.2 netmask 255.255.255.0"
+
muuta wifi ruuteriks ehk access point'iks.
  
 +
Antud näites on kasutatud pcmci orinoco silver kaarte ning isa siini pcmci üleminekuid.
  
ipnat_enable="YES"
+
[[Pilt:Picture 0323.jpg]]
ipnat_rules="/etc/ipnat.conf"
 
  
dhcpd_enable="YES"
+
[[Pilt:Picture 0403.jpg]]
dhcpd_flags="-q"                              # command option(s)
 
dhcpd_conf="/usr/local/etc/dhcpd.conf"      # configuration file
 
dhcpd_ifaces="wi0"                            # ethernet interface(s)
 
  
pccard_enable="YES" # Set to YES if you want to configure PCCARD devices.
+
[[Pilt:Picture 0021.jpg]]
  
#nati pordid
 
map ed0 192.168.0.0/24 -> 0.0.0.0/32 portmap tcp/udp 40000:65000
 
map ed0 192.168.0.0/24 -> 0.0.0.0/32
 
  
default-lease-time 21600;
+
Muudame '''rc.conf''''i '''/etc''' kataloomas
max-lease-time 7200;
+
Enne peame kindlaks tegema enda wifi kaardi ja sisevõrgu kaardi nime. Antud näites on wifikaart '''wi0'''
ddns-update-style none;
+
ja sisevõrk '''ed0'''
log-facility local7;
 
ignore client-updates;
 
  
subnet 192.168.3.0 netmask 255.255.255.0 {
 
  range 192.168.3.5 192.168.3.200;
 
  option subnet-mask 255.255.255.0;
 
  option broadcast-address 192.168.3.255;
 
  option routers 192.168.3.1;
 
  option domain-name-servers 194.126.115.18, 194.126.101.34;
 
}
 
  
 +
pccard_enable="YES" # Set to YES if you want to configure PCCARD devices.
 +
pccard_ifconfig="inet 192.168.3.1 netmask 255.255.255.0"
  
 +
Need read on vajalikud ainult siis kui kasutate pcmci kaarti üle ISA silla nagu mina
  
 +
ipnat_enable="YES"
 +
ipnat_rules="/etc/ipnat.conf"
  
 +
Lubame nat'i
  
wireless.sh
+
dhcpd_enable="YES"
 +
dhcpd_flags="-q"                              # command option(s)
 +
dhcpd_conf="/usr/local/etc/dhcpd.conf"      # configuration file
 +
dhcpd_ifaces="wi0"                            # ethernet interface(s)
  
#!/bin/sh
+
dhcpd server tööle
  
# Created: 10 July 2002
 
# Maintained by: Steven N. Fettig - freebsd-ap@stevenfettig.com
 
# Last modified: 23 July 2002
 
  
# This script was created off suggestions found in:
+
/etc/ipnat.conf'i nat'i tegemine. Võrgukaart millest tuleb internet masinasse on ed0
# http://www.samag.com/documents/s=7121/sam0205a/sam0205a.htm
 
# For more information on the controls used in this script, PLEASE
 
# 'man wicontrol' - it is chock full of important settings/info.
 
# Remember also that 'wicontrol' is used for wi based PC Cards. If
 
# for example, you are using an Aeronet card, your actual command
 
# will be 'ancontrol'. Again, make sure to man xxxcontrol for the
 
# proper documentation.
 
  
# Set the channel of the wireless network to 5
+
#nati pordid
wicontrol -f 5
+
map ed0 192.168.0.0/24 -> 0.0.0.0/32 portmap tcp/udp 40000:65000
 +
map ed0 192.168.0.0/24 -> 0.0.0.0/32
  
# Set the wifi adapter to infrastructure mode - i.e. we do not
+
installime isc-dhcpd3-server ja teeme talle konfiguratsiooni /usr/local/etc/dhcpd.conf
# want the network set in ad hoc mode.
 
wicontrol -p 1
 
  
# Set the extension of BSS to IBSS. Currently, the switch -c that
+
default-lease-time 21600;
# changes that setting doesn't completely work for wicontrol but
+
max-lease-time 7200;
# should in the future. Refer to 'man wicontrol' for more information.
+
ddns-update-style none;
wicontrol -c 1
+
log-facility local7;
 +
ignore client-updates;
 +
 +
subnet 192.168.3.0 netmask 255.255.255.0 {
 +
  range 192.168.3.5 192.168.3.200;
 +
  option subnet-mask 255.255.255.0;
 +
  option broadcast-address 192.168.3.255;
 +
  option routers 192.168.3.1;
 +
  option domain-name-servers 194.126.115.18, 194.126.101.34;
 +
}
  
# name the server and AP (this is primarily used for diagnostic
+
Skript mis stardib wifi võrku jagamise
# controls see 'man wicontrol').
 
wicontrol -s "myap"
 
  
# Set the WEP key (change this accordingly)
+
wireless.sh
wicontrol -k "12345"
+
 
+
#!/bin/sh
# Enable WEP
+
wicontrol -e 1
+
# Created: 10 July 2002
 +
# Maintained by: Steven N. Fettig - freebsd-ap@stevenfettig.com
 +
# Last modified: 23 July 2002
 +
 +
# This script was created off suggestions found in:
 +
# http://www.samag.com/documents/s=7121/sam0205a/sam0205a.htm
 +
# For more information on the controls used in this script, PLEASE
 +
# 'man wicontrol' - it is chock full of important settings/info.
 +
# Remember also that 'wicontrol' is used for wi based PC Cards. If
 +
# for example, you are using an Aeronet card, your actual command
 +
# will be 'ancontrol'. Again, make sure to man xxxcontrol for the
 +
# proper documentation. 
 +
 +
# Set the channel of the wireless network to 5
 +
'''wicontrol -f 5'''
 +
 +
# Set the wifi adapter to infrastructure mode - i.e. we do not
 +
# want the network set in ad hoc mode.
 +
'''wicontrol -p 1'''
 +
 +
# Set the extension of BSS to IBSS. Currently, the switch -c that
 +
# changes that setting doesn't completely work for wicontrol but
 +
# should in the future. Refer to 'man wicontrol' for more information.
 +
'''wicontrol -c 1'''
 +
 +
# name the server and AP (this is primarily used for diagnostic
 +
# controls see 'man wicontrol').
 +
'''wicontrol -s "myap"'''
 +
 +
# Seadistame wep võtme (muuda endale sobivaks)
 +
'''wicontrol -k "12345"'''
 +
 +
# Lubame WEP'i
 +
'''wicontrol -e 1'''
 +
 +
# Muudame SSID nime enda wifiruuteril
 +
'''ifconfig wi0 ssid "myap"'''
 +
 +
# Anname wifi kaardile ip. See hakkab olema nüüd gw ip edaspidi kõigile klientidele
 +
'''ifconfig wi0 inet 192.168.3.1 netmask 255.255.255.0'''
  
# set the SSID of your AP
 
ifconfig wi0 ssid "myap"
 
  
# set the IP and netmask of the wifi card - this is going
+
--[[Kasutaja:Jj|Jj]] 12. november 2007, kell 14:27 (EET)
# to be the gateway ip
 
ifconfig wi0 inet 10.2.3.1 netmask 255.255.255.0
 

Viimane redaktsioon: 12. november 2007, kell 15:29

Antud õpetus räägib kuidas enda wifi kaarti sisaldab FreeBSD ruuter muuta wifi ruuteriks ehk access point'iks.

Antud näites on kasutatud pcmci orinoco silver kaarte ning isa siini pcmci üleminekuid.

Picture 0323.jpg

Picture 0403.jpg

Picture 0021.jpg


Muudame rc.conf'i /etc kataloomas Enne peame kindlaks tegema enda wifi kaardi ja sisevõrgu kaardi nime. Antud näites on wifikaart wi0 ja sisevõrk ed0


pccard_enable="YES" # Set to YES if you want to configure PCCARD devices.
pccard_ifconfig="inet 192.168.3.1 netmask 255.255.255.0"

Need read on vajalikud ainult siis kui kasutate pcmci kaarti üle ISA silla nagu mina

ipnat_enable="YES"
ipnat_rules="/etc/ipnat.conf"

Lubame nat'i

dhcpd_enable="YES"
dhcpd_flags="-q"                              # command option(s)
dhcpd_conf="/usr/local/etc/dhcpd.conf"      # configuration file
dhcpd_ifaces="wi0"                             # ethernet interface(s)

dhcpd server tööle


/etc/ipnat.conf'i nat'i tegemine. Võrgukaart millest tuleb internet masinasse on ed0

#nati pordid
map ed0 192.168.0.0/24 -> 0.0.0.0/32 portmap tcp/udp 40000:65000
map ed0 192.168.0.0/24 -> 0.0.0.0/32

installime isc-dhcpd3-server ja teeme talle konfiguratsiooni /usr/local/etc/dhcpd.conf

default-lease-time 21600;
max-lease-time 7200;
ddns-update-style none;
log-facility local7;
ignore client-updates;

subnet 192.168.3.0 netmask 255.255.255.0 {
  range 192.168.3.5 192.168.3.200;
  option subnet-mask 255.255.255.0;
  option broadcast-address 192.168.3.255;
  option routers 192.168.3.1;
  option domain-name-servers 194.126.115.18, 194.126.101.34;
}

Skript mis stardib wifi võrku jagamise

wireless.sh

#!/bin/sh

# Created: 10 July 2002
# Maintained by: Steven N. Fettig - freebsd-ap@stevenfettig.com
# Last modified: 23 July 2002 

# This script was created off suggestions found in:
# http://www.samag.com/documents/s=7121/sam0205a/sam0205a.htm
# For more information on the controls used in this script, PLEASE
# 'man wicontrol' - it is chock full of important settings/info.
# Remember also that 'wicontrol' is used for wi based PC Cards. If
# for example, you are using an Aeronet card, your actual command
# will be 'ancontrol'. Again, make sure to man xxxcontrol for the 
# proper documentation.  

# Set the channel of the wireless network to 5
wicontrol -f 5

# Set the wifi adapter to infrastructure mode - i.e. we do not
# want the network set in ad hoc mode.
wicontrol -p 1

# Set the extension of BSS to IBSS. Currently, the switch -c that 
# changes that setting doesn't completely work for wicontrol but 
# should in the future. Refer to 'man wicontrol' for more information.
wicontrol -c 1

# name the server and AP (this is primarily used for diagnostic 
# controls see 'man wicontrol').
wicontrol -s "myap"

# Seadistame wep võtme (muuda endale sobivaks)
wicontrol -k "12345"

# Lubame WEP'i
wicontrol -e 1

# Muudame SSID nime enda wifiruuteril
ifconfig wi0 ssid "myap"

# Anname wifi kaardile ip. See hakkab olema nüüd gw ip edaspidi kõigile klientidele
ifconfig wi0 inet 192.168.3.1 netmask 255.255.255.0


--Jj 12. november 2007, kell 14:27 (EET)