• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Setting up a Router?

cpals

Diamond Member
Hey!

I'm installing Red Hat 7.2 on a separate computer which I want to act as a server/router for my DSL connection. Is there a tutorial or a RPM file that can setup a way to install some kind of router software on my server? I've looked at the linuxrouter.org site, but didn't know if there was anything else... thanks!
 
Easier to just spend the $80 on a four port router, then learn linux on the machine you wanted to use as a router.
 
Originally posted by: Tiger
Easier to just spend the $80 on a four port router then learm linux on the machine you wanted to use as a router.


I have a four port router, but I need my server to be connected directly to the internet so that it has control of the ip. With the router it is forwarded to the local ip.
 
Originally posted by: Hanpan
Are you sure the router doesn't have DMZ?

most new routers do.

Yes it does. I am using a linksys router. But I'm setting up a web server on it and it seems that for it to work properly it needs to be on the isp directly. I'm trying to get things like domain nameservers and stuff to work with it.
 
Your probably better off forwarding the proper ports for your servers behind the router rather than having the server site directly on the internet. What is it that requires the server to have an external IP?
 
I'm installing a Control Panel called Ensim which kind of needs it to have the external ip setup like that. It will install the other way, but some of the settings don't get setup correctly. Also, I tried to create a nameserver for my server but I couldn't get the setup to see the dns settings for some reason.
 
I set up redhat 7 once to be a server. It was a compaq 133 or something like that (later upgraded to a 200mmx), it had a winmodem (pain in tthe rear) and a ethernet card. The enthernet card provided networking capabilities to my internal network (my linux/windows98 machine, my roomate's win98 machine upstairs, and a couple of other experimental computers) and the winmodem hooked up to the outside world. I used a simplistic masquerading (also known as NAT) ruleset (and no ip filtering setup) 🙁

I also had a masqdialing server setup up so we could activate and disconnect the modem remotely from our desktops. I had it also setup so that it would disconnect on a call waiting beep (worked about 75% of the time).

Since this was only a temporary connection with a non-static ip this worked out fine and had resonable security.

However, since I bought a cable modem and now am operating on a puesdo-static ip address I needed something better. So instead of going thru the pain of hardening a regular Linux distro, or rolling my own linux I just decided to use a pre-configured Linux router distro.

I decided on the Dachstein LEAF firewall. It's pretty slick, it comes with a full ipchains firewall ruleset, a mini http server (for remote monitoring of firewall/router), drivers for most ethernet cards, a dhcp client that works, a dhcp server for automaticly assigning internal network's computer's ip information, and it all boots off of one floppy. 🙂 I only had to configure the router to use my ethernet cards and changed the ruleset slightly to allow ip forwarding for my personal FTP and SSH servers.

I suppose they have update versions since I got it, but it works well. For a linux router you need at least a 486 for 10 MB network or a 160 pentium for 100 MB network, I would at least use a pentium though just to make it easy on yourself.

Otherwise check out the masquerading howtos and ipchain (or iptables) howtos for information on how to configure your Linux machine for IP routing.

One tip though, don't use the same machine to run servers (i don't mean dns nameservers/dhcp/ or anything like that, just sutff like ftp/telnet/http) and be the router/firewall, this is not as secure as it can be and defeats some the purpose to having a seperate firewall/router installed.

This router thing is what finally convinced me of the superiority of Linux over Windows, I tried to set up a win98 to do the same thing, I got it to work, but it was unsecure, buggy and slow with the winmodem and windows fighting over proccessor power., there are some very good Microsoft solutions but Microsoft's server OS's just cost$ to much. Linux just has much more versatility.
 
I've been trying to set up a linux router for a long time now and everytime I get underway .. something comes up or I get stuck and never finish. I'm pretty much a noob and I suck .. but this Leaf thing that Drag was talking about sounds pretty interesting .. I couldn't make heads or tails of what to download from the sourceforge page that you (Drag) linked to though. Go to smoothwall.org and check their sh!t out, people were praising that one too. I believe in linux > hardware router just cause I think it's cooler and you learn stuff rather than just opening a box and plugging some sh!t in. Doing things the hard way can be beneficial as far as geek prowess is concerned.
 
hehe. Just go back to the website and click on thReleases/Branches.. (or this) They have a new one since I've been there called Baring thats based on the 2.4.x Linux kernal and iptables, but I have no experiance with it.

If you want to see how to setup the firewall rulesets. Boot up with the router floppy. The ipchains (or iptables or whatever) are done about the same way as they would be done in a regular Linux distro. At least he commands are the same. With the comments in the files, the howtos mentioned above, some general understanding of TCP and UDP protocals it souldn't take to long to understand how it works. Remember persistance pays off.

good luck



I'll be sure to check out smoothwall. 😉
 
Or you could just go to ClarkConnect and download RedHat preconfigured as a router/firewall/dhcp server/etc, and get free Dynamic DNS as well.

I am running it on a P-200 with 64 meg ram, and it uses less than 500k on my hd, and it has auto updates as well.
I have been running it for about six months now, and am really pleased with it 😀
 
Back
Top