Community discussions

MikroTik App
 
tcppho3nix
just joined
Topic Author
Posts: 1
Joined: Fri Jan 27, 2017 2:33 pm

Wan IP block

Fri Jan 27, 2017 2:39 pm

guys im really new and i have a simple question i think :)) i need to configure mikrotik that has wan ip hided (not accasable to other ips) and then i need to do a rule that will give my home wan ip accses to routers wan ip.. i just need to know how to the the firewall rule..

input (wan ip) action drop to all
then how to do the rule to accept 1 or more specific wan addreses to acces the router?

thanks :)
 
User avatar
lbachero
newbie
Posts: 38
Joined: Wed Oct 08, 2014 4:39 pm
Location: Dublin
Contact:

Re: Wan IP block

Sat Jan 28, 2017 9:04 pm

You can do it like this:
/ip firewall filter add chain=input protocol=tcp dst-port=21-23,80,8291,8728,8729 src-address-list=!trust action=drop
So, put your IP in trust list:
 /ip firewall address-list add list=trust address=X.X.X.X comment="Home Public IP"
;)
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12570
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Wan IP block

Sun Jan 29, 2017 6:39 am

You can do it like this:
/ip firewall filter add chain=input protocol=tcp dst-port=21-23,80,8291,8728,8729 src-address-list=!trust action=drop
So, put your IP in trust list:
 /ip firewall address-list add list=trust address=X.X.X.X comment="Home Public IP"
;)
TCP: 20,21,22,23,53,80,443,1723,8291,8728,8729
UDP: 53,67,68,69,123,161,5678,20561
and add connection-state=new on rule......

Who is online

Users browsing this forum: vomus and 51 guests