[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dhcp server + router setup



Hola.

If you pcs can find the ip address of web servers, I guess you've already
done this. Anyway, I will ask just to be sure.

For FTP you might need to use pasive ftp.
For HTTP... Do you have any invalid proxys configured in you web browsers?

Have you  "echo 1 > /proc/sys/net/ipv4/ip_forward" ?

you can also change this in /etc/network/options
ip_forward = yes

You also have to add a line like:

# iptables -t nat -A POSTROUTING -s 192.168.0.0/255.255.255.0 -o ppp0
-j SNAT --to-source 200.55.101.8

--to-source parameter should be the ip of the outgoing interface.

On Apr 1, 2005 11:52 AM, Debian <debian@limpro.com.ar> wrote:
> Hi, i´m trying to setup a dhcp server and router.
> 
> I´m running GNU/Linux Debian (woody) with 2 nics:
> 
> eth0 => ADSL
> 
> eth1 => LAN
> 
> The problem is:
> 
> The server assigns the ip address to the other machines (2 w98 + 2 wXP), i
> can share files and printers between the winows machines, but when i want to
> go out to the internet, i can´t.
> 
> The web browser finds the ip address of the website but i can´t download any
> data. Idem with ftp.
> 
> I think (after reading something over there) the problem has something to do
> with DNS, but i can´t solve it!.
> 
> Hope i was clear.
> 
> Thank you!
> 
> Here are my conf files:
> 
> 1.) /etc/network/interfaces:
> 
> # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
> 
> # The loopback interface
> 
> auto lo
> 
> iface lo inet loopback
> 
> # The first network card - this entry was created during the Debian
> installation
> #auto eth1
> #iface eth1 inet dhcp
> 
> # modificación
> auto eth1
> iface eth1 inet static
>         address 192.168.0.1
>         netmask 255.255.255.0
> 
> 2.) ifconfig:
> eth0    Link encap:Ethernet HWaddr 00:00:21:61:8B:02
>         UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>         ...
>         Interrupt:10 Base address:0xec00
> 
> eth1    Link encap:Ethernet HWaddr 00:50:FC:3A:45:78
>         inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
>         UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>         ...
>         Interrupt:11 Base address:0xc000
> 
> lo      Link encap:Local Loopback
>         inet addr:127.0.0.1 Mask:255.0.0.0
>         UP LOOPBACK RUNNING MTU:16436 Metric:1
>         ...
> 
> ppp0    Link encap:Point-to-Point Protocol
>         inet addr:200.55.101.8 P-t-P:200.127.108.1 Mask:255.255.255.255
>         UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
>         ...
> 
> 3.) dhcpd.conf
> 
> # dhcpd.conf
> #
> # el servidor va a escuchar de eth1
> # eth1
> # address 192.168.0.1
> # netmask 255.255.255.0
> 
> default-lease-time 180;
> max-lease-time 7200;
> 
> subnet 192.168.0.0 netmask 255.255.255.0 {
>         range 192.168.0.10 192.168.0.20;
>         option subnet-mask 255.255.255.0;
> 
>         option broadcast-address 192.168.0.255;
>         option routers 192.168.0.1;
> 
>         # VER esta parte del orto!!!!!
>         #esta linea de aca abajo es la ip
>         #de ciudad.com.ar sacada de dnsreport.com
> 
>         option domain-name-servers 200.42.0.108, 200.42.0.109;
>         option domain-name "ciudad.com.ar";
> }
> 
> 4.) /etc/resolv.conf
> 
> nameserver 200.42.0.108
> nameserver 200.42.0.109
> 
> =======
> Marcelo
> 
> 

-- 
Homepage : http://geocities.com/arhuaco

The first principle is that you must not fool yourself
and you are the easiest person to fool.
     -- Richard Feynman.



Reply to: