PDA

View Full Version : Linux Debian and Windows XP - both on internet, how?


DennisDee
2nd July 2006, 21:11
Hi,

I just install new setup of Debian Sarge 3.1 (I was following instructions from Perfect Debian Sarge 3.1 installation). I was creating pppoe connection and now on eth0. Now I have second network card in computer (eth1)! How can i compile debian, that i can go on internet with Windows XP? On windows network I allready have everything necessary (IP,sub-net mas, Gateway, DNS)! I have systems connected trought switch.

Here is scheme of my network at home

http://img477.imageshack.us/img477/4171/scheme4qw.jpg (http://imageshack.us)

DennisDee
2nd July 2006, 23:05
ok I found litlle howTo like this


ifconfig eth1 down
ifconfig eth1 192.168.1.1 netmask 255.255.255.0 up
route add default gateway 192.168.1.254 eth1
Now I can ping both of computers, but with windows i still can not go to web sites. Why?

P.S.: Everytime when I reboot Debian and then in ifconfig eth1 is gone. Anyone know why is like that?

SupuS
2nd July 2006, 23:31
You have to set up nat forwarding on debian box using iptables ... I is not so easy but you can use firehol for example .. it is great software which can help you with seting up iptables ... http://firehol.sourceforge.net/

DennisDee
2nd July 2006, 23:48
Aha, but what if i allready have created firewall with iptables but not inserted in init.d yet? than will help?

If I understand you, its all about iptables?

SupuS
2nd July 2006, 23:55
Yes is all about iptables .. sorry for my English ;)
But firewall itself is not enough .. You must set up NAT forwarding ... google can help you .. I use firehol ... it is easy and quick .. so I cannot help you with command for iptables ..
Try iptables -L -n -t nat .. this show your nat setting .. if no rules shows you have no nat forwarding :)

ghalban
5th November 2007, 01:03
we really need a detailed howto for this

who is going for it ?