環境
サーバ
centOS7.4
enp0s25:xxx.xxx.xxx.90/29
enp2s0:192.168.1.18/24
ルータ:xxx.xxx.xxx.89/29
apacheサーバを公開したくローカルIP、グローバルIPを設定しています。
サーバに直接グローバルIPを振っているため、ルータでのNAT変換は行っておりません。
http://ローカルIP/index.html OK
http://グローバルIP/index.html NG
このような状況です。
当初はapacheの設定かと思っていましたが、ネットワーク周りの問題のような気がします。
内部→外部はping応答がありますが、外部→内部ではping応答がありません。
もちろんルータにサーバまでのicmpは許可しています。
アダプタの優先順位とか経路設定とかそのあたりかと思いましたが、原因がわからないので
ご回答お願いします。
netstat -an | grep 80
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
ping 8.8.8.8 -I enp0s25 ←内部から外部へはpingが通ります。
PING 8.8.8.8 (8.8.8.8) from xxx.xxx.xxx.90 enp0s25: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=56 time=16.3 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=56 time=13.2 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=56 time=15.3 ms
ip route
default via xxx.xxx.xxx.89 dev enp0s25 proto static metric 100
default via 192.168.1.254 dev enp2s0 proto static metric 101
xxx.xxx.xxx.88/29 dev enp0s25 proto kernel scope link src xxx.xxx.xxx.90 metric 100
192.168.1.0/24 dev enp2s0 proto kernel scope link src 192.168.1.18 metric 101
#ip a
2: enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
inet xxx.xxx.xxx.90/29 brd xxx.xxx.xxx.95 scope global noprefixroute enp0s25
valid_lft forever preferred_lft forever
回答2件
あなたの回答
tips
プレビュー