質問編集履歴

1

情報の追加

2020/10/13 06:22

投稿

syosinnsya_
syosinnsya_

スコア5

test CHANGED
File without changes
test CHANGED
@@ -4,6 +4,10 @@
4
4
 
5
5
 
6
6
 
7
+ OS:CentOS 7.2
8
+
9
+
10
+
7
11
  色々なサイトに載っている手順を参考にして構築を進めていたのですが、
8
12
 
9
13
  named.confを編集し、ゾーンファイルを作成してサービスを再起動した際に
@@ -64,14 +68,6 @@
64
68
 
65
69
 
66
70
 
67
- ###CentOS version
68
-
69
- CentOS Linux release 7.2.1511 (Core)
70
-
71
-
72
-
73
- ###試したこと
74
-
75
71
  社内にインフラのことが解る人が一人も居ないため、頼れるのはネットの情報のみです。
76
72
 
77
73
  調べてもなかなか解決法が見つからず困ったため、NetwokrManagerを入れ直しました。
@@ -80,6 +76,8 @@
80
76
 
81
77
 
82
78
 
79
+
80
+
83
81
  ###NetworkManagerの情報
84
82
 
85
83
 
@@ -122,112 +120,226 @@
122
120
 
123
121
 
124
122
 
125
- NetworkManagerのエラー以外にも、firewalldとiptablesのエラーが発生しています。
126
-
127
- 以下エラー内容です。もしNetworkManagerと何らか関係があるようでした
128
-
129
- ご教授いただければ幸いです。
130
-
131
-
132
-
133
- ###firewalldのエラー
134
-
135
-
136
-
137
- ```
138
-
139
-
140
-
141
- [root@localhost ~]# systemctl status firewalld -l
142
-
143
- firewalld.service - firewalld - dynamic firewall daemon
144
-
145
- Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
146
-
147
- Active: active (running) since 月 2020-10-12 14:45:00 JST; 1h 10min ago
148
-
149
- Main PID: 16344 (firewalld)
150
-
151
- CGroup: /system.slice/firewalld.service
152
-
153
- └─16344 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid
154
-
155
-
156
-
157
- 10月 12 14:45:01 localhost.localdomain firewalld[16344]: 2020-10-12 14:45:01 ERROR: COMMAND_FAILED: '/sbin/iptables -w2 -w --table filter --delete FORWARD --destination 192.168.122.0/24 --out-interface virbr0 --match conntrack --ctstate ESTABLISHED,RELATED --jump ACCEPT' failed: iptables: Bad rule (does a matching rule exist in that chain?).
158
-
159
- 10月 12 14:45:01 localhost.localdomain firewalld[16344]: 2020-10-12 14:45:01 ERROR: COMMAND_FAILED: '/sbin/iptables -w2 -w --table filter --delete FORWARD --source 192.168.122.0/24 --in-interface virbr0 --jump ACCEPT' failed: iptables: Bad rule (does a matching rule exist in that chain?).
160
-
161
- 10月 12 14:45:01 localhost.localdomain firewalld[16344]: 2020-10-12 14:45:01 ERROR: COMMAND_FAILED: '/sbin/iptables -w2 -w --table filter --delete FORWARD --in-interface virbr0 --out-interface virbr0 --jump ACCEPT' failed: iptables: Bad rule (does a matching rule exist in that chain?).
162
-
163
- 10月 12 14:45:01 localhost.localdomain firewalld[16344]: 2020-10-12 14:45:01 ERROR: COMMAND_FAILED: '/sbin/iptables -w2 -w --table filter --delete FORWARD --out-interface virbr0 --jump REJECT' failed: iptables: No chain/target/match by that name.
164
-
165
- 10月 12 14:45:01 localhost.localdomain firewalld[16344]: 2020-10-12 14:45:01 ERROR: COMMAND_FAILED: '/sbin/iptables -w2 -w --table filter --delete FORWARD --in-interface virbr0 --jump REJECT' failed: iptables: No chain/target/match by that name.
166
-
167
- 10月 12 14:45:01 localhost.localdomain firewalld[16344]: 2020-10-12 14:45:01 ERROR: COMMAND_FAILED: '/sbin/iptables -w2 -w --table filter --delete INPUT --in-interface virbr0 --protocol udp --destination-port 53 --jump ACCEPT' failed: iptables: Bad rule (does a matching rule exist in that chain?).
168
-
169
- 10月 12 14:45:01 localhost.localdomain firewalld[16344]: 2020-10-12 14:45:01 ERROR: COMMAND_FAILED: '/sbin/iptables -w2 -w --table filter --delete INPUT --in-interface virbr0 --protocol tcp --destination-port 53 --jump ACCEPT' failed: iptables: Bad rule (does a matching rule exist in that chain?).
170
-
171
- 10月 12 14:45:01 localhost.localdomain firewalld[16344]: 2020-10-12 14:45:01 ERROR: COMMAND_FAILED: '/sbin/iptables -w2 -w --table filter --delete OUTPUT --out-interface virbr0 --protocol udp --destination-port 68 --jump ACCEPT' failed: iptables: Bad rule (does a matching rule exist in that chain?).
172
-
173
- 10月 12 14:45:01 localhost.localdomain firewalld[16344]: 2020-10-12 14:45:01 ERROR: COMMAND_FAILED: '/sbin/iptables -w2 -w --table filter --delete INPUT --in-interface virbr0 --protocol udp --destination-port 67 --jump ACCEPT' failed: iptables: Bad rule (does a matching rule exist in that chain?).
174
-
175
- 10月 12 14:45:01 localhost.localdomain firewalld[16344]: 2020-10-12 14:45:01 ERROR: COMMAND_FAILED: '/sbin/iptables -w2 -w --table filter --delete INPUT --in-interface virbr0 --protocol tcp --destination-port 67 --jump ACCEPT' failed: iptables: Bad rule (does a matching rule exist in that chain?).
176
-
177
-
178
-
179
- ```
180
-
181
-
182
-
183
- ###iptablesのエラー
184
-
185
-
186
-
187
- ```
188
-
189
-
190
-
191
- [root@localhost ~]# systemctl status iptables
192
-
193
- iptables.service - IPv4 firewall with iptables
194
-
195
- Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled; vendor preset: disabled)
196
-
197
- Active: failed (Result: exit-code) since 金 2020-10-09 15:15:26 JST; 3 days ago
198
-
199
- Main PID: 31799 (code=exited, status=1/FAILURE)
200
-
201
-
202
-
203
- 10月 09 15:15:26 localhost.localdomain systemd[1]: Starting IPv4 firewall with iptables...
204
-
205
- 10月 09 15:15:26 localhost.localdomain iptables.init[31799]: iptables: Applying firewall rules: iptables-restore v1.4.21: unknown arguments found on commandline
206
-
207
- 10月 09 15:15:26 localhost.localdomain iptables.init[31799]: Error occurred at line: 12
208
-
209
- 10月 09 15:15:26 localhost.localdomain iptables.init[31799]: Try `iptables-restore -h' or 'iptables-restore --help' for more information.
210
-
211
- 10月 09 15:15:26 localhost.localdomain systemd[1]: iptables.service: main process exited, code=exited, status=1/FAILURE
212
-
213
- 10月 09 15:15:26 localhost.localdomain systemd[1]: Failed to start IPv4 firewall with iptables.
214
-
215
- 10月 09 15:15:26 localhost.localdomain systemd[1]: Unit iptables.service entered failed state.
216
-
217
- 10月 09 15:15:26 localhost.localdomain systemd[1]: iptables.service failed.
218
-
219
- 10月 09 15:15:26 localhost.localdomain iptables.init[31799]: [失敗]
220
-
221
-
222
-
223
- ```
224
-
225
-
226
-
227
- firewalldのエラーに関しては何を言っているのかさえさっぱり解らないため、
228
-
229
- エラーの意味だけでも教えていただけると大変助かります。
230
-
231
-
232
-
233
- よろしくお願い致します。
123
+ ###10月13日 追記
124
+
125
+ 以下のコマンドを実行NetworkManagerについて情報を確認まし
126
+
127
+
128
+
129
+ ###cat /var/log/messages
130
+
131
+
132
+
133
+ ```
134
+
135
+ Oct 12 15:31:00 localhost systemd: Starting Network Manager...
136
+
137
+ Oct 12 15:31:00 localhost NetworkManager[17643]: <info> [1602484260.8844] NetworkManager (version 1.18.4-3.el7) is starting... (after a restart)
138
+
139
+ Oct 12 15:31:00 localhost NetworkManager[17643]: <info> [1602484260.8845] Read config: /etc/NetworkManager/NetworkManager.conf (lib: 10-slaves-order.conf)
140
+
141
+ Oct 12 15:31:00 localhost NetworkManager[17643]: <info> [1602484260.8881] exiting (error)
142
+
143
+ Oct 12 15:31:00 localhost systemd: NetworkManager.service: main process exited, code=exited, status=1/FAILURE
144
+
145
+ Oct 12 15:31:00 localhost systemd: Failed to start Network Manager.
146
+
147
+ Oct 12 15:31:00 localhost systemd: Unit NetworkManager.service entered failed state.
148
+
149
+ Oct 12 15:31:00 localhost systemd: NetworkManager.service failed.
150
+
151
+ Oct 12 15:31:01 localhost systemd: NetworkManager.service holdoff time over, scheduling restart.
152
+
153
+ Oct 12 15:31:01 localhost systemd: start request repeated too quickly for NetworkManager.service
154
+
155
+ Oct 12 15:31:01 localhost systemd: Failed to start Network Manager.
156
+
157
+ Oct 12 15:31:01 localhost systemd: Unit NetworkManager.service entered failed state.
158
+
159
+ Oct 12 15:31:01 localhost systemd: NetworkManager.service failed.
160
+
161
+
162
+
163
+ ```
164
+
165
+
166
+
167
+ ###journalctl -u NetworkManager.service --no-pager
168
+
169
+ ```
170
+
171
+ 10月 12 15:31:00 localhost.localdomain systemd[1]: Starting Network Manager...
172
+
173
+ 10月 12 15:31:00 localhost.localdomain NetworkManager[17643]: <info> [1602484260.8844] NetworkManager (version 1.18.4-3.el7) is starting... (after a restart)
174
+
175
+ 10月 12 15:31:00 localhost.localdomain NetworkManager[17643]: <info> [1602484260.8845] Read config: /etc/NetworkManager/NetworkManager.conf (lib: 10-slaves-order.conf)
176
+
177
+ 10月 12 15:31:00 localhost.localdomain NetworkManager[17643]: <info> [1602484260.8881] exiting (error)
178
+
179
+ 10月 12 15:31:00 localhost.localdomain systemd[1]: NetworkManager.service: main process exited, code=exited, status=1/FAILURE
180
+
181
+ 10月 12 15:31:00 localhost.localdomain systemd[1]: Failed to start Network Manager.
182
+
183
+ 10月 12 15:31:00 localhost.localdomain systemd[1]: Unit NetworkManager.service entered failed state.
184
+
185
+ 10月 12 15:31:00 localhost.localdomain systemd[1]: NetworkManager.service failed.
186
+
187
+ 10月 12 15:31:01 localhost.localdomain systemd[1]: NetworkManager.service holdoff time over, scheduling restart.
188
+
189
+ 10月 12 15:31:01 localhost.localdomain systemd[1]: start request repeated too quickly for NetworkManager.service
190
+
191
+ 10月 12 15:31:01 localhost.localdomain systemd[1]: Failed to start Network Manager.
192
+
193
+ 10月 12 15:31:01 localhost.localdomain systemd[1]: Unit NetworkManager.service entered failed state.
194
+
195
+ 10月 12 15:31:01 localhost.localdomain systemd[1]: NetworkManager.service failed.
196
+
197
+ ```
198
+
199
+ ###rpm -V NetworkManager
200
+
201
+ ```
202
+
203
+ このコマンドでは何も表示されませんでした。
204
+
205
+ ```
206
+
207
+
208
+
209
+ ###systemctl list-unit-files | grep NetworkManager
210
+
211
+ ```
212
+
213
+ NetworkManager-dispatcher.service enabled
214
+
215
+ NetworkManager-wait-online.service masked
216
+
217
+ NetworkManager.service enabled
218
+
219
+ ```
220
+
221
+
222
+
223
+ ###cat /etc/NetworkManager/NetworkManager.conf
224
+
225
+ ```
226
+
227
+ # Configuration file for NetworkManager.
228
+
229
+ #
230
+
231
+ # See "man 5 NetworkManager.conf" for details.
232
+
233
+ #
234
+
235
+ # The directories /usr/lib/NetworkManager/conf.d/ and /var/run/NetworkManager/conf.d/
236
+
237
+ # can contain additional configuration snippets installed by packages. These files are
238
+
239
+ # read before NetworkManager.conf and have thus lowest priority.
240
+
241
+ # The directory /etc/NetworkManager/conf.d/ can contain additional configuration
242
+
243
+ # snippets. Those snippets are merged last and overwrite the settings from this main
244
+
245
+ # file.
246
+
247
+ #
248
+
249
+ # The files within one conf.d/ directory are read in asciibetical order.
250
+
251
+ #
252
+
253
+ # If /etc/NetworkManager/conf.d/ contains a file with the same name as
254
+
255
+ # /usr/lib/NetworkManager/conf.d/, the latter file is shadowed and thus ignored.
256
+
257
+ # Hence, to disable loading a file from /usr/lib/NetworkManager/conf.d/ you can
258
+
259
+ # put an empty file to /etc with the same name. The same applies with respect
260
+
261
+ # to the directory /var/run/NetworkManager/conf.d where files in /var/run shadow
262
+
263
+ # /usr/lib and are themselves shadowed by files under /etc.
264
+
265
+ #
266
+
267
+ # If two files define the same key, the one that is read afterwards will overwrite
268
+
269
+ # the previous one.
270
+
271
+
272
+
273
+ [main]
274
+
275
+ #plugins=ifcfg-rh,ibft
276
+
277
+
278
+
279
+
280
+
281
+ [logging]
282
+
283
+ # When debugging NetworkManager, enabling debug logging is of great help.
284
+
285
+ #
286
+
287
+ # Logfiles contain no passwords and little sensitive information. But please
288
+
289
+ # check before posting the file online. You can also personally hand over the
290
+
291
+ # logfile to a NM developer to treat it confidential. Meet us on #nm on freenode.
292
+
293
+ # Please post full logfiles except minimal modifications of private data.
294
+
295
+ #
296
+
297
+ # You can also change the log-level at runtime via
298
+
299
+ # $ nmcli general logging level TRACE domains ALL
300
+
301
+ # However, usually it's cleaner to enable debug logging
302
+
303
+ # in the configuration and restart NetworkManager so that
304
+
305
+ # debug logging is enabled from the start.
306
+
307
+ #
308
+
309
+ # You will find the logfiles in syslog, for example via
310
+
311
+ # $ journalctl -u NetworkManager
312
+
313
+ #
314
+
315
+ # Note that debug logging of NetworkManager can be quite verbose. Some messages
316
+
317
+ # might be rate-limited by the logging daemon (see RateLimitIntervalSec, RateLimitBurst
318
+
319
+ # in man journald.conf).
320
+
321
+ #
322
+
323
+ #level=TRACE
324
+
325
+ #domains=ALL
326
+
327
+ ```
328
+
329
+
330
+
331
+ ###journalctl -u NetworkManager
332
+
333
+ NetworkManagerが起動しなくなったのが10月6日の17時以降なので、以下の内容が関係しているのかな?と思いましたが良く分からず…取り合えず載せておきます。すみません。
334
+
335
+ ```
336
+
337
+ 10月 06 17:00:16 localhost.localdomain NetworkManager[793]: <info> VPN: unloaded org.freedesktop.NetworkManager.libreswan
338
+
339
+
340
+
341
+ ```
342
+
343
+
344
+
345
+ 文字数の関係でfirewalldとiptablesのエラー内容は削除いたしました。