If you are running LINUX on your gateway then you can use iptables.
below a example of my routing iptables rule.
external ip is 212.???.???.53 and port 22650 forwards to internal ip 192.168.0.2 and port 21
/sbin/iptables -A PREROUTING -t nat -p tcp -d 212.???.???.53 --dport 22650 -j DNAT --to 192.168.0.2:21
if you want to redirect every port use this
/sbin/iptables -A PREROUTING -t nat -p tcp -d 212.???.???.53 -j DNAT --to 192.168.0.2
|