http://127.0.0.1 возвращение 401 Несанкционированный

861
pavsid

У меня есть CentOS 7, и у меня есть служба, работающая на порте 32400 (Plex Media Server), которая пытается получить некоторую информацию через HTTP, http://127.0.0.1:32400/library/changestampно возвращается ответ 401. Я добавил loинтерфейс к активной зоне в firewalld, но все еще получаю 401.

IP-адрес сервера 192.168.1.77 и http://192.168.1.77:32400/library/changestampвозвращает 200 (я добавил соответствующие правила firewalld).

Итак, как я могу сделать http://127.0.0.1:32400/library/changestampвозврат 200? Если я firewalldвыключаю, то это делает, но, очевидно, мне нужно firewalldвключить.

0

1 ответ на вопрос

0
pavsid

OK, it turns out that enabling masquerading on the zone is preventing traffic to 127.0.0.1

So, what I have done is set up 2 zones - external and internal. I assigned the lo interface to the internal zone and the NIC (eno1) to the external zone.

I then left masquerading enabled on the external zone, but disabled it for the internal zone, allowing traffic to the lo interface (127.0.0.1) through.

Not sure if this is the correct/best way to do it, so I welcome any comments!

Hope this helps others.

Похожие вопросы