Am 26.11.2011 17:44, schrieb Tom Horsley:
On Sat, 26 Nov 2011 17:25:16 +0100
Reindl Harald wrote:
> hi
>
> does anybody know what hardware and configuraion-steps are needed to get
> a fedora-pc working as WLAN access-point with WPA/WPA2
Good luck - you'll need it :-)
not really, with the right hardware it is easier than ever thought
my main problem was o find the right hardware and price does not matter
here because you will always buy headache while save money
http://www.dlink.com/products/?pid=549
___________________________________________________
[root@srv-rhsoft:~]$ cat /etc/systemd/system/hostapd.service
[Unit]
Description=Wireless-AP
After=network.target network-wlan-bridge.service
[Service]
Type=forking
ExecStart=/usr/sbin/hostapd -B /etc/hostapd/hostapd.conf
Restart=always
RestartSec=1
[Install]
WantedBy=multi-user.target
___________________________________________________
[root@srv-rhsoft:~]$ cat /etc/systemd/system/network-wlan-bridge.service
[Unit]
Description=Wireless-AP-Bridge
After=network.service
Before=dhcpd.service network-wlan-bridge.service
[Service]
Type=oneshot
ExecStart=/usr/local/bin/wlan-bridge.sh start
[Install]
WantedBy=multi-user.target
___________________________________________________
[root@srv-rhsoft:~]$ cat /usr/local/bin/wlan-bridge.sh
#!/bin/bash
br="br0"
eth="eth0"
eth_ip="192.168.1.2"
eth_netmask="255.255.255.0"
eth_broadcast="192.168.1.255"
start_bridge () {
ifconfig $eth 0.0.0.0 promisc up
brctl addbr $br
brctl addif $br $eth
ifconfig $br $eth_ip netmask $eth_netmask broadcast $eth_broadcast up
}
stop_bridge () {
ifconfig $br down
brctl delbr $br
ifconfig $eth $eth_ip netmask $eth_netmask broadcast $eth_broadcast up
}
case "$1" in
start)
echo "Starting Bridge"
start_bridge
;;
stop)
echo "Stopping Bridge"
stop_bridge
;;
restart)
stop_bridge
sleep 1
start_bridge
;;
*)
echo "Usage: $0 {start|stop|restart}" >&2
exit 1
;;
esac
___________________________________________________
[root@srv-rhsoft:~]$ cat /etc/hostapd/hostapd.conf
# default settings
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
auth_algs=1
ignore_broadcast_ssid=0
macaddr_acl=1
accept_mac_file=/etc/hostapd/accept
# login-data
ssid=rhsoft-hardened
wpa_passphrase=*******************
# wpa2-only support
wpa=2
rsn_pairwise=CCMP
# local configuration
interface=wlan0
bridge=br0
driver=nl80211
hw_mode=g
ieee80211n=1
wme_enabled=1
wmm_enabled=1
channel=13
country_code=AT
# logging
# 0 = verbose debugging
# 1 = debugging
# 2 = informational messages
# 3 = notification
# 4 = warning
logger_syslog=-1
logger_syslog_level=2