鷲尾と申します。 以下の2つのファイルを変更して、ローカルWebサーバー「192.168.0.5」を ポートフォワーディングで公開しようとしたのですが、 「グローバルIP」に アクセスすると未だに「192.168.0.1」が表示されます。 どうしたら良いのでしょうか? Ether1 がローカル(192.168.0.1)、Ether2 がグローバルで、 ネットには大学LAN でつながってます。 -------------------------- /etc/upsetconf --------------------------- /usr/sbin/iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE /usr/sbin/iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE -------------------------- /etc/upsetconf3 -------------------------- /usr/sbin/iptables -A PREROUTING -t nat -p tcp -d 「グローバルIP」 --dport 80 -j D NAT -to 192.168.0.5:80 -------------------------- iptables -L -------------------------- Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination -------------------------- iptables -t nat -L -------------------------- Chain PREROUTING (policy ACCEPT) target prot opt source destination Chain POSTROUTING (policy ACCEPT) target prot opt source destination MASQUERADE all -- anywhere anywhere MASQUERADE all -- anywhere anywhere Chain OUTPUT (policy ACCEPT) target prot opt source destination
Follow-Ups:
- [obu:01238] Re: ポートフォワーディングがうまくいかないsyun
- [obu:01243] Re: ポートフォワーディングがうまくいかないhirano yositaka
- Prev by Subject: [obu:01236] Re: タイムゾーン設定について
- Next by Subject: [obu:01238] Re: ポートフォワーディングがうまくいかない
- Previous by thread: [obu:01240] Re: OpenBlockSS に付属の samba について
- Next by thread: [obu:01238] Re: ポートフォワーディングがうまくいかない
- Indexes:[Main][Thread]