Вопрос: Это проблемы настройки? Или это принципиальаня железная несовместимость?
Windows 7 Pro адаптер Broadcom 802.11n не подключатся перед этом пишить "Проверка проверить подлинность" или "Идентификация" а и видит сеть ни как g а как n
Имею гадский PCI адаптер rt28600, гадский потом что FreeBSD 8.1 о нем ничего не знает, но благодоря чешским парням и какому то эмулятору во freeBSD он работает!!! Сервер настроен работает, 3 интерфейса, раздает интернет по LAN и WIFI, все рабоатет, даже NETAMS, но пока не раскладывает статистку по портам... (в дальнейшем будеи прекручиватьс squid)
ifconfig
Код: Выделить всё
rt28600: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
ether e0:cb:4e:a0:48:26
media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng <hostap>
status: running
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=389b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_UCAST,WOL_MCAST,WOL_MAGIC>
ether 00:25:90:00:d5:84
inet 10.10.30.80 netmask 0xffffff00 broadcast 10.10.30.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=389b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_UCAST,WOL_MCAST,WOL_MAGIC>
ether 00:25:90:00:d5:85
inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
ipfw0: flags=8801<UP,SIMPLEX,MULTICAST> metric 0 mtu 65536
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=3<RXCSUM,TXCSUM>
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether e0:cb:4e:a0:48:26
inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255
media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng <hostap>
status: running
ssid tts_mobil channel 7 (2442 MHz 11g ht/40+) bssid e0:cb:4e:a0:48:26
regdomain NONE country RU authmode WPA2/802.11i privacy MIXED
deftxkey 2 AES-CCM 2:128-bit txpower 30 scanvalid 60 protmode CTS
ampdulimit 32k shortgi wme burst dtimperiod 1 -dfs
Код: Выделить всё
whereis git
git: /usr/ports/devel/git
cd /usr/ports/devel/git
make
make install
reboot
# cd /path/to/your/ralink_drivers.git/incarnation
# git clone --local git://repo.or.cz/ralink_drivers/rt2860_fbsd8.git
# cd rt2860_fbsd8
# make
# cp rt2860.ko /boot/kernel/
# echo 'rt2860_load="YES"' >> /boot/loader.conf
# kldload rt2860.ko
# ifconfig wlan0 create wlandev rt28600
Код: Выделить всё
interface=wlan0
hw_mode=g
macaddr_acl=0
auth_algs=1
ssid=tts_mobil
ctrl_interface=/var/run/hostapd
ctrl_interface_group=wheel
wpa=2
wpa_passphrase=12345678asdfgh
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP
rsn_pairwise=CCMP
Код: Выделить всё
option domain-name "dhcp";
ddns-update-style none;
#deny client-updates;
option domain-name-servers 10.10.30.80;
option subnet-mask 255.255.255.0;
#authoritative;
#max-lease-time 72000;
subnet 192.168.0.0 netmask 255.255.255.0
{
interface re1;
range 192.168.0.100 192.168.0.125;
option routers 192.168.0.1;
option domain-name-servers 10.10.30.80;
}
subnet 192.168.1.0 netmask 255.255.255.0
{
interface wlan0;
range 192.168.1.100 192.168.1.115;
option routers 192.168.1.1;
option domain-name-servers 10.10.30.80;
}
Код: Выделить всё
gateway_enable="YES"
keymap="ru.koi8-r"
scrnmap="koi8-r2cp866"
font8x16="cp866-8x16"
font8x14="cp866-8x14"
font8x8="cp866-8x8"
sshd_enable="YES"
ifconfig_wlan0="inet 192.168.1.1/24"
wlans_rt28600="wlan0"
create_args_wlan0="wlanmode hostap country RU"
hostapd_enable="YES"
dhcpd_enable="YES"
dhcpd_flags="-q"
dhcpd_ifaces="wlan0"
dhcpd_ifaces="re1"
dhcpd_conf="/usr/local/etc/dhcpd.conf"
firewall_enable="YES"
firewall_type="/etc/rc.firewall"
firewall_logging="YES"
natd_enable="YES"
natd_interface="re0"
natd_flags="-m -u"
# -- sysinstall generated deltas -- # Mon Aug 30 20:45:59 2010
ifconfig_re0="inet 10.10.30.80 netmask 255.255.255.0"
ifconfig_re1="inet 192.168.0.1 netmask 255.255.255.0"
defaultrouter="10.10.30.71"
route_lan1="-net 192.168.0.0/24 10.10.30.80"
route_lan2="-net 192.168.1.0/24 10.10.30.80"
hostname="mobil"
mysql_enable="YES"
mysql_dbdir="/usr/mysql"
apache22_enable="YES"
netams_enable="YES"
totd_enable="YES"
apcupsd_enable="YES"
Код: Выделить всё
##!/bin/sh
FwCMD="/sbin/ipfw"
lanout="re0"
lanin="re1"
lanin2="wlan0"
ipout="10.10.30.80"
ipin="192.168.0.1"
ipin2="192.168.1.1"
netin="192.168.0.0/24"
netin2="192.168.1.0/24"
# Sbrasyvaem vse pravila:
${FwCMD} -f flush
# Proverjaem - sootvetstvuet li paket dinamicheskim pravilam:
#${FwCMD} add allow all from any to any via ${lanin}
#${FwCMD} add allow all from ${lanin} to any 80 via ${lanout}
${FwCMD} add allow ip from any to 127.0.0.1
${FwCMD} add allow ip from 127.0.0.1 to any
${FwCMD} add allow all from any to any via lo0
${FwCMD} add check-state
# ROUTING
${FwCMD} add divert 199 ip from any to any out xmit ${lanout}
${FwCMD} add divert natd ip from any to any out via ${lanout}
${FwCMD} add divert natd ip from any to me in via ${lanout}
${FwCMD} add divert 199 ip from any to any in recv ${lanout}
${FwCMD} add allow tcp from any to any established
${FwCMD} add allow ip from ${ipout} to any out xmit ${lanout}
#${FwCMD} add allow ip from ${ipin} to any out via ${lanout}
${FwCMD} add allow udp from any 53 to any via ${lanout}
${FwCMD} add allow udp from any to any 53 via ${lanout}
#${FwCMD} add allow ip from any to ${netin} in via ${lanin}
#${FwCMD} add allow ip from ${netin} to any out via ${lanin}
#HTTP
${FwCMD} add allow tcp from any to ${ipout} 80 in via ${lanout} setup
${FwCMD} add allow tcp from any to ${ipin} 80 in via ${lanin} setup
# PING
${FwCMD} add allow icmp from any to any out via ${lanout} keep-state
${FwCMD} add allow icmp from any to any in via ${lanout}
# RAZRESHENO
#local ping tcp udp
${FwCMD} add allow tcp from any to any 80 via ${lanin}
${FwCMD} add allow tcp from any to any 443 via ${lanin}
${FwCMD} add allow icmp from any to any via ${lanin}
${FwCMD} add allow tcp from any to any 80 via ${lanin2}
${FwCMD} add allow tcp from any to any 443 via ${lanin2}
${FwCMD} add allow icmp from any to any via ${lanin2}
#SAMBA
${FwCMD} add allow tcp from any to any 135,137,138,139,445 via ${lanin2}
${FwCMD} add allow udp from any to any 135,137,138,139,445 via ${lanin2}
${FwCMD} add allow tcp from any to any 135,137,138,139,445 via ${lanin}
${FwCMD} add allow udp from any to any 135,137,138,139,445 via ${lanin}
#DHCP
${FwCMD} add allow udp from any to any 67,68 via ${lanin}
${FwCMD} add allow udp from any to any 67,68 via ${lanin2}
#DNS
${FwCMD} add allow udp from any to any via ${lanin2}
${FwCMD} add allow udp from any to any via ${lanin}
# SSH
#${FwCMD} add allow tcp from ${ipout} to any 22 out via ${lanout} keep-state
${FwCMD} add allow tcp from 10.10.30.74 to ${ipout} 22 via ${lanout} keep-stat
e
#${FwCMD} add allow tcp from any to ${ipout} 22 via ${lanout}
#${FwCMD} add divert 199 ip from 0.0.0.0/24 to any out xmit ${lanout}
#${FwCMD} add divert 199 ip from any to 0.0.0.0/24 in recv ${lanout}
${FwCMD} add deny all from any to any