Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-10-2012, 09:08 AM   #1
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, 09:20 AM   #2
Ser Olmy
Senior Member
Registered: Jan 2012
Distribution: Slackware
Posts: 3,298

Rep: Reputation: Disabled
The sub-arguments "dport" and "set-dscp" need two dashes:
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, 09:21 AM   #3
LQ Newbie
Registered: Jan 2010
Posts: 11

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

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


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 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 > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration