Skip navigation.
Home
Now Shipping Version 7.0

SoHo Routing Problem


Posts: 1

Hi All

I am a new Mepis user (and love it) although I have been dabbling in Linux for about two years. I decided to try out Mepis SoHo server and in the main have things set up. However I am getting abit confused about the routing side of things and thought someone here may be able to help.

My setup is 2Mb dsl connection into a D Link G604T modem router which has a wifi AP. Routers ip is 192.168.1.1.

My ISP only provides a dynamic IP so I set up a dyndns account and now have a domain name tracking my dynamic IP. I have a small utility on a Win XP box which handles this (which I think is some of the problem). I would like to have the server handle this if possible so the first questionwill be is there a similar program available for Linux and if so how can I get it?

I have installed two nics in the machine:

eth0 = assigned via dhcp from modem router (192.168.1.*) should this be static as well?
eth1 = static as 192.168.79.100

I am at the stage where I can hook machines up to the lan switch and they will take an IP address dynamically from the dhcp server running on the server. However I cannot then get them to be able to connect to the internet. I can ping all of the servers (http, dns etc) from within the 192.168.79.* range and I see the correct external IP address, but cannot ping google (or its ip address).

I also could not reach the internet from the server so I ran

#route -net 192.168.79.100 -netmask 255.255.255.255 gw 192.168.1.1

and I can now get the internet from the server, but not machines on the lan.

I am sure this is just a routing issue but am not too sure where to go next. Any help would be appreciated.

Bubo

Jon Du Quesne's picture

Try This Guy

Bubo, there's another guy who helps on this forum, Travis Jenkins. I think he's had some similar issues in setting up his systems. He has a website accessible via dhcp. You can get to his site via
http://jenkins.hopto.org/

He also monitors this forum, so I'm sure he can throw some good setup ideas your way.

Let us know if this helps.

Jon

foxmulder's picture

routing

Hi

Have you configured your dhcpd daemon to assigne correct dns servers
to your lan clients ?
Dhcpd server should give its clients dns servers and default gateway
which is in your case 192.168.79.100.
Also i assume that you have enabled ip forwarding on your server.
If i were you i would disable dhcp server from your modem router,
of course if it is possible.
Then your external interface will get routable ip from your ISP
dhcpd server.

http://rainer.myftp.org

Also post your questions about setting up your server
at http://jenkins.hopto.org forum

Rainer

drlizau's picture

routing, firewall

you will have to configure shorewall to let packets through to the internet and back. I can't recall what the defaults are, but use webmin to configure shorewall.

ipforwarding is done from the same sort of place - and you don't need to be on the server itself, as webmin runs as https://myserver.com:10000

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.