IPTables Access Rules

From Tech Wiki
Revision as of 11:21, 28 April 2016 by Adam.birds (talk | contribs) (Created page with "'''To allow access to a Linux server from an IP Address, use the following example commands:''' <pre> iptables -I INPUT -s 1.1.1.1 -j ACCEPT -m comment --comment "Access" ipt...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

To allow access to a Linux server from an IP Address, use the following example commands:

iptables -I INPUT -s 1.1.1.1 -j ACCEPT -m comment --comment "Access"
iptables -I INPUT -s 78.78.78.78 -j ACCEPT -m comment --comment "Access"