Find the answer to your Linux question:
Results 1 to 5 of 5
how to configure linux as arouter...
  1. #1
    Just Joined!
    Join Date
    Sep 2010
    Posts
    4

    router

    how to configure linux as arouter

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,097
    with route, ipconfig, ip, iptables, etc
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    Sep 2006
    Location
    Norfolk Island
    Posts
    31
    If you're looking for more than a firewall and static routing or if you just want an easy web based interface you could look at vyata. Fully featured router/firewall, based on linux and will load on most x86 hardware.

  4. #4
    Just Joined!
    Join Date
    Feb 2009
    Posts
    22
    for a normal linux desktop to be turned into a router, basic steps involved are:
    1. turn on ip forwarding
    this is your variable to check /proc/sys/net/ipv4/ip_forward. Set it to 1 to enable and 0 for disable.
    2. decide which interface will be used for what, i mean which will be the LAN
    and which will be the wan side.
    3. Add a NAT rule to source nat the forwarded packets leaving from your wan side. Check out iptable tutorial 1.2.2 source Natting rules. Also make sure that the firewall is not blocking any packets on the forward chain. It may be the case if its a fedora/redhat host. For ubuntu, it may not be an issue.
    4. Check out the routes and the dns resolver is doing fine.
    5 Connect a host on the lan side of is box (the potential router) and try pinning (set the default route to point to the LAN IP of the potential router)
    1. the lan interface of the router
    2. wan interface of the router
    3. some external IP say google or yahoo

    Thats it.

  5. #5
    Just Joined!
    Join Date
    Mar 2010
    Location
    Ankara, Turkey
    Posts
    6

    Thumbs up two ethernet cards

    I had done a project like this at university several years ago. I had plugged three ethernet cards on a linux machine. For exampe if i would have two networks which must communicate each other ,A and B. Two of ethernet cards for A and B networks. I routed network traffic from A to B as Irithori said with route, ipconfig commands...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...