Linux – IP Tables

IPTABLES is able to add the network accept and drop policy.

Sometimes we need to accept specific address or need to drop specific address from external or internal networks.

(1) current IP Tables

# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination

(2) Block from specific IP

Example )
iptables -A INPUT -s 192.168.1.10/32 -j DROP
iptables -A INPUT -s 194.15.216.0/24 -j DROP
iptables -A INPUT -s 146.70.104.0/24 -j DROP
iptables -A INPUT -s 87.246.7.0/24 -j DROP
iptables -A INPUT -s 185.17.40.0/24 -j DROP
iptables -A INPUT -s 146.70.95.0/24 -j DROP

(3) Restart IP Tables

/etc/init.d/iptables restart

[reference]

these unknown IP Address tried to access my server by smtp June11th, 2022

185.222.58.57
110.188.114.38
59.144.169.242
187.161.230.151
76.72.180.120
42.119.100.140
203.229.18.229
58.221.171.67
67.58.15.68
189.114.136.231
82.149.112.170
187.103.206.54
190.89.21.162
201.166.225.176
196.192.169.121
40.69.168.61
103.143.117.76
183.219.101.110
103.162.178.42
125.19.244.62
139.59.80.224
67.204.24.218
151.64.144.100
180.174.239.251
93.118.150.16
64.234.27.160
189.108.229.138
189.56.178.153
186.179.100.29
136.185.15.123
182.70.118.247
125.131.22.121
58.17.6.119
216.180.157.230
72.4.32.182
115.112.70.107
218.26.163.125
211.233.49.186
136.185.18.169
112.216.255.215
182.191.112.44
190.182.194.16
186.148.211.89
103.107.36.18
154.160.15.113
122.175.4.222
58.115.53.124
186.238.31.10
220.120.51.231
136.185.7.14
60.255.187.241
124.65.227.154
59.53.182.95
115.114.40.105
43.251.255.88
117.7.231.140
46.17.96.40
201.166.226.194
211.233.68.2
190.211.100.28
201.173.250.121
185.110.227.14
213.230.65.53
220.164.2.113
66.181.208.244
117.79.226.121
31.190.197.135
152.231.17.202
195.19.101.222
209.198.29.74
94.19.37.231
118.70.180.188
37.255.233.138
119.28.63.80
122.227.71.6
43.129.178.208
219.145.62.134
185.232.88.230
85.184.70.58
60.23.113.224
222.188.95.202
5.232.98.148
111.22.72.160
183.62.20.2
218.207.170.134
103.140.142.43
176.12.161.25
43.251.255.13
187.161.231.4
78.38.152.70
120.48.83.29
113.160.178.11
197.255.136.118
124.167.20.72
115.204.116.13
103.92.38.100
190.97.204.164
197.210.158.101
117.79.226.120
82.66.53.144
128.0.140.143
188.240.236.3
196.202.152.122
114.92.226.107
45.179.149.42
117.4.187.19
93.118.123.49
218.92.97.182
186.200.128.78
131.161.184.19
115.110.117.142
125.136.40.237
23.94.69.185
182.70.119.173
102.33.35.95
136.34.98.73
93.118.124.246
121.147.186.173
211.105.186.192
43.154.39.78
109.86.69.82
115.112.83.66
121.135.254.185
122.187.233.80
195.116.56.10
103.93.36.163
220.180.249.165
66.128.255.168
186.73.175.161
122.169.118.120
221.4.195.115
61.246.3.3
2.180.13.95
27.72.47.206
182.70.116.157
58.47.159.3
90.161.215.195
154.114.253.162
38.125.205.44
218.7.246.205
180.164.35.6
23.92.20.177
118.194.251.58
122.166.158.28
52.149.143.5
207.66.124.146
136.185.1.208
191.99.251.172
185.178.10.62
41.193.50.162
183.237.164.204
49.156.149.74
182.76.200.238
180.164.39.124
187.252.227.94
78.25.107.222
223.30.218.162
45.238.23.144
109.248.249.72
50.236.203.254
181.210.134.234
187.9.149.114
46.180.118.174
210.90.244.123
200.232.15.41
195.158.14.232
39.116.127.105
196.189.12.154
43.251.255.21
122.175.11.197
98.124.92.5
60.28.144.162
177.152.68.58
220.225.7.82
201.173.171.74
103.87.27.235
189.89.139.59
61.32.133.198
122.147.187.114
191.97.10.0

About: wpadmin


Leave a Reply

Translate »