Community discussions

MikroTik App
 
makekiewicz
just joined
Topic Author
Posts: 14
Joined: Thu Feb 15, 2018 11:35 am

ipsec one-way traffic

Wed Mar 06, 2024 1:06 pm

I set the ipsec tunnel on the default settings of mikrotik version 6.49.10 and it works properly.
But I would like it to work only in one direction and I added:
/ip firewall filter
add action=drop chain=forward dst-address-list=dst src-address-list=src
but the rule blocks traffic in both directions.
How to block one-way traffic?
 
TheCat12
Member Candidate
Member Candidate
Posts: 178
Joined: Fri Dec 31, 2021 9:13 pm

Re: ipsec one-way traffic

Wed Mar 06, 2024 3:58 pm

In dependence of what traffic you will be blocking - inbound or outbound, you can use ipsec-policy matcher in,ipsec or respectively out,ipsec in a drop rule:
/ip firewall filter
add action=drop chain=forward ipsec-policy=*,ipsec
where * is in or out

Who is online

Users browsing this forum: Bing [Bot], TenaciousD, voytecky and 30 guests