Find the answer to your Linux question:
Results 1 to 2 of 2
Hi. I am a VPN ( Virtual private network ) service provider. I want to block outgoing port 6881 on my linux debian server with following commands : vpn1:~# iptables ...
  1. #1
    Just Joined!
    Join Date
    Mar 2011
    Posts
    1

    Linux IP table PORT blocking issue

    Hi.
    I am a VPN ( Virtual private network ) service provider.

    I want to block outgoing port 6881 on my linux debian server with following commands :

    vpn1:~# iptables -A OUTPUT -p tcp -dport 6881 -j DROP
    Bad argument `6881'
    Try `iptables -h' or 'iptables --help' for more information.


    But i am getting error.
    Please Help me !

  2. #2
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    It should be "--dport" (two dashes).
    DISTRO=Arch
    Registered Linux User #388732

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...