Date: Sun, 07 Feb 2010 09:58:13 +0000 From: Matthew Seaman <m.seaman@black-earth.co.uk> To: Bill Tillman <btillman99@yahoo.com> Cc: help help <freebsd-questions@freebsd.org>, Mark <redtick@sbcglobal.net> Subject: Re: Wireless Access Point Message-ID: <4B6E8EB5.8000107@black-earth.co.uk> In-Reply-To: <855190.9850.qm@web36501.mail.mud.yahoo.com> References: <855190.9850.qm@web36501.mail.mud.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig24BC7D497DD34F5B6E3009C2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 06/02/2010 23:41, Bill Tillman wrote: > Yes, my dhcp server which is this same FreeBSD server with the > wireless NIC is pushing the gateway IP address 192.168.0.254 > =20 > This is my /etc/rc.conf file > =20 > hostname=3D"FreeBSD13.mydomain.com" > gateway_enable=3D"YES" > ifconfig_bge0=3D"DHCP" > inetd_enable=3D"YES" > nfs_client_enable=3D"YES" > nfs_server_enable=3D"YES" > rpcbind_enable=3D"YES" > sshd_enable=3D"YES" > wlans_ral0=3Dwlan0 > create_args_wlan0=3D"wlanmode hostap mode 11g" > ifconfig_wlan0=3D"inet 192.168.0.254 netmask 255.255.255.0 ssid freebsd= ap channel 11" > sendmail_enable=3D"NO" > natd_interface=3D"wlan0" > =20 > The wireless laptop is seeing the FreeBSD server and is connecting=20 > and getting an IP address. But I cannot get out to the Internet with > it. I really appreciate the advice gang. I know this thing is > probably simple and I just can't find the resolution. Hmmm... there's no indication there that you are running a DHCP server on that FreeBSD box. Still, it would be fairly obvious if DHCP wasn't working. The problem is that you're running natd on the wrong interface. natd should run on the upstream interface -- the one with the default route. The way you've got things configured, it's treating your wlan as the external world, and NAT'ing the internet. Hmmm... Seems your wired interface is similarly obtaining an IP from private addess space, so it in its turn must be being NATed somewhere upsteam in order to get Internet access. While double-NAT'ing your WLAN should work (most of the time, at least), it's a bit dodgy and could result in mysterious failures. You can avoid this, by configuring proxy servers on your FreeBSD machine -- this is a classic firewall design, by the way -- but that is quite a lot of work, and you have to set up proxies for all of the services your WLAN hosts need to access on the Internet. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard, Flat 3 Black Earth Consulting Ramsgate Kent, CT11 9PW Free and Open Source Solutions Tel: +44 (0)1843 580647 --------------enig24BC7D497DD34F5B6E3009C2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAktujr4ACgkQ8Mjk52CukIwXFACeN4oWjHHgYdy0xreM55yrC+Wi QFkAn14kx4r8qX4qFW7q2cMNesznUhU+ =m+jR -----END PGP SIGNATURE----- --------------enig24BC7D497DD34F5B6E3009C2--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B6E8EB5.8000107>