IPsec and firewall issues
Posted: Fri Sep 15, 2017 12:11 pm
Hello,
at the moment I'am struggeling with firewall-rules on ipsec traffic. I already read that there are some issues with filtering IPsec traffic, but I hope there is a way to solve my problem.
I have a RB3011 with has several IPsec tunnels to our customer routers (non mikrotik). Via IPsec policy the customers LAN is tunneled to our LAN which works well. As these tunnels are only for support purposes, we want to secure our LAN and block any access from customer-LAN to our LAN.
Now I tried the following:
our LAN: 192.168.77.0/24
customers LAN: 10.0.0.0/24
I added this filter rule for testing:
As supposed there is no connection between 192.168.77.x and 10.0.0.x possible, but the tunnel is still active and is also rebuild if I kill the active IPsec connection. I think this is because this firewall rule will work in both directions (correct me if I'am wrong), regardless of the dst- and scr-addresses. So is there any way to allow 192.168.77.x -> 10.0.0.x and deny 10.0.0.x -> 192.168.77.x at the same time? Maybe I can refine the filter rule and deal with connection states? I'am a bit helpless at this point.
Can someone help me out?
Thanks for help.
Andreas
at the moment I'am struggeling with firewall-rules on ipsec traffic. I already read that there are some issues with filtering IPsec traffic, but I hope there is a way to solve my problem.
I have a RB3011 with has several IPsec tunnels to our customer routers (non mikrotik). Via IPsec policy the customers LAN is tunneled to our LAN which works well. As these tunnels are only for support purposes, we want to secure our LAN and block any access from customer-LAN to our LAN.
Now I tried the following:
our LAN: 192.168.77.0/24
customers LAN: 10.0.0.0/24
I added this filter rule for testing:
Code: Select all
add action=drop chain=forward disabled=no dst-address=192.168.77.0/24 src-address=10.0.0.0/24
Can someone help me out?
Thanks for help.
Andreas