LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   iptables problem script (https://www.linuxquestions.org/questions/linux-security-4/iptables-problem-script-287642/)

thuns 02-08-2005 07:51 AM

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

qwijibow 02-08-2005 08:31 AM

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

(case sencitive)

thuns 02-09-2005 05:02 AM

I found the problem... an variabel had lost it's value...

win32sux 02-13-2005 01:17 AM

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...

qwijibow 02-13-2005 07:35 AM

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


All times are GMT -5. The time now is 05:28 PM.