iptables - limit connections

Linode Staff

How do I limit connections to a specific set of IPs with iptables?

1 Reply

With iptables you can block or allow traffic from specific IP addresses by adding rules to your configuration. The link below shows you how to block all traffic and then add rules to allow it from the IPs you choose:

Whitelist/Blacklist by IP Address

You can also drop traffic from specific IPs:

Drop Traffic from an IP

For our full guide on iptables rules and configurations, click the link below:

Control Network traffic with iptables

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct