Solved iptables: unknown option "-j"

Discussion in '3CX Phone System - General' started by complex1, Mar 14, 2017.

Thread Status:
Not open for further replies.
  1. complex1

    complex1 Active Member

    Joined:
    Jan 25, 2010
    Messages:
    752
    Likes Received:
    38
    Hi,

    I want to Implement QoS for 3CX VoIP on Debian Linux as described here:
    https://www.3cx.com/blog/voip-howto/qos-linux/

    I use this command:
    iptables -t mangle -A OUTPUT -p udp -j DSCP --set-dscp 56
    but get this message:
    iptables v1.4.21: unknown option “-j”

    Try ‘iptables -h’ or ‘iptables –help’ for more information.


    What am I doing wrong?

    Can somebody please help me to solve this?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. YiannisH_3CX

    YiannisH_3CX Support Team
    Staff Member 3CX Support

    Joined:
    May 10, 2016
    Messages:
    4,443
    Likes Received:
    282
    Hello @complex1

    Just tried now and it works on my machine and all i did was copy and paste it. Please check your syntax and try again as this should work.
     
  3. Sopock

    Sopock Member

    Joined:
    Jul 11, 2012
    Messages:
    448
    Likes Received:
    20
    Perhaps certain OS or browser will alter dash -?:confused:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. complex1

    complex1 Active Member

    Joined:
    Jan 25, 2010
    Messages:
    752
    Likes Received:
    38
    Hi YiannisH_3CX

    Thank you for the reply.
    I had copy / paste the command line because it was the easiest way, so I didn’t know why I got the error message.
    Now I tried it again by typing the command character by character, and it will accept it.

    Sorry for the noise.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. YiannisH_3CX

    YiannisH_3CX Support Team
    Staff Member 3CX Support

    Joined:
    May 10, 2016
    Messages:
    4,443
    Likes Received:
    282
    Glad to hear it worked :)
     
Thread Status:
Not open for further replies.