Назад | Перейти на главную страницу

Перенаправление портов с маршрутизатора / общедоступного IP-адреса на локальный сервер: 80

У меня есть маршрутизатор 4G, подключенный к сетевой карте сервера Ubuntu 18.04. Мне нужно использовать общедоступный IP-адрес маршрутизатора для доступа к веб-странице, размещенной на сервере. Я правильно настроил переадресацию портов на маршрутизаторе (подтвердил это, подключив к нему устройство, отличное от ubuntu, и успешно переадресовал порты), но все равно безуспешно. Маршрут по умолчанию на сервере настроен на IP-адрес маршрутизатора. С помощью ufw Я полностью снял ограничения брандмауэра до такой степени, что любое соединение может быть установлено.

/ и т.д. / по умолчанию / uwf:

# /etc/default/ufw #

# Set to yes to apply rules to support IPv6 (no means only IPv6 on loopback
# accepted). You will need to 'disable' and then 'enable' the firewall for
# the changes to take affect.
IPV6=yes

# Set the default input policy to ACCEPT, DROP, or REJECT. Please note that if
# you change this you will most likely want to adjust your rules.
DEFAULT_INPUT_POLICY="ACCEPT"

# Set the default output policy to ACCEPT, DROP, or REJECT. Please note that if
# you change this you will most likely want to adjust your rules.
DEFAULT_OUTPUT_POLICY="ACCEPT"

# Set the default forward policy to ACCEPT, DROP or REJECT.  Please note that
# if you change this you will most likely want to adjust your rules
DEFAULT_FORWARD_POLICY="ACCEPT"

# Set the default application policy to ACCEPT, DROP, REJECT or SKIP. Please
# note that setting this to ACCEPT may be a security risk. See 'man ufw' for
# details
DEFAULT_APPLICATION_POLICY="SKIP"

# By default, ufw only touches its own chains. Set this to 'yes' to have ufw
# manage the built-in chains too. Warning: setting this to 'yes' will break
# non-ufw managed firewall rules
MANAGE_BUILTINS=no

root @ server: / etc / ufw # подробный статус ufw

Status: active
Logging: on (low)
Default: allow (incoming), allow (outgoing), allow (routed)
New profiles: skip

To                         Action      From
--                         ------      ----
Anywhere                   ALLOW IN    10.20.0.0/24              
80                         ALLOW IN    Anywhere                  
80/tcp                     ALLOW IN    Anywhere                  
22/tcp                     ALLOW IN    Anywhere                  
22                         ALLOW IN    Anywhere                  
8088                       ALLOW IN    Anywhere                  
80 (v6)                    ALLOW IN    Anywhere (v6)             
80/tcp (v6)                ALLOW IN    Anywhere (v6)             
22/tcp (v6)                ALLOW IN    Anywhere (v6)             
22 (v6)                    ALLOW IN    Anywhere (v6)             
8088 (v6)                  ALLOW IN    Anywhere (v6)

Есть предложения по изменениям, разрешающим переадресацию портов?