Router - TG582N - Subnet Routing
Use this guide if you have a subnet of addresses that you want to use internally and you want your own server managing the firewall, and the router just passing everything through.
This assumes you have a have 3 sets of addresses:
- A /29 or /28 subnet that you want to route to your firewall server, lets say 126.96.36.199/28
- A /30 subnet used for the router and firewall server, lets call them 188.8.131.52/30, the router has 184.108.40.206 and your firewall has 220.127.116.11
- A single IP address for the router ADSL link (allocated by PPP)
First set the router up as normal on the GUI, selecting ADSL expert and on subnet type the independent router IP. This should deal with your /30 and single IP now working. I personally set the firewall to disabled and turned off all services including the wifi.
Telnet/ssh to your router
You need to do 2 things, add routing for the subnet to your firewall and add a mapping so that incoming connections work. (obviously substitute your own addresses here)
ip rtadd dst=18.104.22.168/28 gateway=22.214.171.124 static=enabled nat mapadd intf=Internet type=nat outside_addr=126.96.36.199/28 inside_addr=188.8.131.52/28