Skip to content

Technikal Mind

Technical thoughts from a Curious Thinker

  • Home
  • About
  • GitHub
  • Curious Thinker Media

Month: November 2014

iptables Quick Reference

Posted on November 1, 2014 - May 27, 2022 by technik

This is a quick reference chart for iptables for the switches I use most commonly. For more information, see the man pages or use the --help switch.


-n (numeric output)
-v (verbose output)
--line-numbers (lists line numbers for use with -D)
-D [chain] [line-number] (deletes line-number from chain)
-N (creates a new chain)

add tcp 27014 to INPUT chain and ACCEPT

  • iptables -A INPUT -p tcp --dport 27014 -j ACCEPT

create new chain; add to INPUT

  • iptables -N NewChain
  • iptables -I INPUT -j NewChain

Posted in Linux, Networking, Uncategorized

Recent Posts

  • Building a Media Player using Vlc.DotNet, vlclib and WPF
  • Computationally Calculating Pi [in python]
  • Contribution to an open source project
  • Starting Computer Science program
  • Unity Game Development

Recent Comments

    Archives

    • September 2016
    • March 2016
    • November 2015
    • August 2015
    • July 2015
    • June 2015
    • April 2015
    • February 2015
    • January 2015
    • November 2014
    • August 2014
    • May 2013

    Categories

    • C#/.NET
    • Computer Science
    • Development
    • Education
    • Electronics
    • GameDev
    • Linux
    • Mathematics
    • Networking
    • Philosophy
    • Programming
    • Science
    • Technikal Mind
    • Uncategorized

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    Proudly powered by WordPress | Theme: micro, developed by DevriX.