белые сети: серые сети: кол-во IP адресов:

таблица соответствия IP адресов (1 белый IP = 8 серых)

# Белый IP Серые IP
1195.62.79.128172.16.64.1172.16.64.8
2195.62.79.129172.16.64.9172.16.64.16
3195.62.79.130172.16.64.17172.16.64.24
4195.62.79.131172.16.64.25172.16.64.32
5195.62.79.132172.16.64.33172.16.64.40
6195.62.79.133172.16.64.41172.16.64.48
7195.62.79.134172.16.64.49172.16.64.56
8195.62.79.135172.16.64.57172.16.64.64
9195.62.79.136172.16.64.65172.16.64.72
10195.62.79.137172.16.64.73172.16.64.80
11195.62.79.138172.16.64.81172.16.64.88
12195.62.79.139172.16.64.89172.16.64.96
13195.62.79.140172.16.64.97172.16.64.104
14195.62.79.141172.16.64.105172.16.64.112
15195.62.79.142172.16.64.113172.16.64.120
16195.62.79.143172.16.64.121172.16.64.128
17195.62.79.144172.16.64.129172.16.64.136
18195.62.79.145172.16.64.137172.16.64.144
19195.62.79.146172.16.64.145172.16.64.152
20195.62.79.147172.16.64.153172.16.64.160
21195.62.79.148172.16.64.161172.16.64.168
22195.62.79.149172.16.64.169172.16.64.176
23195.62.79.150172.16.64.177172.16.64.184
24195.62.79.151172.16.64.185172.16.64.192
25195.62.79.152172.16.64.193172.16.64.200
26195.62.79.153172.16.64.201172.16.64.208
27195.62.79.154172.16.64.209172.16.64.216
28195.62.79.155172.16.64.217172.16.64.224
29195.62.79.156172.16.64.225172.16.64.232
30195.62.79.157172.16.64.233172.16.64.240
31195.62.79.158172.16.64.241172.16.64.248
32195.62.79.159172.16.64.249172.16.65.2
33195.62.79.160172.16.65.3172.16.65.10
34195.62.79.161172.16.65.11172.16.65.18
35195.62.79.162172.16.65.19172.16.65.26
36195.62.79.163172.16.65.27172.16.65.34
37195.62.79.164172.16.65.35172.16.65.42
38195.62.79.165172.16.65.43172.16.65.50
39195.62.79.166172.16.65.51172.16.65.58
40195.62.79.167172.16.65.59172.16.65.66
41195.62.79.168172.16.65.67172.16.65.74
42195.62.79.169172.16.65.75172.16.65.82
43195.62.79.170172.16.65.83172.16.65.90
44195.62.79.171172.16.65.91172.16.65.98
45195.62.79.172172.16.65.99172.16.65.106
46195.62.79.173172.16.65.107172.16.65.114
47195.62.79.174172.16.65.115172.16.65.122
48195.62.79.175172.16.65.123172.16.65.130
49195.62.79.176172.16.65.131172.16.65.138
50195.62.79.177172.16.65.139172.16.65.146
51195.62.79.178172.16.65.147172.16.65.154
52195.62.79.179172.16.65.155172.16.65.162
53195.62.79.180172.16.65.163172.16.65.170
54195.62.79.181172.16.65.171172.16.65.178
55195.62.79.182172.16.65.179172.16.65.186
56195.62.79.183172.16.65.187172.16.65.194
57195.62.79.184172.16.65.195172.16.65.202
58195.62.79.185172.16.65.203172.16.65.210
59195.62.79.186172.16.65.211172.16.65.218
60195.62.79.187172.16.65.219172.16.65.226
61195.62.79.188172.16.65.227172.16.65.234
62195.62.79.189172.16.65.235172.16.65.242
63195.62.79.190172.16.65.243172.16.65.250
64195.62.79.191172.16.65.251172.16.66.4
65195.62.79.192172.16.66.5172.16.66.12
66195.62.79.193172.16.66.13172.16.66.20
67195.62.79.194172.16.66.21172.16.66.28
68195.62.79.195172.16.66.29172.16.66.36
69195.62.79.196172.16.66.37172.16.66.44
70195.62.79.197172.16.66.45172.16.66.52
71195.62.79.198172.16.66.53172.16.66.60
72195.62.79.199172.16.66.61172.16.66.68
73195.62.79.200172.16.66.69172.16.66.76
74195.62.79.201172.16.66.77172.16.66.84
75195.62.79.202172.16.66.85172.16.66.92
76195.62.79.203172.16.66.93172.16.66.100
77195.62.79.204172.16.66.101172.16.66.108
78195.62.79.205172.16.66.109172.16.66.116
79195.62.79.206172.16.66.117172.16.66.124
80195.62.79.207172.16.66.125172.16.66.132
81195.62.79.208172.16.66.133172.16.66.140
82195.62.79.209172.16.66.141172.16.66.148
83195.62.79.210172.16.66.149172.16.66.156
84195.62.79.211172.16.66.157172.16.66.164
85195.62.79.212172.16.66.165172.16.66.172
86195.62.79.213172.16.66.173172.16.66.180
87195.62.79.214172.16.66.181172.16.66.188
88195.62.79.215172.16.66.189172.16.66.196
89195.62.79.216172.16.66.197172.16.66.204
90195.62.79.217172.16.66.205172.16.66.212
91195.62.79.218172.16.66.213172.16.66.220
92195.62.79.219172.16.66.221172.16.66.228
93195.62.79.220172.16.66.229172.16.66.236
94195.62.79.221172.16.66.237172.16.66.244
95195.62.79.222172.16.66.245172.16.66.252
96195.62.79.223172.16.66.253172.16.67.6
97195.62.79.224172.16.67.7172.16.67.14
98195.62.79.225172.16.67.15172.16.67.22
99195.62.79.226172.16.67.23172.16.67.30
100195.62.79.227172.16.67.31172.16.67.38
101195.62.79.228172.16.67.39172.16.67.46
102195.62.79.229172.16.67.47172.16.67.54
103195.62.79.230172.16.67.55172.16.67.62
104195.62.79.231172.16.67.63172.16.67.70
105195.62.79.232172.16.67.71172.16.67.78
106195.62.79.233172.16.67.79172.16.67.86
107195.62.79.234172.16.67.87172.16.67.94
108195.62.79.235172.16.67.95172.16.67.102
109195.62.79.236172.16.67.103172.16.67.110
110195.62.79.237172.16.67.111172.16.67.118
111195.62.79.238172.16.67.119172.16.67.126
112195.62.79.239172.16.67.127172.16.67.134
113195.62.79.240172.16.67.135172.16.67.142
114195.62.79.241172.16.67.143172.16.67.150
115195.62.79.242172.16.67.151172.16.67.158
116195.62.79.243172.16.67.159172.16.67.166
117195.62.79.244172.16.67.167172.16.67.174
118195.62.79.245172.16.67.175172.16.67.182
119195.62.79.246172.16.67.183172.16.67.190
120195.62.79.247172.16.67.191172.16.67.198
121195.62.79.248172.16.67.199172.16.67.206
122195.62.79.249172.16.67.207172.16.67.214
123195.62.79.250172.16.67.215172.16.67.222
124195.62.79.251172.16.67.223172.16.67.230
125195.62.79.252172.16.67.231172.16.67.238
126195.62.79.253172.16.67.239172.16.67.246
127195.62.79.254172.16.67.247172.16.67.254

конфиг iptables

*nat
:PREROUTING ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]

-A POSTROUTING -m iprange --src-range 172.16.64.1-172.16.64.8       -j SNAT --to 195.62.79.128
-A POSTROUTING -m iprange --src-range 172.16.64.9-172.16.64.16      -j SNAT --to 195.62.79.129
-A POSTROUTING -m iprange --src-range 172.16.64.17-172.16.64.24     -j SNAT --to 195.62.79.130
-A POSTROUTING -m iprange --src-range 172.16.64.25-172.16.64.32     -j SNAT --to 195.62.79.131
-A POSTROUTING -m iprange --src-range 172.16.64.33-172.16.64.40     -j SNAT --to 195.62.79.132
-A POSTROUTING -m iprange --src-range 172.16.64.41-172.16.64.48     -j SNAT --to 195.62.79.133
-A POSTROUTING -m iprange --src-range 172.16.64.49-172.16.64.56     -j SNAT --to 195.62.79.134
-A POSTROUTING -m iprange --src-range 172.16.64.57-172.16.64.64     -j SNAT --to 195.62.79.135
-A POSTROUTING -m iprange --src-range 172.16.64.65-172.16.64.72     -j SNAT --to 195.62.79.136
-A POSTROUTING -m iprange --src-range 172.16.64.73-172.16.64.80     -j SNAT --to 195.62.79.137
-A POSTROUTING -m iprange --src-range 172.16.64.81-172.16.64.88     -j SNAT --to 195.62.79.138
-A POSTROUTING -m iprange --src-range 172.16.64.89-172.16.64.96     -j SNAT --to 195.62.79.139
-A POSTROUTING -m iprange --src-range 172.16.64.97-172.16.64.104    -j SNAT --to 195.62.79.140
-A POSTROUTING -m iprange --src-range 172.16.64.105-172.16.64.112   -j SNAT --to 195.62.79.141
-A POSTROUTING -m iprange --src-range 172.16.64.113-172.16.64.120   -j SNAT --to 195.62.79.142
-A POSTROUTING -m iprange --src-range 172.16.64.121-172.16.64.128   -j SNAT --to 195.62.79.143
-A POSTROUTING -m iprange --src-range 172.16.64.129-172.16.64.136   -j SNAT --to 195.62.79.144
-A POSTROUTING -m iprange --src-range 172.16.64.137-172.16.64.144   -j SNAT --to 195.62.79.145
-A POSTROUTING -m iprange --src-range 172.16.64.145-172.16.64.152   -j SNAT --to 195.62.79.146
-A POSTROUTING -m iprange --src-range 172.16.64.153-172.16.64.160   -j SNAT --to 195.62.79.147
-A POSTROUTING -m iprange --src-range 172.16.64.161-172.16.64.168   -j SNAT --to 195.62.79.148
-A POSTROUTING -m iprange --src-range 172.16.64.169-172.16.64.176   -j SNAT --to 195.62.79.149
-A POSTROUTING -m iprange --src-range 172.16.64.177-172.16.64.184   -j SNAT --to 195.62.79.150
-A POSTROUTING -m iprange --src-range 172.16.64.185-172.16.64.192   -j SNAT --to 195.62.79.151
-A POSTROUTING -m iprange --src-range 172.16.64.193-172.16.64.200   -j SNAT --to 195.62.79.152
-A POSTROUTING -m iprange --src-range 172.16.64.201-172.16.64.208   -j SNAT --to 195.62.79.153
-A POSTROUTING -m iprange --src-range 172.16.64.209-172.16.64.216   -j SNAT --to 195.62.79.154
-A POSTROUTING -m iprange --src-range 172.16.64.217-172.16.64.224   -j SNAT --to 195.62.79.155
-A POSTROUTING -m iprange --src-range 172.16.64.225-172.16.64.232   -j SNAT --to 195.62.79.156
-A POSTROUTING -m iprange --src-range 172.16.64.233-172.16.64.240   -j SNAT --to 195.62.79.157
-A POSTROUTING -m iprange --src-range 172.16.64.241-172.16.64.248   -j SNAT --to 195.62.79.158
-A POSTROUTING -m iprange --src-range 172.16.64.249-172.16.65.2     -j SNAT --to 195.62.79.159
-A POSTROUTING -m iprange --src-range 172.16.65.3-172.16.65.10      -j SNAT --to 195.62.79.160
-A POSTROUTING -m iprange --src-range 172.16.65.11-172.16.65.18     -j SNAT --to 195.62.79.161
-A POSTROUTING -m iprange --src-range 172.16.65.19-172.16.65.26     -j SNAT --to 195.62.79.162
-A POSTROUTING -m iprange --src-range 172.16.65.27-172.16.65.34     -j SNAT --to 195.62.79.163
-A POSTROUTING -m iprange --src-range 172.16.65.35-172.16.65.42     -j SNAT --to 195.62.79.164
-A POSTROUTING -m iprange --src-range 172.16.65.43-172.16.65.50     -j SNAT --to 195.62.79.165
-A POSTROUTING -m iprange --src-range 172.16.65.51-172.16.65.58     -j SNAT --to 195.62.79.166
-A POSTROUTING -m iprange --src-range 172.16.65.59-172.16.65.66     -j SNAT --to 195.62.79.167
-A POSTROUTING -m iprange --src-range 172.16.65.67-172.16.65.74     -j SNAT --to 195.62.79.168
-A POSTROUTING -m iprange --src-range 172.16.65.75-172.16.65.82     -j SNAT --to 195.62.79.169
-A POSTROUTING -m iprange --src-range 172.16.65.83-172.16.65.90     -j SNAT --to 195.62.79.170
-A POSTROUTING -m iprange --src-range 172.16.65.91-172.16.65.98     -j SNAT --to 195.62.79.171
-A POSTROUTING -m iprange --src-range 172.16.65.99-172.16.65.106    -j SNAT --to 195.62.79.172
-A POSTROUTING -m iprange --src-range 172.16.65.107-172.16.65.114   -j SNAT --to 195.62.79.173
-A POSTROUTING -m iprange --src-range 172.16.65.115-172.16.65.122   -j SNAT --to 195.62.79.174
-A POSTROUTING -m iprange --src-range 172.16.65.123-172.16.65.130   -j SNAT --to 195.62.79.175
-A POSTROUTING -m iprange --src-range 172.16.65.131-172.16.65.138   -j SNAT --to 195.62.79.176
-A POSTROUTING -m iprange --src-range 172.16.65.139-172.16.65.146   -j SNAT --to 195.62.79.177
-A POSTROUTING -m iprange --src-range 172.16.65.147-172.16.65.154   -j SNAT --to 195.62.79.178
-A POSTROUTING -m iprange --src-range 172.16.65.155-172.16.65.162   -j SNAT --to 195.62.79.179
-A POSTROUTING -m iprange --src-range 172.16.65.163-172.16.65.170   -j SNAT --to 195.62.79.180
-A POSTROUTING -m iprange --src-range 172.16.65.171-172.16.65.178   -j SNAT --to 195.62.79.181
-A POSTROUTING -m iprange --src-range 172.16.65.179-172.16.65.186   -j SNAT --to 195.62.79.182
-A POSTROUTING -m iprange --src-range 172.16.65.187-172.16.65.194   -j SNAT --to 195.62.79.183
-A POSTROUTING -m iprange --src-range 172.16.65.195-172.16.65.202   -j SNAT --to 195.62.79.184
-A POSTROUTING -m iprange --src-range 172.16.65.203-172.16.65.210   -j SNAT --to 195.62.79.185
-A POSTROUTING -m iprange --src-range 172.16.65.211-172.16.65.218   -j SNAT --to 195.62.79.186
-A POSTROUTING -m iprange --src-range 172.16.65.219-172.16.65.226   -j SNAT --to 195.62.79.187
-A POSTROUTING -m iprange --src-range 172.16.65.227-172.16.65.234   -j SNAT --to 195.62.79.188
-A POSTROUTING -m iprange --src-range 172.16.65.235-172.16.65.242   -j SNAT --to 195.62.79.189
-A POSTROUTING -m iprange --src-range 172.16.65.243-172.16.65.250   -j SNAT --to 195.62.79.190
-A POSTROUTING -m iprange --src-range 172.16.65.251-172.16.66.4     -j SNAT --to 195.62.79.191
-A POSTROUTING -m iprange --src-range 172.16.66.5-172.16.66.12      -j SNAT --to 195.62.79.192
-A POSTROUTING -m iprange --src-range 172.16.66.13-172.16.66.20     -j SNAT --to 195.62.79.193
-A POSTROUTING -m iprange --src-range 172.16.66.21-172.16.66.28     -j SNAT --to 195.62.79.194
-A POSTROUTING -m iprange --src-range 172.16.66.29-172.16.66.36     -j SNAT --to 195.62.79.195
-A POSTROUTING -m iprange --src-range 172.16.66.37-172.16.66.44     -j SNAT --to 195.62.79.196
-A POSTROUTING -m iprange --src-range 172.16.66.45-172.16.66.52     -j SNAT --to 195.62.79.197
-A POSTROUTING -m iprange --src-range 172.16.66.53-172.16.66.60     -j SNAT --to 195.62.79.198
-A POSTROUTING -m iprange --src-range 172.16.66.61-172.16.66.68     -j SNAT --to 195.62.79.199
-A POSTROUTING -m iprange --src-range 172.16.66.69-172.16.66.76     -j SNAT --to 195.62.79.200
-A POSTROUTING -m iprange --src-range 172.16.66.77-172.16.66.84     -j SNAT --to 195.62.79.201
-A POSTROUTING -m iprange --src-range 172.16.66.85-172.16.66.92     -j SNAT --to 195.62.79.202
-A POSTROUTING -m iprange --src-range 172.16.66.93-172.16.66.100    -j SNAT --to 195.62.79.203
-A POSTROUTING -m iprange --src-range 172.16.66.101-172.16.66.108   -j SNAT --to 195.62.79.204
-A POSTROUTING -m iprange --src-range 172.16.66.109-172.16.66.116   -j SNAT --to 195.62.79.205
-A POSTROUTING -m iprange --src-range 172.16.66.117-172.16.66.124   -j SNAT --to 195.62.79.206
-A POSTROUTING -m iprange --src-range 172.16.66.125-172.16.66.132   -j SNAT --to 195.62.79.207
-A POSTROUTING -m iprange --src-range 172.16.66.133-172.16.66.140   -j SNAT --to 195.62.79.208
-A POSTROUTING -m iprange --src-range 172.16.66.141-172.16.66.148   -j SNAT --to 195.62.79.209
-A POSTROUTING -m iprange --src-range 172.16.66.149-172.16.66.156   -j SNAT --to 195.62.79.210
-A POSTROUTING -m iprange --src-range 172.16.66.157-172.16.66.164   -j SNAT --to 195.62.79.211
-A POSTROUTING -m iprange --src-range 172.16.66.165-172.16.66.172   -j SNAT --to 195.62.79.212
-A POSTROUTING -m iprange --src-range 172.16.66.173-172.16.66.180   -j SNAT --to 195.62.79.213
-A POSTROUTING -m iprange --src-range 172.16.66.181-172.16.66.188   -j SNAT --to 195.62.79.214
-A POSTROUTING -m iprange --src-range 172.16.66.189-172.16.66.196   -j SNAT --to 195.62.79.215
-A POSTROUTING -m iprange --src-range 172.16.66.197-172.16.66.204   -j SNAT --to 195.62.79.216
-A POSTROUTING -m iprange --src-range 172.16.66.205-172.16.66.212   -j SNAT --to 195.62.79.217
-A POSTROUTING -m iprange --src-range 172.16.66.213-172.16.66.220   -j SNAT --to 195.62.79.218
-A POSTROUTING -m iprange --src-range 172.16.66.221-172.16.66.228   -j SNAT --to 195.62.79.219
-A POSTROUTING -m iprange --src-range 172.16.66.229-172.16.66.236   -j SNAT --to 195.62.79.220
-A POSTROUTING -m iprange --src-range 172.16.66.237-172.16.66.244   -j SNAT --to 195.62.79.221
-A POSTROUTING -m iprange --src-range 172.16.66.245-172.16.66.252   -j SNAT --to 195.62.79.222
-A POSTROUTING -m iprange --src-range 172.16.66.253-172.16.67.6     -j SNAT --to 195.62.79.223
-A POSTROUTING -m iprange --src-range 172.16.67.7-172.16.67.14      -j SNAT --to 195.62.79.224
-A POSTROUTING -m iprange --src-range 172.16.67.15-172.16.67.22     -j SNAT --to 195.62.79.225
-A POSTROUTING -m iprange --src-range 172.16.67.23-172.16.67.30     -j SNAT --to 195.62.79.226
-A POSTROUTING -m iprange --src-range 172.16.67.31-172.16.67.38     -j SNAT --to 195.62.79.227
-A POSTROUTING -m iprange --src-range 172.16.67.39-172.16.67.46     -j SNAT --to 195.62.79.228
-A POSTROUTING -m iprange --src-range 172.16.67.47-172.16.67.54     -j SNAT --to 195.62.79.229
-A POSTROUTING -m iprange --src-range 172.16.67.55-172.16.67.62     -j SNAT --to 195.62.79.230
-A POSTROUTING -m iprange --src-range 172.16.67.63-172.16.67.70     -j SNAT --to 195.62.79.231
-A POSTROUTING -m iprange --src-range 172.16.67.71-172.16.67.78     -j SNAT --to 195.62.79.232
-A POSTROUTING -m iprange --src-range 172.16.67.79-172.16.67.86     -j SNAT --to 195.62.79.233
-A POSTROUTING -m iprange --src-range 172.16.67.87-172.16.67.94     -j SNAT --to 195.62.79.234
-A POSTROUTING -m iprange --src-range 172.16.67.95-172.16.67.102    -j SNAT --to 195.62.79.235
-A POSTROUTING -m iprange --src-range 172.16.67.103-172.16.67.110   -j SNAT --to 195.62.79.236
-A POSTROUTING -m iprange --src-range 172.16.67.111-172.16.67.118   -j SNAT --to 195.62.79.237
-A POSTROUTING -m iprange --src-range 172.16.67.119-172.16.67.126   -j SNAT --to 195.62.79.238
-A POSTROUTING -m iprange --src-range 172.16.67.127-172.16.67.134   -j SNAT --to 195.62.79.239
-A POSTROUTING -m iprange --src-range 172.16.67.135-172.16.67.142   -j SNAT --to 195.62.79.240
-A POSTROUTING -m iprange --src-range 172.16.67.143-172.16.67.150   -j SNAT --to 195.62.79.241
-A POSTROUTING -m iprange --src-range 172.16.67.151-172.16.67.158   -j SNAT --to 195.62.79.242
-A POSTROUTING -m iprange --src-range 172.16.67.159-172.16.67.166   -j SNAT --to 195.62.79.243
-A POSTROUTING -m iprange --src-range 172.16.67.167-172.16.67.174   -j SNAT --to 195.62.79.244
-A POSTROUTING -m iprange --src-range 172.16.67.175-172.16.67.182   -j SNAT --to 195.62.79.245
-A POSTROUTING -m iprange --src-range 172.16.67.183-172.16.67.190   -j SNAT --to 195.62.79.246
-A POSTROUTING -m iprange --src-range 172.16.67.191-172.16.67.198   -j SNAT --to 195.62.79.247
-A POSTROUTING -m iprange --src-range 172.16.67.199-172.16.67.206   -j SNAT --to 195.62.79.248
-A POSTROUTING -m iprange --src-range 172.16.67.207-172.16.67.214   -j SNAT --to 195.62.79.249
-A POSTROUTING -m iprange --src-range 172.16.67.215-172.16.67.222   -j SNAT --to 195.62.79.250
-A POSTROUTING -m iprange --src-range 172.16.67.223-172.16.67.230   -j SNAT --to 195.62.79.251
-A POSTROUTING -m iprange --src-range 172.16.67.231-172.16.67.238   -j SNAT --to 195.62.79.252
-A POSTROUTING -m iprange --src-range 172.16.67.239-172.16.67.246   -j SNAT --to 195.62.79.253
-A POSTROUTING -m iprange --src-range 172.16.67.247-172.16.67.254   -j SNAT --to 195.62.79.254

COMMIT

конфиг модуля

# 172.16.64.0/18
pools.nat1=
172.16.64.1-172.16.64.254;
172.16.65.1-172.16.65.254;
172.16.66.1-172.16.66.254;
172.16.67.1-172.16.67.254
# пул для Reject-To-Accept
# 100.127.32.0/19
nas.pools.fake=
100.127.32.1-100.127.32.254;
100.127.33.1-100.127.33.254;
100.127.34.1-100.127.34.254;
100.127.35.1-100.127.35.254;
100.127.36.1-100.127.36.254;
100.127.37.1-100.127.37.254;
100.127.38.1-100.127.38.254;
100.127.39.1-100.127.39.254;
100.127.40.1-100.127.40.254;
100.127.41.1-100.127.41.254;
100.127.42.1-100.127.42.254;
100.127.43.1-100.127.43.254;
100.127.44.1-100.127.44.254;
100.127.45.1-100.127.45.254;
100.127.46.1-100.127.46.254;
100.127.47.1-100.127.47.254