Community discussions

MikroTik App
 
kinglive22
just joined
Topic Author
Posts: 1
Joined: Tue Apr 04, 2017 10:03 am

allow incoming and outgoing traffic on specific ports to certain ip's

Tue Apr 04, 2017 12:53 pm

hi Team,

could someone please assist me with the firewall rules to allow incoming and outgoing traffic to my ccr 1009 for specific ip addresses on specific port numbers? this is the requirement,

Allow incoming and outgoing on ports 9080/443/80/1812/1813 to the below addresses:
54.xx.xx.107 – TCP + UDP
54.xx.xx.64 – TCP + UDP
54.xx.XX.241 – TCP + UDP
52.xx.xx.51 – TCP + UDP
54.xx.xx.45 – TCP

thanks.
 
Plutone
just joined
Posts: 15
Joined: Mon Jun 06, 2016 11:48 am

Re: allow incoming and outgoing traffic on specific ports to certain ip's

Wed Apr 05, 2017 12:09 pm

/ip firewall address-list
add address=54.xx.xx.107 list=Allowed_IP_TCP
add address=54.xx.xx.64 list=Allowed_IP_TCP
add address=54.xx.xx.241 list=Allowed_IP_TCP
add address=54.xx.xx.51 list=Allowed_IP_TCP
add address=54.xx.xx.45 list=Allowed_IP_TCP

add address=54.xx.xx.107 list=Allowed_IP_UDP
add address=54.xx.xx.64 list=Allowed_IP_UDP
add address=54.xx.xx.241 list=Allowed_IP_UDP
add address=54.xx.xx.51 list=Allowed_IP_UDP


add action=accept chain=input dst-port=9080,443,80,1812,1813 protocol=tcp src-address-list=Allowed_IP_TCP
add action=accept chain=input dst-port=9080,443,80,1812,1813 protocol=udp src-address-list=Allowed_IP_UDP

add action=accept chain=output src-port=9080,443,80,1812,1813 protocol=tcp dst-address-list=Allowed_IP_TCP
add action=accept chain=output src-port=9080,443,80,1812,1813 protocol=udp dst-address-list=Allowed_IP_UDP

Who is online

Users browsing this forum: No registered users and 33 guests