Difference between revisions of "IPTables Access Rules"

From Tech Wiki
Jump to navigation Jump to search
(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...")
 
(No difference)

Latest revision as of 11:21, 28 April 2016

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"