Results 1 to 4 of 4

Thread: Setting up a linux router

  1. #1
    Join Date
    Sep 2005
    Posts
    140

    Setting up a linux router

    Hello everyone
    I have an old machine that I converted into Linux router. My machine is connected to my Freebox the interface eth0 and eth1 interface to a switch that will connect my machines and my printer. How do I do (services, config, ...) to arrive. At first light, I need to install a dhcp server, a firewall. Is there anything that I forget? Thank you

  2. #2
    Join Date
    Jan 2006
    Posts
    3,792

    Re: Setting up a linux router

    iptables is a command line tool which allow system administrators to configure Linux packet filtering ruleset.

    Using iptables, you are able to tweak packet filtering, Network Address Translation (NAT) and packet mangling which in the end are going to allow you to secure your server, share your Internet connection and log unwanted traffic.

    iptables is not really what we could call an easy to get with tool, but once you know the basis, it won't be that scary.

    This tutorial will provide a sample script you can use to share your Internet access and will give an overview on how to use iptables

    Setting up a linux firewall and router with iptables

  3. #3
    Join Date
    Jan 2006
    Posts
    4,221

    Re: Setting up a linux router

    The most common function of the Linux router is a connection between two networks. Typically, this would be a LAN and the Internet. For our experiments, given the unavailability of a connection to the Internet fast enough to stress the router sufficiently, we used a server to simulate the Internet.

    For performance measurements, we set up a simple router configuration as follows:

    • Download a copy of the idiot image (lrp 2.9.8). See the Sidebar “Which Disk Image to Use” for details.
    • Extract the image to a floppy disk (1.44MB/1.68MB super-formatted) and make it bootable. The best way to do so is to use WinImage (www.winimage.com).
    • Get the kernel module for the Ethernet card you are using. We used RealTek Ethernet cards with the RTL8139 chipset, so the module we used was rtl8139.o. Add this to your kernel. Your Linux router is now ready for its configuration. See the Sidebar “Adding Kernel Modules for Ethernet Cards” for details.
    • Boot from your LRP disk and open the network.conf file (located in /etc/network.conf). Now modify it so that it looks like Listing 1 [available at ftp.ssc.com/pub/lj/listings/issue100/5826.tgz]. Appropriate comments are there for modifications.
    • Save the changes and back them up. Reboot.


    The configuration of the Linux router is now complete. Now we'll describe its performance in different configurations. Because we are not using dynamic routing, we will define static routes in the following experiments according to the configuration of the experiment. Note: after you are done configuring the Linux router, write-protect the floppy disk you are using.

    For more information go to this link.

  4. #4
    Join Date
    Jan 2006
    Posts
    2,257

    Re: Setting up a linux router

    You might want to try Cyote Linux, it's a very simple and easy to configure version of Linux created for routing purposes.

    Also google is your friend: http://yolinux.com/TUTORIALS/LinuxTu...rkGateway.html
    http://www.brennan.id.au/06-Firewall_Concepts.html
    http://www.tldp.org/HOWTO/Adv-Routing-HOWTO/
    With great power comes great responsibility - Spiderman's Uncle

    The Greatest Sig Ever

Similar Threads

  1. Cant get DrayTek Router setting
    By ElroyDJ in forum Networking & Security
    Replies: 5
    Last Post: 19-12-2011, 10:43 PM
  2. setting up my ASUS RT-G32 Wireless Router
    By Cosmonos in forum Portable Devices
    Replies: 5
    Last Post: 04-12-2010, 06:17 AM
  3. Setting up a Linksys Router WRT54G
    By Latafat in forum Networking & Security
    Replies: 5
    Last Post: 23-07-2010, 12:09 AM
  4. Accessing router setting
    By NetWorkInG in forum Networking & Security
    Replies: 5
    Last Post: 09-03-2010, 08:07 PM
  5. Linksys WRT54GS router setting up
    By hariharan_00 in forum Networking & Security
    Replies: 3
    Last Post: 03-05-2008, 01:07 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,544,434.88583 seconds with 17 queries