This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| configuration:1to1_napt [2018/10/24 08:45] – fachet | configuration:1to1_napt [2024/04/18 13:34] (current) – fachet | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== 1:1 Network NAT ====== | ====== 1:1 Network NAT ====== | ||
| - | With 1:1 NAT you can Map a whole network IP-range into another. This can be handy if you want to maintain a common local ip range like 192.168.1.0/ | + | With 1:1 NAT you can Map a whole network IP-range into another. This can be handy if you want to maintain a common local ip range like 192.168.1.0/ |
| {{: | {{: | ||
| - | Common Example: | + | Common Example: |
| - | * to the ticketmachine via **192.168.1.13**, | + | Vehicles have installed ticketmachines, |
| - | * to the videocamera via **192.168.1.14** | + | * to the ticketmachine via **192.168.1.10**, |
| - | * and the WLAN accesspoint | + | * to the videocamera via **192.168.1.11** |
| + | * and all other devices | ||
| - | But in the same moment | + | In addition |
| - | | + | Vehicle 1 - 172.31.0.10: |
| - | * to the videocamera via **10.10.123.14** | + | |
| - | * and the WLAN accesspoint | + | * to the videocamera via **10.8.1.11** |
| - | + | * and all other devices via **via 10.8.1.XX** | |
| - | Where 123 would be your vehicle/ | + | Vehicle 2 - IP 172.31.0.11: |
| + | * to the ticketmachine via **10.8.2.10** | ||
| + | * to the videocamera | ||
| + | * and all other devices via **via 10.8.2.XX** | ||
| + | Vehicle NN - IP 172.31.0.YY: | ||
| + | * to the ticketmachine via **10.8.NN.10** | ||
| + | * to the videocamera via **10.8.NN.11** | ||
| + | * and all other devices via **via 10.8.NN.XX** | ||
| To avoid creating 3 or even more NAPT rules you can use the network based rules and do this with only 2 Rules. | To avoid creating 3 or even more NAPT rules you can use the network based rules and do this with only 2 Rules. | ||
| + | |||
| + | ===== Networking Rules in the back-end ===== | ||
| + | 10.8.1.0/24 -> 172.31.0.10 | ||
| + | 10.8.2.0/24 -> 172.31.0.11 | ||
| + | 10.8.NN.0/ | ||
| ===== Basic Napt Rules ===== | ===== Basic Napt Rules ===== | ||
| - | + | Vehicle 1: | |
| - | * Inbound: Map 10.10.**123**.0/24 to 192.168.**1**.0/ | + | * Inbound: Map 10.8.**1**.0/24 to 192.168.1.0/24 |
| - | * Outbount: Map 192.168.**1**.0/ | + | * Outbount: Map 192.168.1.0/ |
| + | Vehicle 2: | ||
| + | * Inbound: Map 10.8.**2**.0/ | ||
| + | * Outbount: Map 192.168.1.0/24 to 10.8.**2**.0/24 | ||
| + | Vehicle NN: | ||
| + | * Inbound: Map 10.8.**NN**.0/ | ||
| + | * Outbount: Map 192.168.1.0/ | ||
| ===== Configuration ===== | ===== Configuration ===== | ||
| - | To Configure this scenario all you need are two rules | + | To Configure this scenario all you need are two rules per router - Veihcle 1 |
| * Inbound NAT Rule | * Inbound NAT Rule | ||
| - | {{ :nrsw:screenshot_-_140415_-_11_32_57.png?600 |}} | + | {{ :configuration:napt_in.png?800 |}} |
| * Outbound NAT Rule | * Outbound NAT Rule | ||
| - | {{ :nrsw:screenshot_-_140415_-_11_39_52.png?600 |}} | + | {{ :configuration:napt_out.png?800 |}} |