LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 07-30-2003, 03:21 PM   #1
jrgalan
LQ Newbie
 
Registered: Jul 2003
Posts: 11

Rep: Reputation: 0
iptables SYNTAX


greetings all!

trying to create a basic firewall using iptables on a red hat 9.1 system.

can anybody tell me what's wrong with this command:

modprobe iptables_nat

the reply is - modprobe: Can't locate module iptables_nat

one more question - what's wrong with this command:

iptables -A INPUT -i eth0 -p tcp -s $PRIV -j ACCEPT

trying to allow traffic in from the private network.

thanks for your help =}
 
Old 07-30-2003, 04:39 PM   #2
bla
LQ Newbie
 
Registered: Jul 2003
Location: Poland
Distribution: Debian
Posts: 23

Rep: Reputation: 15
First command:
There is no module iptables_nat; Try ip_tables; (iptables will add this module if it does not exist);

Second: For me it is JUST ok. I do not know what is in $PRIV variable..
Example:
iptables -A INPUT -p tcp -s 192.168.0.0/0 -j ACCEPT.

bla
 
Old 07-31-2003, 12:54 AM   #3
jrgalan
LQ Newbie
 
Registered: Jul 2003
Posts: 11

Original Poster
Rep: Reputation: 0
thanks a lot bla - you have taken care of my syntax errors.
 
  


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
Iptables syntax puzzler tantric Linux - Security 6 03-22-2005 06:46 PM
What's wrong with this iptables syntax?? registering Linux - Security 3 06-16-2004 03:54 PM
iptables syntax question Poetics Linux - Security 4 12-24-2003 03:32 PM
iptables syntax Ge64 Linux - Security 3 08-20-2003 10:56 PM
ipaddress syntax - iptables arobinson74 Linux - Networking 3 03-31-2003 12:34 PM


All times are GMT -5. The time now is 02:57 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration