IPTables Access Rules

From Tech Wiki
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"