View previous topic :: View next topic |
Author |
Message |
snuck n00b
Joined: 26 Jun 2003 Posts: 40 Location: to your left
|
Posted: Sat Apr 16, 2005 11:17 pm Post subject: forwarding wired network connection to wireless... |
|
|
My main box is connected to my university network , and I want to use that to forward that connection to my new laptop. I'm thinking iptables/NAT, and dhcp on the main box. Will this work?
So far I've got the wireless network card on my main box working via ndiswrapper, and wpa_supplicant. However when I "/etc/init.d/net.wlan0 start" it times out. When I run wpa_supplicant manually it seems to be because it's searching for an AP, and can't find one, so it gives up...
How do I configure it so that it doesn't look for any thing, but lets other things look for it, so to speak?
Here is my /etc/wpa_supplicant.conf:
Code: |
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
ap_scan=2
network={
ssid="ssid_here"
mode=1
proto=WPA
key_mgmt=WPA-NONE
pairwise=NONE
group=TKIP
psk="psk_here"
} |
and my /etc/conf.d/n# /etc/conf.d/net:
Code: |
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $
# Global config file for net.* rc-scripts
# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
iface_eth0="dhcp"
#dhcpcd_eth0="..."
#wireless...
modules=( "wpa_supplicant" )
wpa_supplicant_wlan0="-Dndiswrapper"
iface_wlan0="192.168.0.100 broadcast 192.168.0.255 netmask 255.255.255.0"
|
Thanks for any help...
snuck. _________________ Do you wish you got insulted more? Well here's your chance... |
|
Back to top |
|
|
kill Apprentice
Joined: 25 Dec 2004 Posts: 179
|
Posted: Sat Apr 16, 2005 11:46 pm Post subject: |
|
|
It sounds like you want to use ad-hoc mode... |
|
Back to top |
|
|
snuck n00b
Joined: 26 Jun 2003 Posts: 40 Location: to your left
|
Posted: Sun Apr 17, 2005 10:22 am Post subject: |
|
|
any hints on how I this? _________________ Do you wish you got insulted more? Well here's your chance... |
|
Back to top |
|
|
thecooptoo Veteran
Joined: 27 Apr 2003 Posts: 1353 Location: UK
|
Posted: Sun Apr 17, 2005 1:46 pm Post subject: |
|
|
i did it by setting a dhcp server on the box with the wireless aeriel which gives out wireless IP addresses on wlan0 to the laptop . Shorewall passes all the information from wlan0 (wireless)(shorewall localzone) to eth0(wired)(shorewall net zone) and thence to the www.
Cross subnet browsing for windows isnt sorted yet.( need a wins server)
I think i can do it all with 1 DHCP server and route the wireless dhcp requests with shorewall when Ive got time
Code: |
dads etc # cat udhcpd.conf
# Sample udhcpd configuration file (/etc/udhcpd.conf)
# The start and end of the IP lease block
start 192.168.1.2 #default: 192.168.0.20
end 192.168.1.4 #default: 192.168.0.254
# The interface that udhcpd will use
interface wlan0 #default: eth0
#lease_file /var/lib/misc/udhcpd.leases #defualt: /var/lib/misc/udhcpd.leases
option dns 192.168.1.1 # appened to above DNS servers for a total of 3
option domain local
option lease 864000 # 10 days of seconds
dads etc #
|
Code: | dads shorewall # cat rules |grep -v '#'
AllowSSH net fw
AllowSSH loc fw
ACCEPT net fw icmp echo-request
ACCEPT loc fw icmp echo-request
dads shorewall #
|
_________________ join the optout - http://nhsconfidentiality.org |
|
Back to top |
|
|
|