hi!
i'm pretty new to linux, and have a problem
i'd like to use the debian computer as a firewall between the router and the windows computer.
my setup is: - one router connecting to the internet (192.168.1.1)
- one debian comp with two ethernet cards (eth0 192.168.1.3 to the router, eth4 192.168.1.3 to the other comp)
- one windows computer connected to the debian one. ( 192.168.1.2 set to static, dhcp off )
the problem is that internet can't get through the linux pc.
ifconfig output (i think it looks OK) :
debian:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:40:33:E2
2:22
inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::240:33ff:fee2:d222/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2015 errors:0 dropped:0 overruns:0 frame:0
TX packets:1907 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:636522 (621.6 KiB) TX bytes:396645 (387.3 KiB)
Interrupt:11 Base address:0xec00
eth4 Link encap:Ethernet HWaddr 00:50:BF
1:85:E7
inet addr:192.168.1.4 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::250:bfff:fed1:85e7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:785 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:56889 (55.5 KiB) TX bytes:1068 (1.0 KiB)
Interrupt:10 Base address:0xe800
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:88 errors:0 dropped:0 overruns:0 frame:0
TX packets:88 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7200 (7.0 KiB) TX bytes:7200 (7.0 KiB)p:Local Loopback
/etc/network/interfaces file:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo eth0 eth4
iface lo inet loopback
# WAN - 8139
iface eth0 inet static
address 192.168.1.3
netmask 255.255.255.0
gateway 192.168.1.1
# LAN - 8029
iface eth4 inet static
address 192.168.1.4
netmask 255.255.255.0
btw the internet on the debian comp is okay.
when the win comp is not plugged in to debian, i can ping it, but when i plug it into the second NIC card in debian comp, the win computer cant be pinged.
could anyone help me?
thanks