Jump to content

This is the support site for Andrews & Arnold Ltd, a UK Internet provider. Information on these pages is generally for our customers but may be useful to others, enjoy!

Router - TG582N - Mixed NAT: Difference between revisions

Document how to change the outside address used by NAT
No edit summary
(Document how to change the outside address used by NAT)
[[Image:T582-small.png|link=:Category:Router_TG582N|Got to Main TG582N Page]]
 
This is how to configure a technicolorTechnicolor gateway with two subnets on its
local network such that one gets translated and the other does
not. This configuration is not recommended, far better to use a real
on an address level rather than on an interface.
 
Firstly, you need to put a public address on the ethernetEthernet interface.
Supposing you have been assigned 192.0.2.0/24 as your public network,
 
to NAT things on its "Internet" interface. There is no way to undo
this as such, and preserve the ability to NAT the non-routeable
addresses. The workaround is to add some strange ''transparent'' NAT rules that
rules:
actually do nothing:
 
{Administrator}=>:nat mapadd intf=Internet type=nat outside_addr=192.0.2.2 inside_addr=192.0.2.2
 
Now the host at 192.0.2.2 won't have its address translated. Or rather
it will, but it will get translated to exactly the same thingaddress. A rule like
this needs to be added for each of the public addresses that have been
assigned. Thankfully these days only small blocks are obtainable.
of any help for security.
 
== Changing the outside address used by NAT ==
 
By default NAT will use the PPP assigned IPv4 address as the outside
address. It might be preferred to use one of the public IP addresses
as the outside address instead, this can be achieved by entering
 
:nat mapadd intf=Internet type=napt outside_addr=192.0.2.42
 
If you want to get clever, it's possible to add an ''access_list''
parameter to restrict the mapping to specified inside addresses,
so you could NAT some inside address blocks to one outside address, and
others to a different outside address.
 
==Other pages regarding this router:==
editor
471

edits