LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-16-2010, 11:30 AM   #1
dburrel8
LQ Newbie
 
Registered: Jun 2010
Posts: 1

Rep: Reputation: 0
IPtables


So I am new to ubuntu and am trying to work with "iptables". I have ubuntu version 10.04, in the terminal I try to create a new iptable by writing:

iptables -N chain

but the response is:

FATAL: Error inserting ip_tables.........

can anyone help?

also it says "you must be root", what does root mean?

Last edited by dburrel8; 06-16-2010 at 11:31 AM. Reason: missed info
 
Old 06-16-2010, 11:47 AM   #2
xweb
Member
 
Registered: Dec 2005
Location: norfolk, va
Distribution: kubuntu, debian
Posts: 36

Rep: Reputation: 16
the "chain" on the end shoud be the name of the new chain. you might want to look at what is already in your iptables first with
Code:
# iptables -L
im pretty sure all these action have to be done as root.
you can become root by typing
Code:
# sudo su
and entering your password.
or use sudo like this.
Code:
$sudo iptables -L
in the future you might want to try
Code:
$ man iptables
or
Code:
# iptables --help
befor posting.
most console applications/commands have build in help or man(manual) pages. There are also some great tutorials on the web about this subject.
 
Old 06-16-2010, 04:04 PM   #3
nuwen52
Member
 
Registered: Feb 2009
Distribution: Debian, CentOS 5, Gentoo, FreeBSD, Fedora, Mint, Slackware64
Posts: 208

Rep: Reputation: 46
To answer your secondary question directly:
Quote:
also it says "you must be root", what does root mean?
"root" is a user defined on pretty much all UN*X systems. It is basically a "system administrator" account with permission to do just about anything. You can become "root" by doing an "su" command and typing the password. You can run programs as root by using the "sudo" command if you have permissions to run this.

EDIT: root user is very powerful. So, as a general rule, you should not run things as "root" unless you need to. Some programs, like iptables, do require you to run as root because they work directly with the core of the system.

Last edited by nuwen52; 06-16-2010 at 04:08 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
On what basis CHAIN integer values are generated in IPtables under iptables file? haariseshu Linux - Server 3 11-05-2009 05:25 AM
[SOLVED] Rather huge IPtables chain, iptables: Memory allocation problem. Gangrif Linux - Networking 10 09-11-2009 04:30 PM
iptables v1.2.9: Unknown arg `/sbin/iptables' Try `iptables -h' or 'iptables --help' Niceman2005 Linux - Security 4 12-29-2005 09:20 PM
IPtables Log Analyzer from http://www.gege.org/iptables/ brainlego Linux - Software 0 08-11-2003 07:08 AM
My iptables script is /etc/sysconfig/iptables. How do i make this baby execute on boo ForumKid Linux - General 3 01-22-2002 08:36 AM


All times are GMT -5. The time now is 04:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration