View Single Post

   
  #3 (permalink)  
Old 02-21-2008, 08:47 AM
student
 
Posts: n/a
Default Re: problems setting up gentoo as gateway

Ben Measures wrote:
> student wrote:
>
>>
>> client has no problems accessing internet
>> if I use win2k on the gateway.
>>
>> however, if without changing anything else,
>> I then switch to gentoo on the gateway,
>> client can only ping internet using IP (a.b.c.d) addresses;
>> it cannot ping internet using domain names
>> UNLESS I put the actual IP addresses of my ISP's nameservers
>> into client's '/etc/resolv.conf'
>>
>> what am I not doing on my gentoo gateway host that is
>> causing this problem?

>
>
> You need to setup DNS forwarding. Emerge named.
>
> Also, the following guide may help (not specifically for Gentoo):
> http://enterprise.linux.com/enterpri....shtml?tid=100
>
> Alternatively, you may be able to setup your DHCP server to issue the
> ISP nameservers (probably better).
>


Maybe it will help to narrow the range of possible answers if I show
how I start the wireless interface:

1. on the gateway:

a. execute shell script
-------------------------------------
# commands common to host and clients:

iwconfig wlan0 essid boogaloo
iwconfig wlan0 nick big_gentoo
iwconfig wlan0 mode ad-hoc
ifconfig wlan0 192.168.0.1 netmask 255.255.255.0 up

iwconfig wlan0 key off
iwconfig wlan0 key <password>
iwconfig wlan0 key restricted

sysctl -w net.ipv4.icmp_echo_ignore_all=0

# commands specific to hosts:

sysctl -w net.ipv4.ip_forward=1

# for dialup connections, this goes in /etc/ppp/ip-up.local:
#iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE

# this should be the last line in this file.
-----------------------------------------------------

b. start dhcpd

c. start named


2: on the client:

a. execute shell script
--------------------------------------
# commands common to host and clients:

iwconfig wlan0 essid boogaloo
iwconfig wlan0 nick little_fedora
iwconfig wlan0 mode ad-hoc
ifconfig wlan0 192.168.0.3 netmask 255.255.255.0 up

iwconfig wlan0 key off
iwconfig wlan0 key <password>
iwconfig wlan0 key restricted

sysctl -w net.ipv4.icmp_echo_ignore_all=0

# commands specific to clients:

route add default wlan0
route add default gw 192.168.0.1

# this should be the last line in this file.
----------------------------------------------

b. make sure named is *not* running.

What I am trying to figure out is,
specifically what is windows 2000 doing when it is the gateway that
gentoo is not doing when it is the gateway
and specifically how do I make gentoo do that?


HTH
Reply With Quote