IpTables hint’s¶
Check the current Config
Nat Tables
sudo iptables -L -n -t nat
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
DNAT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:443 to:192.168.20.242
DNAT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:51211 to:192.168.20.234:51211
DNAT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:51212 to:192.168.20.234:51212
DNAT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:8795 to:192.168.20.234:8795
DNAT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:9010 to:192.168.20.234:9010
DNAT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:456 to:192.168.20.234:456
DNAT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:3002 to:192.168.20.234:3002
DNAT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80 to:192.168.20.234
DNAT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:8081 to:192.168.20.100:80
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE all -- 192.168.20.0/24 0.0.0.0/0
Blocking Ip's¶
sudo iptables -L -v
For Blocking an IP
sudo iptables -A INPUT -s 192.168.0.100 -j DROP
sudo iptables -A INPUT -s 68.178.200.237 -j DROP
sudo iptables -A INPUT -s 45.155.91.95 -j DROP
sudo iptables -A INPUT -s 45.155.91.132 -j DROP
sudo iptables -A INPUT -s 96.44.142.14 -j DROP
sudo iptables -A INPUT -s 89.239.34.204 -j DROP
sudo iptables -A INPUT -s 108.181.57.189 -j DROP
sudo iptables -A INPUT -s 103.15.140.19 -j DROP
sudo iptables -A INPUT -s 198.235.24.200 -j DROP
sudo iptables -A INPUT -s 193.107.216.112 -j DROP
sudo iptables -A INPUT -s 193.107.216.112 -j DROP
sudo iptables -A INPUT -s 108.165.46.194 -j DROP
sudo iptables -A INPUT -s 45.155.91.237 -j DROP
sudo iptables -A INPUT -s 45.134.144.113 -j DROP
sudo iptables -A INPUT -s 96.44.143.190 -j DROP
sudo iptables -A INPUT -s 45.93.16.87 -j DROP
sudo iptables -A INPUT -s 89.239.32.110 -j DROP
sudo iptables -A INPUT -s 98.67.164.145 -j DROP
sudo iptables -A INPUT -s 159.203.74.53 -j DROP
sudo iptables -A INPUT -s 67.215.234.42 -j DROP
sudo iptables -A INPUT -s 80.94.93.183 -j DROP
sudo iptables -A INPUT -s 122.228.142.146 -j DROP
sudo iptables -A INPUT -s 89.163.221.27 -j DROP
sudo iptables -A INPUT -s 66.206.35.84 -j DROP
sudo iptables -A INPUT -s 198.235.24.42 -j DROP
sudo iptables -A INPUT -s 23.226.138.34 -j DROP
sudo iptables -A INPUT -s 45.95.146.4 -j DROP
sudo iptables -A INPUT -s 163.172.62.139 -j DROP
sudo iptables -A INPUT -s 92.205.177.22 -j DROP
sudo iptables -A INPUT -s 89.239.38.226 -j DROP
sudo iptables -A INPUT -s 154.26.153.158 -j DROP
sudo iptables -A INPUT -s 212.192.3.226 -j DROP
sudo iptables -A INPUT -s 52.186.172.230 -j DROP
sudo iptables -A INPUT -s 165.22.85.62 -j DROP
sudo iptables -A INPUT -s 172.200.208.56 -j DROP
sudo iptables -A INPUT -s 185.37.212.9 -j DROP
sudo iptables -A INPUT -s 205.210.31.56 -j DROP
sudo iptables -A INPUT -s 67.215.233.222 -j DROP
sudo iptables -A INPUT -s 23.226.138.30 -j DROP
sudo iptables -A INPUT -s 45.143.9.142 -j DROP
sudo iptables -A INPUT -s 167.94.138.126 -j DROP
sudo iptables -A INPUT -s 167.248.133.163 -j DROP
sudo iptables -A INPUT -s 167.248.133.124 -j DROP
sudo iptables -A INPUT -s 68.69.184.94 -j DROP
sudo iptables -A INPUT -s 104.168.59.106 -j DROP
sudo iptables -A INPUT -s 62.146.228.35 -j DROP
sudo iptables -A INPUT -s 68.178.200.237 -j DROP
sudo iptables -A INPUT -s 87.98.242.19 -j DROP
sudo iptables -A INPUT -s 45.93.16.122 -j DROP
sudo iptables -A INPUT -s 167.94.138.35 -j DROP
sudo iptables -A INPUT -s 2.57.121.95 -j DROP
sudo iptables -A INPUT -s 194.34.232.44 -j DROP
sudo iptables -A INPUT -s 137.184.89.74 -j DROP
sudo iptables -A INPUT -s 72.251.232.180 -j DROP
sudo iptables -A INPUT -s 164.92.80.220 -j DROP
sudo iptables -A INPUT -s 103.136.42.40 -j DROP
sudo iptables -A INPUT -s 157.230.223.232 -j DROP
sudo iptables -A INPUT -s 176.97.210.222 -j DROP
sudo iptables -A INPUT -s 89.163.250.219 -j DROP
sudo iptables -A INPUT -s 45.95.146.120 -j DROP
sudo iptables -A INPUT -s 205.210.31.85 -j DROP
sudo iptables -A INPUT -s -j DROP
sudo iptables -A INPUT -s -j DROP
sudo iptables -A INPUT -s -j DROP
sudo iptables -A INPUT -s -j DROP
sudo iptables -A INPUT -s -j DROP
sudo iptables -A INPUT -s -j DROP
Last update:
Nov 20, 2024