Documentation

IPTables Access Rules

A
Adam Birds
Published 10 August 20261 min read1 views

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"
Last updated: 10 August 2026v1