Brummiejim
2007-04-09, 07:31 AM CDT
hi,
I'm running Fedora Core 5 and have installed the Madwifi drivers to get it run as a wireless access point, via Iptables and dhcpd. I've created a file sysconfig/networking/devices/ifcfg-ath0 which contains the following;
DEVICE=ath0
BOOTPROTO=
ONBOOT=yes
DHCP_HOSTNAME=
IPADDR=192.168.1.1
DOMAIN=
NETMASK=255.255.255.0
HWADDR=00:0E:2E:90:50:EB
USERCTL=no
IPV6INIT=no
PEERDNS=yes
TYPE=Wireless
ESSID=psilocybin
CHANNEL=1
MODE=Master
RATE=Auto
but when it boots up it comes up with all the correct options , except it gives me a
set Mode 8B06 invalid argument for ath0 and starts in managed rather than master mode.
I can get it to come up in Master mode using first two lines from the following in rc.local.
wlanconfig ath0 destroy
wlanconfig ath create wlandev wifi0 wlanmode ap
/etc/rc.d/init.d/dhcpd restart
/root/newiptables
unfortunately the bottom two lines don't seem to have any effect and to get the computer to start properly as an access point I have to log in as root and issue them manually. I saved the rules using the command /etc/rc.d/init.d iptables save after setting the rules.
/sbin/iptables -L shows that all of the rules have been loaded correctly, but dhcpd reports not having started.
Also, when I have started dhcpd, it doesn't add any entries to the file, /var/lib/dhcpd/dhcpd.leases. I'm not sure if this is related to the above problem or not.
All the config files work when ran manually, just not on startup. Any ideas? If you need more information, just let me know.
Thanks!
I'm running Fedora Core 5 and have installed the Madwifi drivers to get it run as a wireless access point, via Iptables and dhcpd. I've created a file sysconfig/networking/devices/ifcfg-ath0 which contains the following;
DEVICE=ath0
BOOTPROTO=
ONBOOT=yes
DHCP_HOSTNAME=
IPADDR=192.168.1.1
DOMAIN=
NETMASK=255.255.255.0
HWADDR=00:0E:2E:90:50:EB
USERCTL=no
IPV6INIT=no
PEERDNS=yes
TYPE=Wireless
ESSID=psilocybin
CHANNEL=1
MODE=Master
RATE=Auto
but when it boots up it comes up with all the correct options , except it gives me a
set Mode 8B06 invalid argument for ath0 and starts in managed rather than master mode.
I can get it to come up in Master mode using first two lines from the following in rc.local.
wlanconfig ath0 destroy
wlanconfig ath create wlandev wifi0 wlanmode ap
/etc/rc.d/init.d/dhcpd restart
/root/newiptables
unfortunately the bottom two lines don't seem to have any effect and to get the computer to start properly as an access point I have to log in as root and issue them manually. I saved the rules using the command /etc/rc.d/init.d iptables save after setting the rules.
/sbin/iptables -L shows that all of the rules have been loaded correctly, but dhcpd reports not having started.
Also, when I have started dhcpd, it doesn't add any entries to the file, /var/lib/dhcpd/dhcpd.leases. I'm not sure if this is related to the above problem or not.
All the config files work when ran manually, just not on startup. Any ideas? If you need more information, just let me know.
Thanks!