Problem with setting up my SuSE as router
Hi
My problem is that after all my efforts and reading i cannot setup my suse to act like a router for my home network. The situation is like this: I have a PC with both windows and SuSE 10.1.0 installed. It has two Ethernet Adapters - eth0 (Realtek) and eth1 (Davicom) In eth0 goes the ISP cable, that provides Internet for my windows and suse. I use pppoe-start to authenticate with my ISP and make the connection. eth0 is configured to receive automatic settings through DHCP eth1 is configured as following: IP: 192.168.1.1 Subnet Mask: 255.255.255.0 DNS: none GW: none On the other hand i have a laptop with windows XP installed and a singular ethernet adapter. I have a switch that makes the connection between my PC's eth1 and the Laptop adapter. When I boot my PC in Windows I use Internet Connection Sharing to provide Internet access to the Laptop and it works. I want to make SuSE route the existing internet connection from eth0 to eth1 and from there to the laptop. I tried different configs of eth1 in SuSE and echo 1 > /proc/sys/net/ipv4/ip_forward, but nothing worked. I cannot even ping my PC's eth1 IP (192.168.1.1) from the laptop when i am in SUSE. The configuration of the laptop's Network card is like this: IP: 192.168.1.2 Subnet Mask: 255.255.255.0 GW: 192.168.1.1 DNS: 192.168.1.1 Any ideas :) ? |
Are you certain that eth1 is being set up with those settings? On my machine I had to manually configure it to begin with.
Run ifconfig to check the setup of the interfaces. If they are set up correct then maybe it is your firewall settings. |
im shure these are the settings.
It could be a firewall issue, but i dont know how to check... Btw eth0 is set to External Zone in Firewall zone settings and eth1 is Internal Zone (Unprotected) |
i managed to disable the firewall through the YaST Control Center, but it didnt help....
|
i managed to disable the firewall through the YaST Control Center, but it didnt help....
|
In the terminal run
Code:
ifconfig Once we know this is correct then we can go through the various firewall settings :) You could also try pinging the clients from the server. Make sure the windows clients firewall allow for traffic from the router too, Zone Alarm was a little over zealous for me when I first set up the server and blocked everything which was alittle sucky. |
ifconfig request
here is my ifconfig output:
Code:
eth0 Link encap:Ethernet HWaddr 4C:00:10:00:34:AB what makes me sure about the firewall not messing up the whole thing is that the windows connection sharing works fine with it. |
eth1's IP address is 192.168.0.1 not 192.168.1.1 as you would like., at the prompt type
Code:
ifconfig eth1 192.168.1.1 Make sure you have already run Code:
echo 1 > /proc/sys/net/ipv4/ip_forward |
here is something strange:
when i ping yahoo.com from the konsole it says "ping: unknown host yahoo.com", but when i try to reach the host from Firefox, yahoo pops up in a second.. so.. could this info be in any help for solving the problem above ? |
Quote:
well, i changed my mind and desided that the IPs will be 192.168.0.1 for the router and 192.168.0.2 for the client laptop, because of the XP. It says that using 192.168.1.2 may cause some problems. But it doesnt change the "shituation"... As i posted above i'm not able to ping neither hostnames as yahoo.com, nor internal IPs, like 192.168.0.2 |
What is your route command output?
Code:
/sbin/route -n http://www.shakthimaan.com/installs/bsnl-dataone.html |
thanks for the documentation, x86processor. now i post the route -n result and go read it
So.. result is: Code:
cad:/etc/rc.d/rc5.d # /sbin/route -n I was reading the following topic just before coming here: http://www.linuxquestions.org/questi...d.php?t=452487 I'm more and more thinking that the problem is not in the ip tables, since i cannot event ping my laptop's IP, nor i can ping hostnames like google.com !!! The strange thing is that i can browse the net through my Firefox. I see that the guy writing in the thread above is also using SuSE 10.xxx and i think that it could be a distro bug or something. Is it possible ? |
What type of adsl modem/router do you have, is it a 4 port unit?
|
here's the HW configuration:
Code:
ISP -------+ +-------------+ [== 8 port SWITCH ==] .......... @zubir: If you r asking for a device between my ISP and eth0 - there is no such thing. I connect directly to the ISP Servers and use PPPoE to authenticate and connect to the Internet. Otherwise (if i not start pppoe-connect) I am just visible to the internal ISP LAN. |
Quote:
Quote:
|
All times are GMT -5. The time now is 08:35 PM. |