Re: routing problem
Do the computers with network 192.168.1.0/24 has gateway 81.196.166.97 ????
So if it has your problem is here.
You need use the gateway in the same network of yours computers. Ex:
IP 192.168.1.10
GW 192.168.1.1
I recomend to you add a new network card in your server with this IP (192.168.1.1).
Hugs
Gilberto
Em Fri, 9 Jan 2004 11:45:53 +0200
"Cosmin" <cosmin.tutea@rdsct.ro> escreveu:
> Hy
> I`m using the latest version of Debian Linux installed on a computer which has as a main role router for internet.
>
> I have a special configuration that was given to me by my ISP:
> The eth0 has the following specifications (and it is used as a interface to my ISP)
> IP: 82.77.83.35
> Netmask: 255.255.255.224
> Gateway:82.77.83.33
>
> The eth1 (used for my Local Area Network) has the following:
>
> IP: 81.196.166.97
> Netmask: 255.255.255.248
>
> I have received only five ip-s to use on my LAN: 81.196.166.98 - 102 on netmask 255.255.255.248 but I have 15 computers. The rest of them use IP-s like 192.168.1.1 to 15
>
> I have configured the file /etc/init.d/firewall like this:
>
> iptables -t nat -I POSTROUTING -s 81.196.166.96/29 -o eth0 -j MASQUERADE
>
> iptables -t nat -I POSTROUTING -s 192.168.1.0/24 -o eth0 -j MASQUERADE
>
> Both of the networks here use as a gatway the IP 81.196.166.97 given to eth1.
>
> The problem is that the only IP-s that are going on the internet are 81.196.166.98 - 102, the ohers with 192.168.1.1 - 15 are not!!
>
> Do you have a solution to this problem?? ( I mention that all my computers are using WIN98 )
>
Reply to: