Community discussions

MikroTik App
 
edon
just joined
Topic Author
Posts: 23
Joined: Sun Mar 20, 2011 10:51 pm

firewall

Sat Apr 02, 2011 1:59 am

Hi everybody.

I have a network setup like this:

I have a network of 192.168.1.1/24 for all users in my office.
i have few public ip addresses that are assigned to particular server.
example my sip server has an ip address ie. 12.12.12.111 (which is a windows server)
how can I put a firewall in mikrotik that only certain public ip addresses are allowed to connect to my sip server (all local > 192.168.1.1/24) and a couple of out of country ip addresses) all other attempts to connect to my sip server should be blocked ( at least on ports 5060)
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: firewall

Sat Apr 02, 2011 2:04 am

Add firewall rules that filter traffic in the 'forward' chain (traffic through the router), based on destination and source IP addresses, and protocols and ports. Below an example.
/ip firewall filter
add chain=forward dst-address=12.12.12.111 action=jump jump-target=SIP-server comment="all traffic to SIP server is processed in the SIP-server custom chain"
add chain=SIP-server src-address=1.1.1.1 action=accept comment="allow all traffic from 1.1.1.1"
add chain=SIP-server src-address=2.2.2.2 protocol=udp dst-port=5060 action="allow udp/5060 from 2.2.2.2"
add chain=SIP-server action=drop comment="drop all other access to SIP server"
 
edon
just joined
Topic Author
Posts: 23
Joined: Sun Mar 20, 2011 10:51 pm

Re: firewall

Sat Apr 02, 2011 3:53 am

thank you :)

Who is online

Users browsing this forum: No registered users and 30 guests