Questions tagged [iptables]

IPTables is an application that allows administrators to configure the packet processing tables provided by the Linux kernel firewall. Use this tag only for questions on programming with IPTables.

Filter by
Sorted by
Tagged with
1 vote
0 answers
165 views

replace ipset with bash script

So what I'm trying to do is to get "bad" ip's from this page https://raw.githubusercontent.com/stamparm/ipsum/master/ipsum.txt Then I made a script that replaces ipsets to block, by ...
brat's user avatar
  • 153
2 votes
0 answers
89 views

SSH rate limiting using Puppet firewall module

I used to do simple SSH rate limiting using an UFW Puppet module. To get more flexible blocking I've changed to using the official firewall module instead. Are there any significant issues with the ...
l0b0's user avatar
  • 8,907
2 votes
1 answer
68 views

IPtables for webserver with SSH

I've had a bit of help but I'm still a bit unsure. I have an nginx webserver with SSH only required. I wrote this rule set based on information I found on the internet: ...
Jimmy's user avatar
  • 473
12 votes
3 answers
903 views

Iptables Lockdown

I have nginx serving files with uwsgi and I wanted to lock my server down just to allow SSH and Nginx to run. ...
J.Zil's user avatar
  • 387
2 votes
2 answers
5k views

Python class to abstract the iptables Linux firewall

I've written the following Python class that fetches iptables rules using basic string processing in Linux. Am I doing this in the correct manner? I've tested the code and it's running fine. I'm ...
Prahlad Yeri's user avatar