LinuxQuestions.org
Visit Jeremy's Blog.
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, 10: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 028
Bad argument `5060'
 
Old 11-10-2012, 10:20 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,404

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 028
 
1 members found this post helpful.
Old 11-10-2012, 10:21 AM   #3
treschen
LQ Newbie
 
Registered: Jan 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks it works now
 
Old 11-10-2012, 10:29 AM   #4
Basher52
Member
 
Registered: Mar 2004
Location: .SE
Distribution: Fedora, CentOS, Scientific Linux
Posts: 275

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


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


All times are GMT -5. The time now is 07:17 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