Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: cant get iptables to work

  1. #1
    Join Date
    May 2011
    Beans
    6

    cant get iptables to work

    I can't get my firewall up and running. When I run my bash script, I get this message:

    * Starting iptables WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
    FATAL: Module ip_tables not found.
    iptables v1.4.4: can't initialize iptables table `raw': Table does not exist (do you need to insmod?)
    Perhaps iptables or your kernel needs to be upgraded.
    WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
    FATAL: Module ip_tables not found.
    iptables v1.4.4: can't initialize iptables table `raw': Table does not exist (do you need to insmod?)
    Perhaps iptables or your kernel needs to be upgraded.
    my current kernel is 2.6.3-3

    my current iptables is v1.4.4

    If you need my bash script, I can post that too.

  2. #2
    Join Date
    Feb 2011
    Location
    new york state
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: cant get iptables to work

    Quote Originally Posted by makenbaccon View Post
    I can't get my firewall up and running. When I run my bash script, I get this message:



    my current kernel is 2.6.3-3

    my current iptables is v1.4.4

    If you need my bash script, I can post that too.
    Perhaps iptables or your kernel needs to be upgraded.
    first try
    Code:
    sudo apt-get update
    then
    Code:
    sudo apt-get upgrade
    what repos are you using?
    Power tends to corrupt, and absolute power corrupts absolutely. Great men are almost always bad men, even when they exercise influence and not authority

  3. #3
    Join Date
    May 2011
    Beans
    6

    Re: cant get iptables to work

    repos? what are these?

    And after both updating and upgrading I have the same problem.
    Last edited by makenbaccon; May 2nd, 2011 at 01:15 AM.

  4. #4
    Join Date
    Feb 2011
    Location
    new york state
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: cant get iptables to work

    Quote Originally Posted by makenbaccon View Post
    repos? what are these?

    And after both updating and upgrading I have the same problem.
    Please take a look at
    http://en.wikipedia.org/wiki/Software_repository
    to see them in ubuntu there are a couple of ways the easy way is to go to ubuntu software center then edit then software sources then look at the tabs that will tell you what repos you have
    Power tends to corrupt, and absolute power corrupts absolutely. Great men are almost always bad men, even when they exercise influence and not authority

  5. #5
    Join Date
    Aug 2008
    Beans
    1,835
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: cant get iptables to work

    Goodness. That kernel is from 2004. Did Ubuntu exist then? Maybe the kernel version no is a typo.

  6. #6
    Join Date
    May 2011
    Beans
    6

    Re: cant get iptables to work

    Goodness. That kernel is from 2004. Did Ubuntu exist then? Maybe the kernel version no is a typo.
    that's the kernel version, my version of ubuntu is 10.10

  7. #7
    Join Date
    May 2011
    Beans
    6

    Re: cant get iptables to work

    by the way, I'm doing this through an ssh client, so any tips should not have anything to do with a GUI.

    Anyone know how I can deal with this?

  8. #8
    Join Date
    Nov 2008
    Location
    S.H.I.E.L.D. 6-1-6
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: cant get iptables to work

    Quote Originally Posted by makenbaccon View Post
    by the way, I'm doing this through an ssh client, so any tips should not have anything to do with a GUI.

    Anyone know how I can deal with this?
    it does not have anything to do with GUI.

    Your kernel does not have the propper configuration in order to run Iptables.

    Which means either
    a) Too old.

    b) Does not have
    Code:
      │ Symbol: IP_NF_IPTABLES [=y]                                                                            │   
      │ Type  : tristate                                                                                       │   
      │ Prompt: IP tables support (required for filtering/masq/NAT)                                            │   
      │   Defined at net/ipv4/netfilter/Kconfig:52                                                             │   
      │   Depends on: NET [=y] && INET [=y] && NETFILTER [=y]                                                  │   
      │   Location:                                                                                            │   
      │     -> Networking support (NET [=y])                                                                   │   
      │       -> Networking options                                                                            │   
      │         -> Network packet filtering framework (Netfilter) (NETFILTER [=y])                             │   
      │           -> IP: Netfilter Configuration                                                               │   
      │   Selects: NETFILTER_XTABLES [=y]
    enabled in the kernel configuration.

    Ill guess a).

    post output of
    Code:
    lsb_release -a
    Last edited by sandyd; May 2nd, 2011 at 04:34 AM.
    Don't waste your energy trying to change opinions ... Do your thing, and don't care if they like it.

  9. #9
    Join Date
    May 2011
    Beans
    6

    Re: cant get iptables to work

    Quote Originally Posted by sandyd View Post
    it does not have anything to do with GUI.

    Your kernel does not have the propper configuration in order to run Iptables.

    Which means either
    a) Too old.

    b) Does not have
    Code:
      │ Symbol: IP_NF_IPTABLES [=y]                                                                            │   
      │ Type  : tristate                                                                                       │   
      │ Prompt: IP tables support (required for filtering/masq/NAT)                                            │   
      │   Defined at net/ipv4/netfilter/Kconfig:52                                                             │   
      │   Depends on: NET [=y] && INET [=y] && NETFILTER [=y]                                                  │   
      │   Location:                                                                                            │   
      │     -> Networking support (NET [=y])                                                                   │   
      │       -> Networking options                                                                            │   
      │         -> Network packet filtering framework (Netfilter) (NETFILTER [=y])                             │   
      │           -> IP: Netfilter Configuration                                                               │   
      │   Selects: NETFILTER_XTABLES [=y]
    enabled in the kernel configuration.

    Ill guess a).

    post output of
    Code:
    lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 10.10
    Release: 10.10
    Codename: maverick

  10. #10
    Join Date
    Nov 2008
    Location
    S.H.I.E.L.D. 6-1-6
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: cant get iptables to work

    Quote Originally Posted by makenbaccon View Post
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 10.10
    Release: 10.10
    Codename: maverick
    Code:
    sudo apt-get install linux-server linux-image-2.6.35-28-server
    also, is this server in question on some web service such as Amazon EC2? Or VPS?
    If yes, then ask technical support to upgrade your kernel. Or in the case of Amazon EC2, choose a newer AMI. There are some very annoying VPS providers these days where they don't set proper openvz/xen configurations, and when the kernel of a VPS is upgraded, everything screws up.

    and also your running all of the commands through ssh right?
    Last edited by sandyd; May 2nd, 2011 at 04:53 AM.
    Don't waste your energy trying to change opinions ... Do your thing, and don't care if they like it.

Page 1 of 2 12 LastLast

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
  •