cp architecture

Iptables args

  • -j RETURN : will cause the current packet top stop traveling throught the chain(or sub-chain)
  • -j ACCEPT : the rule is accepted and will not continue traversing the current chain or any other ones in the same table.Note however,that a packet was accepted in one chain might still travel through chains within other tables,and could still be dropped there.
  • -j DNAT : only available within PREROUTING and OUTPUT chains in the nat table,and any of the chains called upon from any of those listed chains.
  • -j SNAT : valid only in nat tables,within the POSTROUTING chain.
  • -j REJECT : sends a response back(unlike drop).valid in the INPUT,FORWARD and OUTPUT chains or their sub chains
  • -j DROP : drops the packet,right there right then
  • -j MARK : only valid in managle table. Note that the mark value is not set within the actual package,but is a value that is associated within the kernel with the packet. In other words does not make it out of the machineiptables -t mangle -A PREROUTING -p tcp –dport 22 -j MARK –set-mark 2
  • -j MASQUERADE : similar to SNAT but used on a outbound network interface when the outbound IP can change. Say a DHCP interface only valid within the POSTROUTING
  • -j REDIRECT : redirect packets and streams to the machine itself. Valid within the PREROUTING and OUTPUT chains of the nat tables. It is also valid within user-defined chains that are only called from those chains.

Header 1

Header 2

Header 3

Header 4

Header 5
Header 6

Paragraphs

These are sample paragraphs showing italics, bold and code text style. Here is an unordered list

  • Item 1
  • Item 2
  • Item 3

and an ordered list

  1. Item 1
  2. Item 2
  3. Item 3

A blockquote would look like this.

another one

with multiple lines

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

Code: Let’s keep it to its length and let it not take the whole width.

<div class="nav">
    <ul>
        <li>About</li>
        <li>Contact</li>
        <li>Project</li>
    </ul>
</div>

Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit.

This is a simple markdown table

Tables Are Cool
col 3 is right-aligned $1600
col 2 is centered $12
zebra stripes are neat $1

Use below code to show Table of Contents on a page

* Do not remove this line (it will not be displayed) 
{:toc}