Добавление статического маршрута в Red Hat с машиной в другой подсети как шлюз по умолчанию

У Вас, вероятно, все еще есть httpd, работающий на порте 80 en 443. Попробуйте pkill httpd; или pkill-9 httpd
Затем выполненный netstat - завод снова и проверка, если httpd на порте 80 и 443 не стало.
Теперь запустите апача снова.

Вы говорите, что не имеете 443 в Вашей конфигурации, что делает "grep-ril 443"/etc/apache2, говорят?

0
задан 13 July 2012 в 12:20
1 ответ

You can only set gateways on local subnets. This is because once you give a packet to another machine, it's free to route the packet any way it wants. So you might say "look, I want to route this packet destined for 14.1.0.1 via 10.156.149.144, so to get the packet there I'll pass it to 10.156.16.1", and then when you hand the packet to 10.156.16.1, it says "nah, I reckon packets to 14.1.0.1 should be routed to 192.0.2.254", and the packet doesn't go where you need it to go.

What you need to do is either get a direct connection to 10.156.149.144, or else tell 10.156.16.1 (and any other routers along the way) that it should route traffic to 14.1.0.0/24 in the direction of 10.156.149.144. Luckily, the "direct connection" can be a tunnel of some sort (VPN, GRE, etc), so you don't necessarily have to lay any cable.

1
ответ дан 4 December 2019 в 21:43

Теги

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