LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-08-2005, 07:51 AM   #1
thuns
LQ Newbie
 
Registered: Feb 2005
Posts: 2

Rep: Reputation: 0
iptables problem script


Hello everybody!
I am having a problem with a iptables script, i hope someone can help me understand, here is one of the problem:
/sbin/iptables -A OUTPUT -o $EXTINT -p UDP --sport $LOCALPORTS -m state --state NEW,ESTABLISHED --dport 53 -j ACCEPT


it returs this:
iptables v1.2.6a: invalid TCP port/service `--dport' specified
Try `iptables -h' or 'iptables --help' for more information.

I have used this script and modifyed it, but her is the orginal:
http://home.swbell.net/berzerke/ipta...llv0.92.script

thanks

thuns

Last edited by thuns; 02-08-2005 at 07:56 AM.
 
Old 02-08-2005, 08:31 AM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
you cant use --dport untill you have specified a protocol...
UDP is not a valid protocol, however udp is.

(case sencitive)
 
Old 02-09-2005, 05:02 AM   #3
thuns
LQ Newbie
 
Registered: Feb 2005
Posts: 2

Original Poster
Rep: Reputation: 0
I found the problem... an variabel had lost it's value...
 
Old 02-13-2005, 01:17 AM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally posted by qwijibow
you cant use --dport untill you have specified a protocol...
UDP is not a valid protocol, however udp is.

(case sencitive)
nope, it's not case sensitive...
 
Old 02-13-2005, 07:35 AM   #5
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
strange... thats gota be one of the first linux things ive oud that are not case sencitive
 
  


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
problem loading iptables script on startup manicajk Linux - General 8 04-12-2009 11:37 AM
Iptables script problem carlosruiz Linux - Security 3 01-30-2005 09:09 PM
iptables problem in a very simple script max_sipos Linux - Security 2 08-10-2004 06:58 AM
iptables script problem valo Linux - Security 5 08-19-2003 10:16 AM
My iptables script is /etc/sysconfig/iptables. How do i make this baby execute on boo ForumKid Linux - General 3 01-22-2002 07:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:32 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
Open Source Consulting | Domain Registration