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

Firewalls and IP Maskerade



Hi,
 
 New to linux, really don't know squat :) I just installed debian on my 3rd comp at home. I want to use this comp has a gateway/firewall to the internet. Basicly I want my 2 others comp (running win98SE) to access the internet through this comp (games, emails, internet, etc...).  I have read a few DOCS form linuxdoc.org. And I tried to configure ipchains following these DOCS, but it doesn't work.
 
 Both my network cards were detected and both seem to be working right. One of them has a local network address which I assigned my self with the following command: ifconfig eth0 192.168.0.1. The other was configured as a cable modem upon installation. When I boot it is assigned the address 24.200.41.15 and the netmask 255.255.255.0. 
 
 My routing tables consists of the following entries (all automaticaly configured, I haven't entered any):
 
     192.168.0.0    *    255.255.255.0    u    0    0    0    eth0
     24.200.41.0    *    255.255.255.0    u    0    0    0    eth1
     default    modemcable001.4    0.0.0.0    ug    0    0    0    eth1
 
 
  My hosts file /etc has the following entries.  I added the last 3 entries.
 
     127.0.0.1           Lisa    localhost
     192.168.0.2        Marge   
     192.168.0.3         Homer
     24.200.41.15       LIsa
    
 
  From my linux box, I can ping addresses on the 192.168.0.0 and 24.200.41.0 networks and  I can ping the DNS server (24.200.243.242). I can't ping modemcable001.4 From my win98SE comps I can only ping addresses in the 192.168.0.0 network. If I want to ping addresses in the 24.200.41.0 or the DNS server, I need to enter the following commands: ipchains -P forward ACCEPT and ipcahins -A forward -s 192.168.0.0/24 -d 0/0 -j MASQ.  Also before I can enter these commands I need to enable ip_forward: echo 1 > ip_forward. .   
 
  I cannot access the internet from any on my win98SE comps. And I haven't installed any applications on my linux box, so I can try accessing any http sites from the this comp. The proxy settings are detected but the pages will not load. What has to be done to fix the situation and to allow games and email progs to go through?
 
 
 
I

Reply to: