zencafe - server to client pc, all working except client pc getting internt access
Hope this might be of interest for anybody setting up a small internet cafe network.
My problem is a network one , concerning zencafe (slackware type distro) and getting internet connection for the client computer, eigthy percent of the system works its this last bit thats giving me jip.
My set up is two computers a “server” with two etthernet cards . Eth0 ( is part of mainboard) on the server pc has a static IP of 192.168.1.250 and connects to a router of IP address 192.168.1.1
This card has an Wicd icon on the kicker pannel , netmask is 255.255.255.255 and have set gateway to 192.168.1.1
This card connects to the internet fine
Then on the server pc I have eth1 card in a pci slot. I have set IP address to 192.168.2.1
I have also set gateway to 192.168.1.1
There is no icon on the panel for this card but got it working editing /etc/rc.d/rc.inet1.conf
This card is attached to a switch and through the switch connects to a client pc having a static Eth0 IP of 192.168.2.249
Now from the server pc I can see the private connection of server 192.168.2.1 via switch to client
of 192.168.2.249 works – I can see the client icon and host name on cafe con leche GUI on the server.
I can also control the client from the server pc using cafe con leche. I.e it does a basic up and switch off mode.
My only problem is the client pc can not connect to the internet. Have tried every permutation of gateway address for client pc.I just can not get it to connect to internet.
Can somebody have a look at my basic settings and just give me a simple pointer please
Are you sure 192.168.2.1 is correct? 192.168.1.x and 192.168.2.x are usually considered a class C type of address with a subnet mask of 255.255.255.0 meaning that 192.168.2.1 and 192.168.1.1 are on different sub nets and is likely the reason they are not fully co-operating with each other... that style of networking can work but generally with special configurations. I would suggest trying a secondary IP on the server with an IP like 192.168.1.x and seeing if this work.
Alternatively (sorry my networking knowledge is not too great), you could try port forwarding to Eth0 for anything external as they are on the same box it should be able to forward but I am not certain on that one...
Ok Thanks will try your suggestion about the network addresses. Basically my problem I guess is to get Eth1 stuff to route through Eth0.Didn't realise about the subnet , I choose a C network because I aim to have a set up of only around 5 computers.
Don't know details of port fordwarding but did read a bit about route tables & route command. Will try
your suggestion first.
zencafe cafe con leche solved
thanks very much ; I was probably just making things too complicated for myself. My router private address is 192.168.1.1 such just made my "server" a static address of 192.168.1.2 and my "client" pc 192.168.1.3
I just connected the pc's straight to the router ethernet to ethernet. Then when into billing controls of both server and client. The client host name was on the server control GUI, and could put client onto standby from server. Put gateway address as router address and netmask 255.255.255.0
Everything is working as it should with client accessing internet fine.
What I was attempting at first was to have a "private" server - client network; with the clients getting access from the server.
However since the main focus was about having a control and timer faciltity, and there will not be anything stored on the server of any security risk, this set up will do fine!
|All times are GMT -5. The time now is 09:14 PM.|