I've set up a basic firewall as per Steve Discher's book but am struggling to get it to do a simple port redirection from an external source (in this case, UDP 5060 for SIP traffic)
Current firewall config is below. I've left in a couple of the additional rules that I've put in there to get it working. Namely, the first rule under /ip firewall filter and the first rule under /ip firewall nat.
Am I on the right lines with these rules? I want to get this working and then restrict the rule so that only our SIP provider's IP addresses are allowed to initiate a connection.
Thanks,
Steve
mar/19/2014 13:17:21 by RouterOS 6.10
# software id = HNU4-J2ZJ
#
/ip firewall address-list
add address=192.168.0.0/24 list=MyLAN
/ip firewall filter
add chain=forward dst-port=5060 in-interface="BT Infinity" protocol=udp src-port=""
add action=drop chain=input connection-state=invalid
add action=drop chain=forward connection-state=invalid
add chain=input src-address-list=MyLAN
add chain=input connection-state=established
add action=drop chain=input
add chain=forward connection-state=new src-address-list=MyLAN
add chain=forward connection-state=related
add chain=forward connection-state=established
add action=drop chain=forward
/ip firewall nat
add action=dst-nat chain=dstnat dst-port=5060 in-interface="BT Infinity" protocol=udp \
to-addresses=192.168.0.210
add action=masquerade chain=srcnat out-interface="BT Infinity"
/ip firewall service-port
set sip disabled=yes