LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 11-10-2012, 09:08 AM   #1
treschen
LQ Newbie
 
Registered: Jan 2010
Posts: 11

Rep: Reputation: 0
Red face iptables bad argument Bad argument `5060'


Hey guys i need you help i am trying to run the following command but a error please tell me what i am doing wrong ?

iptables -A OUTPUT -t mangle -p udp -m udp -dport 5060 -j DSCP -set-dscp 0×28
Bad argument `5060'
 
Old 11-10-2012, 09:20 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,347

Rep: Reputation: Disabled
The sub-arguments "dport" and "set-dscp" need two dashes:
Code:
iptables -A OUTPUT -t mangle -p udp -m udp --dport 5060 -j DSCP --set-dscp 0×28
 
1 members found this post helpful.
Old 11-10-2012, 09:21 AM   #3
treschen
LQ Newbie
 
Registered: Jan 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks it works now
 
Old 11-10-2012, 09:29 AM   #4
Basher52
Member
 
Registered: Mar 2004
Location: .SE
Distribution: Arch
Posts: 401

Rep: Reputation: 22
mark the post solved please
 
1 members found this post helpful.
  


Reply



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-restore +script error: bad argument COMMIT xorl Linux - Server 5 04-14-2016 03:51 PM
iptables - Need help on Bad Argument irietek Linux - Software 5 03-24-2011 04:43 AM
IPTables trouble with DNAT target (bad argument error) Eightpock Linux - Software 9 06-16-2008 10:36 AM
bad argument 'iptables' gpamkenny Linux - Newbie 4 10-29-2004 10:25 AM
Bad Argument '53' IPtables doesn't run and has no bash debug lines? piratebiter Linux - Security 3 09-02-2003 10:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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