2016-10-11 10 views
-1

私は次のセットアップを達成しようとしています

NVG599 <> ASUS RT-AC88U <>静的デバイス

私はUbuntuの持っているが静的IPアドレスの1つと同様に内部アドレス192.xxxを使用するように設定されたApacheを実行しているサーバー。私はApacheが実行中/聞き取り中/作業中であることを知っています内部アドレスを参照すると、デフォルトのApacheページが表示されます。 Ubuntuファイアウォールは無効になっています。私は実際にこのIPアドレス 'http://thelavender.net'を指すドメイン設定を持っています。

通常、ATT RGは2番目のサブネット/固定IPブロックを処理します。私が理解できないことは、基本的にすべてのルーティング作業を引き継ぐASUSがこれらをどのように処理するかということです。

ATT RGにカスケードルータオプションがあり、代わりにこれを使用することについて話している人もいます。これは正しいです?バック考える

EDIT

は、私が考える1:1 NATは、私が本当に正しいここで必要なものでしょうか?

EDIT 2
私はこの線に沿って何かを使用してみました:

#!/bin/sh 
# 
# to restore this configuration, it needs to be saved to /jffs/scripts/nat-start 
# on the router. 
# 
ifconfig eth0:0 WanIP1 netmask 255.255.255.248 up 
iptables -t nat -A PREROUTING -i eth0 -d WanIP1 -j DNAT --to-destination  192.168.1.10 
iptables -t nat -I POSTROUTING -s 192.168.1.10 -j SNAT --to WanIP1 
# 
ifconfig eth0:1 WanIP2 netmask 255.255.255.248 up 
iptables -t nat -A PREROUTING -i eth0 -d WanIP2 -j DNAT --to-destination  192.168.1.11 
iptables -t nat -I POSTROUTING -s 192.168.1.11 -j SNAT --to WanIP2 
# 
ifconfig eth0:2 WanIP3 netmask 255.255.255.248 up 
iptables -t nat -A PREROUTING -i eth0 -d WanIP3 -j DNAT --to-destination 192.168.1.12 
iptables -t nat -I POSTROUTING -s 192.168.1.12 -j SNAT --to WanIP3 
# 
# Port forwards, in case the webui doesn't work, but i think it will. uncomment below if needed. 
# iptables -A FORWARD -p tcp --dport 80 -d 192.168.1.10 -j ACCEPT 

私は最初のグループを試してみましたが、マーリンをピックアップするためにNAT-startスクリプトでこれを置きます。これを実行してルータを再起動すると、RGからWAN IPを取得することを拒否しました。

これで任意の助けいただければ幸いです。

EDIT

は否決ませんが、理由として何の説明。

答えて

0

NVG599 LANアドレス:192.168.0.254/255.255.255.0

RT-AC88U WANアドレス:192.168.0.1/255.255.255.0 RT-AC88U LANアドレス:192.168.1.1/255.255.255.0

NVG599カスケードルーター:有効 カスケードルータアドレス:192.168.0.1 ネットワークアドレス:107.218.164.224 サブネットマスク:255.255.255.248

サーバー:192.168.1.10と107.218.164.225

起動ルータ用スクリプト:サーバの

#!/bin/sh 
# 
# tell it where to find the server 

ip ro add 107.218.164.225/32 via 192.168.1.10 
iptables -I POSTROUTING -t nat -s 107.218.164.225/32 -j RETURN 

# 
# servers 2-N go here 
...... 
# 
# catch-all for everything else on the LAN 
# 
# this will double-NAT everything and will end up using the NVG's dynamic IP which is outside of the static IP block 
##iptables -A POSTROUTING -t nat -o eth0 -j SNAT --to 192.168.0.1 
# 
# this uses one of the public IPs 
iptables -A POSTROUTING -t nat -o eth0 -j SNAT --to 107.218.164.230 

、スクリプト、必要であれば

#!/bin/sh 
# 
ifconfig eth0:1 107.218.164.225/29 
ip ro repl default via 192.168.1.1 src 107.218.164.225 
関連する問題