Forward all Ports to One IP Address
Thomson TG585v7 & TG587n Routers


If you need help with telnet commands, see this first telnet.html

Objective
To forward all ports to one specified IP address on the LAN or DMZ network.
Useful for a web server or to fix a strict NAT's issue with a games console.
In this example I've chosen to forward ports to IP 192.168.1.50.
The PC or games machine needs to be placed on this static LAN IP.
If a different IP is required choose one from outside the DHCP pool.
With the default configuration this means using a IP in the range 192.168.1.1 to 192.168.1.63

This method removes all protection offered by the routers firewall.
Ensure you are satisfied with the security aspect.

Do not be tempted to forward a range of IP addresses, this will break the DHCP.
Also "unassign" any existing port forwarding rule before trying this.

If you have any issues then a factory reset will return the router to default settings.

Commands
Command Comments
nat tmpladd intf=Internet type=nat outside_addr=0.0.0.1 inside_addr=192.168.1.50 See note (1) below regarding "intf=Internet"
firewall rule add chain=forward_host_service index=1 name=AllPorts srcintf=wan dstip=192.168.1.50 state=enabled action=accept Open firewall to IP 192.168.1.50
firewall rule list Optional -- view the firewall rule
saveall


Now place the device (PC or Games machine) on a static LAN IP of 192.168.1.50
This is how the settings would look in a windows PC.


Don't forget you will need to allow the necessary ports through any software firewall / windows firewall on the target PC.


Undo Commands


First use the command firewall rule list

Note the firewall index number for the rule AllPorts. In this case the firewall index number is "1".

Also use the command nat tmpllist

Note the NAT index number for this port forward. In this case the NAT index number is 15


Commands Comments
firewall rule list Use to find the firewall index number -- see above
firewall rule delete chain=forward_host_service index=1 Use the index number found above.
nat tmpllist Use to find the NAT index number -- see above
nat tmpldelete index=15 Take care to use the correct index number.
saveall




Note (1) :
The "intf=Internet" part of the above commands may need to be changed depending on the routers firmware.
ie "intf=Internet" should be correct for standard firmware.
O2 supplied routers may need "intf=Internet" replacing with :-
For O2 supplied routers on a LLU connections replace with "intf=O2_ADSL2plus" or in some cases "intf=RoutedEthoA"
For O2 supplied routers on the Access service replace with "intf=O2_ADSL"
Hint - You can check which one to use for the WAN interface by looking at the results from the "dns server route list" command.
See the screen capture below, in this case it's "intf=O2_ADSL2plus".

 



Telnet Project for Thomson Routers

Telnet commands for a Thomson router

Multiple SSID  -- (TG587n only)


Web Access Control Schedule (TOD) -- (TG587n only)

Web content filter


Telnet scripting


Enable WDS on a TG585v7 / TG587n

Connect Two Thomson Routers Together

Basic DMZ on a Thomson Router


Advanced DMZ on a Thomson TG587n

Forward all ports to a specific LAN IP

IP QoS

Wake on LAN from Internet

Xbox and PS3 on a Thomson router

Remote Access to a Thomson Router


Home Page

footer
Copyright© NPR 2010 - 2012       Disclaimer