13,420
edits
Changes
no edit summary
::::<pre>ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED</pre>
:* '''Rules are applied to:''' '''chains''' (e.g. ''input/output'') and contain information regarding the type of traffic they apply to. For example, '''protocols''' such as ''tcp/udp/icmp'', '''port numbers''' such as ''22 (SSH), 80 (HTTP), 443 (SHTTP)'', '''addresses''', and many other things.<br><br> ::Let's look at how these rules would apply to a simple web connection (HTTP - port 80):<br><br>
::# For the ''request'', the '''source port (sport) is 40112''' and the '''destination port (dport) is 80'''
::# For the ''response'', the '''source port is 80''' and the '''destination port is 40112'''