Find the answer to your Linux question:
Results 1 to 7 of 7
I have a server with ubuntu and two ethernet controllers. I new to linux so what im asking for is a little howto guide, so that i can connect the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2007
    Posts
    42

    Setting up my server as router, how?


    I have a server with ubuntu and two ethernet controllers.

    I new to linux so what im asking for is a little howto guide, so that i can connect the server into a switch?


  2. #2
    Linux Newbie unchiujar's Avatar
    Join Date
    Oct 2006
    Posts
    194
    You will have to look into iptables and iptables rules. By setting the rules you tell iptables what and how to transfer packets from one network card to another.
    A place to start looking for information http://www.linuxguruz.com/iptables/howto/

  3. #3
    Just Joined!
    Join Date
    Jan 2007
    Posts
    42
    thank you.

    but i dont understand so much of it

    so if anybody with some knowledge would tell me exactly what commands to use that would be nice

    Info:

    Ubuntu
    2 eth controllers
    the first eth is connected to internett and the second one into a switch. i dont need a firewall, have software for that(not so good, but good enough)

  4. #4
    Just Joined!
    Join Date
    Jan 2007
    Posts
    44
    U only need to enable forwading on the Ubuntu server.

    #echo 1 > /proc/sys/net/ipv4/ip_forward

    For your own personal safety i would suggest you take a look at iptables seriously and get a frontend like shorewall that will ease rule configuration.

  5. #5
    Just Joined!
    Join Date
    Jan 2007
    Posts
    42
    Now i have opened the file ip_forward and changed 0 with #echo 1

  6. #6
    Just Joined!
    Join Date
    Jan 2007
    Posts
    42
    I have my computer connected to the server, and the server is connected to the internett, what configurations do i use on my server/computer.

    Recive IP automaticly? DNS ?

    im so noob on this network stuff, hope someone can help with this issue to

  7. #7
    Just Joined!
    Join Date
    Dec 2006
    Posts
    73
    Although my computer isn't a server. Firestarter works great for me. Firestarter includes DHCP and NAT. It has a GUI setup wizard that makes it easy to setup. All you really have to do is figure out which interface is on the internet and input that. Then just assign an IP to the server and the computers then set the default gateway of the other computers to be the server. If you don't really care what the IP of your computers on the network then use DHCP.

    In fact, DHCP can solve some of your problems. First, configure your internet connection. Hook up your server to the internet. Activate internet connection sharing and the DHCP server. Then set up which interface is where. Finally you can connect any computer to the network then tell it to use DHCP (default). After that, your computer gets all the information it needs from the server you set up.

Posting Permissions

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