Local subnets not visible after routing mark.
Posted: Wed Mar 09, 2016 8:11 pm
Hi,
We have two ISP and two local subnets. Both subnet use ISP1 without any problem and ISP2 with different distance for failover.
I tried to make one subnet use ISP1 and second subnet use ISP2. I made mangle rules and added the routes and everything works, but subnets don't see each other.
These are the mangle rules:
0 X chain=prerouting action=accept src-address=172.16.102.0/24 dst-address=172.16.103.0/24 log=no log-prefix=""
1 X chain=prerouting action=accept src-address=172.16.103.0/24 dst-address=172.16.102.0/24 log=no log-prefix=""
2 X chain=prerouting action=mark-routing new-routing-mark=ISP1 passthrough=no src-address=172.16.102.0/24 log=no log-prefix=""
3 X chain=prerouting action=mark-routing new-routing-mark=ISP2 passthrough=no src-address=172.16.103.0/24 log=no log-prefix=""
I added rules 0,1 after that but nothing changed. Still can't ping each other. What I'm missing?
Thanks in advance.
We have two ISP and two local subnets. Both subnet use ISP1 without any problem and ISP2 with different distance for failover.
I tried to make one subnet use ISP1 and second subnet use ISP2. I made mangle rules and added the routes and everything works, but subnets don't see each other.
These are the mangle rules:
0 X chain=prerouting action=accept src-address=172.16.102.0/24 dst-address=172.16.103.0/24 log=no log-prefix=""
1 X chain=prerouting action=accept src-address=172.16.103.0/24 dst-address=172.16.102.0/24 log=no log-prefix=""
2 X chain=prerouting action=mark-routing new-routing-mark=ISP1 passthrough=no src-address=172.16.102.0/24 log=no log-prefix=""
3 X chain=prerouting action=mark-routing new-routing-mark=ISP2 passthrough=no src-address=172.16.103.0/24 log=no log-prefix=""
I added rules 0,1 after that but nothing changed. Still can't ping each other. What I'm missing?
Thanks in advance.