{"id":276,"date":"2022-06-07T09:21:29","date_gmt":"2022-06-07T09:21:29","guid":{"rendered":"https:\/\/hiyokotech.com\/?p=276"},"modified":"2022-06-10T23:46:44","modified_gmt":"2022-06-10T23:46:44","slug":"linux-ip-tables","status":"publish","type":"post","link":"https:\/\/hiyokotech.com\/?p=276","title":{"rendered":"Linux &#8211; IP Tables"},"content":{"rendered":"\n<p>IPTABLES is able to add the network accept and drop policy.<\/p>\n\n\n\n<p>Sometimes we need to accept specific address or need to drop specific address from external or internal networks. <\/p>\n\n\n\n<p>(1) current IP Tables<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># iptables -L\nChain INPUT (policy ACCEPT)\ntarget prot opt source destination\nChain FORWARD (policy ACCEPT)\ntarget prot opt source destination\nChain OUTPUT (policy ACCEPT)\ntarget prot opt source destination<\/pre>\n\n\n\n<p>(2) Block from specific IP<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Example )\niptables -A INPUT -s 192.168.1.10\/32 -j DROP\niptables -A INPUT -s 194.15.216.0\/24 -j DROP\niptables -A INPUT -s 146.70.104.0\/24 -j DROP\niptables -A INPUT -s 87.246.7.0\/24 -j DROP\niptables -A INPUT -s 185.17.40.0\/24 -j DROP\niptables -A INPUT -s 146.70.95.0\/24 -j DROP<\/pre>\n\n\n\n<p>(3) Restart IP Tables<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/etc\/init.d\/iptables restart<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>[reference]<\/p>\n\n\n\n<p>these unknown IP Address tried to access my server by smtp June11th, 2022<\/p>\n\n\n\n<p>185.222.58.57<br>110.188.114.38<br>59.144.169.242<br>187.161.230.151<br>76.72.180.120<br>42.119.100.140<br>203.229.18.229<br>58.221.171.67<br>67.58.15.68<br>189.114.136.231<br>82.149.112.170<br>187.103.206.54<br>190.89.21.162<br>201.166.225.176<br>196.192.169.121<br>40.69.168.61<br>103.143.117.76<br>183.219.101.110<br>103.162.178.42<br>125.19.244.62<br>139.59.80.224<br>67.204.24.218<br>151.64.144.100<br>180.174.239.251<br>93.118.150.16<br>64.234.27.160<br>189.108.229.138<br>189.56.178.153<br>186.179.100.29<br>136.185.15.123<br>182.70.118.247<br>125.131.22.121<br>58.17.6.119<br>216.180.157.230<br>72.4.32.182<br>115.112.70.107<br>218.26.163.125<br>211.233.49.186<br>136.185.18.169<br>112.216.255.215<br>182.191.112.44<br>190.182.194.16<br>186.148.211.89<br>103.107.36.18<br>154.160.15.113<br>122.175.4.222<br>58.115.53.124<br>186.238.31.10<br>220.120.51.231<br>136.185.7.14<br>60.255.187.241<br>124.65.227.154<br>59.53.182.95<br>115.114.40.105<br>43.251.255.88<br>117.7.231.140<br>46.17.96.40<br>201.166.226.194<br>211.233.68.2<br>190.211.100.28<br>201.173.250.121<br>185.110.227.14<br>213.230.65.53<br>220.164.2.113<br>66.181.208.244<br>117.79.226.121<br>31.190.197.135<br>152.231.17.202<br>195.19.101.222<br>209.198.29.74<br>94.19.37.231<br>118.70.180.188<br>37.255.233.138<br>119.28.63.80<br>122.227.71.6<br>43.129.178.208<br>219.145.62.134<br>185.232.88.230<br>85.184.70.58<br>60.23.113.224<br>222.188.95.202<br>5.232.98.148<br>111.22.72.160<br>183.62.20.2<br>218.207.170.134<br>103.140.142.43<br>176.12.161.25<br>43.251.255.13<br>187.161.231.4<br>78.38.152.70<br>120.48.83.29<br>113.160.178.11<br>197.255.136.118<br>124.167.20.72<br>115.204.116.13<br>103.92.38.100<br>190.97.204.164<br>197.210.158.101<br>117.79.226.120<br>82.66.53.144<br>128.0.140.143<br>188.240.236.3<br>196.202.152.122<br>114.92.226.107<br>45.179.149.42<br>117.4.187.19<br>93.118.123.49<br>218.92.97.182<br>186.200.128.78<br>131.161.184.19<br>115.110.117.142<br>125.136.40.237<br>23.94.69.185<br>182.70.119.173<br>102.33.35.95<br>136.34.98.73<br>93.118.124.246<br>121.147.186.173<br>211.105.186.192<br>43.154.39.78<br>109.86.69.82<br>115.112.83.66<br>121.135.254.185<br>122.187.233.80<br>195.116.56.10<br>103.93.36.163<br>220.180.249.165<br>66.128.255.168<br>186.73.175.161<br>122.169.118.120<br>221.4.195.115<br>61.246.3.3<br>2.180.13.95<br>27.72.47.206<br>182.70.116.157<br>58.47.159.3<br>90.161.215.195<br>154.114.253.162<br>38.125.205.44<br>218.7.246.205<br>180.164.35.6<br>23.92.20.177<br>118.194.251.58<br>122.166.158.28<br>52.149.143.5<br>207.66.124.146<br>136.185.1.208<br>191.99.251.172<br>185.178.10.62<br>41.193.50.162<br>183.237.164.204<br>49.156.149.74<br>182.76.200.238<br>180.164.39.124<br>187.252.227.94<br>78.25.107.222<br>223.30.218.162<br>45.238.23.144<br>109.248.249.72<br>50.236.203.254<br>181.210.134.234<br>187.9.149.114<br>46.180.118.174<br>210.90.244.123<br>200.232.15.41<br>195.158.14.232<br>39.116.127.105<br>196.189.12.154<br>43.251.255.21<br>122.175.11.197<br>98.124.92.5<br>60.28.144.162<br>177.152.68.58<br>220.225.7.82<br>201.173.171.74<br>103.87.27.235<br>189.89.139.59<br>61.32.133.198<br>122.147.187.114<br>191.97.10.0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 <br \/><a class=\"read-more-button\" href=\"https:\/\/hiyokotech.com\/?p=276\">Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/hiyokotech.com\/index.php?rest_route=\/wp\/v2\/posts\/276"}],"collection":[{"href":"https:\/\/hiyokotech.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hiyokotech.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hiyokotech.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hiyokotech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=276"}],"version-history":[{"count":5,"href":"https:\/\/hiyokotech.com\/index.php?rest_route=\/wp\/v2\/posts\/276\/revisions"}],"predecessor-version":[{"id":281,"href":"https:\/\/hiyokotech.com\/index.php?rest_route=\/wp\/v2\/posts\/276\/revisions\/281"}],"wp:attachment":[{"href":"https:\/\/hiyokotech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=276"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hiyokotech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=276"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hiyokotech.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}