Page 1 of 1

NOOB configuration question

Posted: Tue Feb 08, 2011 9:32 pm
by scurrie
Greetings all--
I am a new user to the RB750 and ROS (v4.11). I am trying to set up a simple configuration and have it mostly working, but I am having difficulty with port forwarding. No matter what I try, I can't seem to get it working. The desired configuration is:

Static WAN: 192.168.1.253/24
WAN Gateway: 192.168.1.1
WAN DNS: 8.8.8.8
LAN Address: 10.0.0.1/8
No DHCP server

Port forwarding as follows:
Ports 20001-20005 TCP/UDP to 10.0.0.2
Port 40000 UDP to 10.0.0.2
Port 40001 TCP to 10.0.0.2
Port 443 TCP to 10.0.0.2
Port 22 TCP to 10.0.0.2

Any suggestions/examples would be appreciated!

-Scott

Re: NOOB configuration question

Posted: Tue Feb 08, 2011 11:52 pm
by unbkbl
From the terminal:

ip firewall nat add chain=dstnat action=netmap to-addresses=10.0.0.1 to-ports=40000 protocol=udp dst-address=192.168.1.253 dst-port=40000

ip firewall nat add chain=dstnat action=netmap to-addresses=10.0.0.1 to-ports=40001 protocol=tcp dst-address=192.168.1.253 dst-port=40001

ip firewall nat add chain=dstnat action=netmap to-addresses=10.0.0.1 to-ports=40001 protocol=tcp dst-address=192.168.1.253 dst-port=40001

ip firewall nat add chain=dstnat action=netmap to-addresses=10.0.0.1 to-ports=20001-20005 protocol=tcp dst-address=192.168.1.253 dst-port=20001-20005

ip firewall nat add chain=dstnat action=netmap to-addresses=10.0.0.1 to-ports=20001-20005 protocol=udp dst-address=192.168.1.253 dst-port=20001-20005


hope this helps

Re: NOOB configuration question

Posted: Wed Feb 09, 2011 6:45 am
by scurrie
It did indeed, following your examples, the router is now happily forwarding away.

Thanks,
Scott