Help - Search - Members - Calendar
Full Version: Making a Mandrake router?
MandrivaUsers.org > Advanced Topics > Other Linux and Unix Distributions
DeepPhreeze
I have a P3 1GHz I want to turn into a router. It already has two working LAN cards, so how do I go about configuring Mandrake as a router?

P.S. It has to be a Linux GUI distro as I want to use F@H too, and maybe host some UT matches.
streeter
Have a look at http://www.netfilter.org/documentation/ind...mentation-howto

More info needed - you don't say how far you have got (ie what works so far), how you connect to the net, do you use public IP addresses or NAT etc.

The concept is :

Set up 2 NICs with different network addresses

Enable packet forwarding

Set up firewall

Chris
Gowator
if you want to go there I wouldnt really start with Mandy...

most of the niceties are desktop things and can be a pain for server stuff...

thqt being said /me ducks whats F@H
DeepPhreeze
Okay, I installed RedHat, it ain't as friendly but that's okay. Thanks for the info, I'll tell you how it works out.

F@H is Folding@Home, part of the human genome project.
http://www.stanford.edu/group/pandegroup/folding/
DeepPhreeze
Okay, well I'm directly connected to my DSL modem (RJ45), the modem has reserved the internal IP 192.168.0.1 for web-admin, I connect via PPPoE but it's all on the modem.
DeepPhreeze
And my computer gets the public IP address 68.123.X.XX

EDIT:
Okay now I'm really confused. I'm not sure what I have to do now, isn't there an easier way?
streeter
Okay, I installed RedHat

Er, we're Mandrake... smile.gif

Anybody here know RedHat tools?
spinynorman
I'll move this topic to Other Linux Distributions now you're using RedHat. smile.gif
DragonMage
I think RedHat tools are the worst tools available of the big distros. If I were you, I would install Webmin and play around with it.

Anyway, just go to the firewall section in the webmin and start making an IP masquarade to start with, then start hardening the firewall.

For me the easiest way to create a router is to install Firestarter and enable the routing option. In fact, I did that with every iteration of Mandrake smile.gif
DeepPhreeze
Firestarter you say? I'll give it a try cool.gif
Gowator
If what you want is a router I'd use a dedicated distro.
Its the absolute simplest option.


However these tend not to have the GUI option.
The one I use is SME server but its all configured through http ... and no X.

You can host UT from it (at least Ive seen the HOWTO)

but the question I think to ask is going back to your original question....
Yuo want to turn the PC to a router... or do you want to add routing to the PC?
In other words what is the primary purpose of the PC, will you have others and use this as a firewall/router or will you use this as a normal PC as well.

Its an important distinction. If its the former a dedicated router distro would be more appropriate and its childsplay to set up.

If its the latter you potentially learn a lot more but you need to actually look into it.

Mandy configured through the wizards is pretty poor at two interface routing IF you want to use the PC as a normal PC to. However if you use webmin to set it up then it should be fine...
Hiowever the nice thing with webmin is its the same on all distro's...


anyway, have a think and decide if this is a PC/router or router PC....
reb2
hi guy's and gals,
I AM NO EXPERT! but i hope this may help?
I used to run three machine's (thin coax) with internet connection sharing, but then discovered that a low spec machine with two network cards in it
could become a firewall / router.

these machine's were my own, my wife's and the father in law's (just a home setup).

i did have to set up the fourth machine to be a dhcp server for eth1 (but this was handled auto by the mandrake wizard it told me it had to install a few things and it did.

i set eth0 (connected to modem) to receive ip auto (from isp (cable)).
and set eth1 to fixed ip of 192.168.10.1.
all done through the wizards of mandrake 9.1

and on the other three machines i simply configured them to receive ip auto
both in windows and linux (all machines dual boot).
told all machines that 192.168.10.1 was the gateway.
and it ran quite happily for all of six months without a single hitch!!!
(i then purchased a little router box (dlink) and converted to cat5 /rj45)
had shorewall configured with NO services visible to the net.
now i have not succeeded in actually sharing files in linux with any of the other machines so i would not say they are actually networked as such!
but it did allow all three machines to access the net for web and mail and msn messenger (the father in law loves it (he's only 78 years young)).
hope it helps cool.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.