Results 1 to 10 of 10

Thread: Gateway Server 8.04 Setup Help Needed

  1. #1
    Join Date
    Feb 2008
    Beans
    4

    Gateway Server 8.04 Setup Help Needed

    Hello all you smart people. I have a PC I've build to act as a Linux Gateway/Server/Router etc.
    I need some help getting everything running.I would really appreciate your help. Maybe I could send you guys freshed baked cookies or some cold beer..

    I have installed Ubuntu 8.04 Server onto the Machine. I am competent with Ubuntu, but linux is still new to me. I am familiar with sudo nano commands etc..

    Here are the Ubuntu Server Machine specs:
    Intel pentium 4500 Dual Core
    Gigabyte EP35-DS3R Motherboard
    1 GB RAM
    250 GB Hardrive
    1 Onboard realtek Nic
    1 Intel Pro PCI-E Gigabit NIC

    Here is what I've done so far:
    1)Installed Ubuntu Server 8.04 onto clean partition
    2)Installed all default apps.. LAMP,SSH,File Printer...everything except PostgreSQL
    3)Changed repositories to retrieve and install the latest Webmin
    4)Installed webmin
    5)Installed DHCP-Server

    I have read many guides on the internet and am getting familiar with things but none have been clear. Please start slowly with me...

    To start, I would like the Ubuntu Server to Protect my home network with a firewall, assign DHCP to PC's that want to connect to internet.

    So far I selected the Realtek (eth0) as the primary NIC. I will plug that one into the cable modem.
    I will then plug the Intel Nic into a Gigabit Switch to server the rest of the network.

    Okay...so where do i go from here. what are the first things I should do?

    Mark

  2. #2
    Join Date
    Jan 2007
    Beans
    323

    Re: Gateway Server 8.04 Setup Help Needed

    I used to use IpFilter for this years back. I'm using a monowall now (which uses ipfilter) so I know it's still out there.

  3. #3
    Join Date
    Jan 2007
    Beans
    323

    Re: Gateway Server 8.04 Setup Help Needed

    Last edited by terazen; April 26th, 2008 at 04:31 AM. Reason: Better Link

  4. #4
    Join Date
    May 2006
    Beans
    Hidden!

    Re: Gateway Server 8.04 Setup Help Needed

    Quote Originally Posted by terazen View Post
    I used to use IpFilter for this years back. I'm using a monowall now (which uses ipfilter) so I know it's still out there.
    Monowall uses pf. Ipfilter has been replaced by netfilter (also referred to by the name of its management tool: iptables).

  5. #5
    Join Date
    Feb 2008
    Beans
    4

    Re: Gateway Server 8.04 Setup Help Needed

    Thank you for the suggestions, I am getting closer.
    Progress has been made.

    I have DHCP server running now.
    From the Servers command line (External nic eth0) I am able to ping google.ca.
    The PC's connected to the internal NIC (eth1) are able to ping the Server.
    The server is assigning IP's to the computers connected to the Internal NIC.
    The computers are not able to connect to the internet.
    I believe that webmin isn't configuring IPTables correctly.

    I believe that Webmin isn't doing it properly for 8.04

    How do I go about configuring the IPtables for the NAT?
    Last edited by sparkieman; April 28th, 2008 at 01:54 AM.

  6. #6
    Join Date
    Dec 2006
    Beans
    19
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Gateway Server 8.04 Setup Help Needed

    Look up routing - this is your problem now.

  7. #7
    Join Date
    Nov 2005
    Location
    Finland
    Beans
    23
    Distro
    Ubuntu Karmic Koala (testing)

    Re: Gateway Server 8.04 Setup Help Needed

    If you don't fear the command line, I recommend trying Shorewall, it simplifies configuring iptables a lot (especially NAT is very quick to configure).

    And it seems that there is a Shorewall module for Webmin too.

    If you still want to use plain iptables, make sure you have forwarding enabled (I'm pretty sure it's needed for NAT).

    Running
    Code:
    sysctl net.ipv4.ip_forward
    should return
    Code:
    net.ipv4.ip_forward = 1
    If not, edit /etc/sysctl.conf and reboot

  8. #8
    Join Date
    Feb 2006
    Location
    Auckland, New Zealand
    Beans
    49
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Gateway Server 8.04 Setup Help Needed

    I would recommend looking into a custom distro called Smoothwall Express.
    I use this at home and it works a treat.
    It is designed to be a firewall and it also runs DHCP, NTP, web/im proxy and a whole lot more.
    It is all run through a web interface or ssh.

  9. #9
    Join Date
    Apr 2008
    Beans
    19

    Re: Gateway Server 8.04 Setup Help Needed

    Hi,

    Your scenario fits perfectly with the one depicted in here in eBox.

    eBox is packaged in Hardy, so you won't need to install anything else. It also has a web interface.

  10. #10

    Re: Gateway Server 8.04 Setup Help Needed

    Firstly, welcome to the Linux community. If you are using Ubuntu then you are using Linux Well done on getting DHCP working.

    Next up, I would agree with Gekkio above and suggest shorewall as the iptables/netfilter configuration utility of choice. No need to leave the safety of Ubuntu Linux. Just do

    Code:
    sudo apt-get install shorewall
    However, it seems you are new to the command line (which is the traditionally pure interface to Linux which you should grow accustomed to asap) and you may feel more comfortable with smoothwall

    Code:
    sudo apt-get install smoothwall
    I've never used it but believe it is newbie friendly.

    However, shorewall has great resources at http://shorewall.net - read the Two-interface guide at that site and get cooking. All your requirements will be answered there. Patience is the key and has its rich rewards in the Linux environment. Ask lots of questions and remain descriptive as you are doing and soon you will know enough to help others.

    Tim356 is totally right. Your problem now is routing - a fundamental networking concept which the shorewall documentation and two-interface guide will help you understand. Using smoothwall might make it easier but will not improve your understanding of what you're actually doing, so, another reason to choose shorewall.

    report your progress here.

    regards,
    venzen

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
  •