I've got a router deployed and I'm using mangle rules to mark traffic from the various attached subnets and then I'm using policy rules to route the traffic out 1 of 2 WAN connections. This is working as I'd like and I'm happy with that. I had to add policy based routes so that the subnets could talk to each other but after working through that everything is working locally. My problem is that I have VPN users coming in via PPtP on another subnet and they can't see anything. I've tried setting a policy for that traffic as well but to no avail. Any ideas how to make this work?
Mangle rules and routing rules follow.
VPN subnet is 192.168.17.0/24 with a local address of 192.168.17.1 and various remote IPs assigned as users login.
[admin@rtr2] > ip firewall mangle print
Flags: X - disabled, I - invalid, D - dynamic
0 chain=prerouting action=mark-routing new-routing-mark=PC-subnet
passthrough=yes src-address=172.16.101.0/24
1 chain=prerouting action=mark-routing new-routing-mark=server-subnet
passthrough=yes src-address=192.168.16.0/24
2 chain=prerouting action=mark-routing new-routing-mark=apc-subnet
passthrough=yes src-address=192.168.0.0/24
3 chain=prerouting action=mark-routing new-routing-mark=vpn passthrough=yes
src-address=192.168.17.0/24
[admin@rtr2] > ip route print detail
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
0 A S dst-address=0.0.0.0/0 gateway=x.x.x.166 interface=ether7
gateway-state=reachable distance=1 scope=30 target-scope=10
routing-mark=PC-subnet
1 A S dst-address=0.0.0.0/0 gateway=x.x.x.170 interface=ether6
gateway-state=reachable distance=1 scope=30 target-scope=10
2 A S dst-address=0.0.0.0/0 gateway=x.x.x.166 interface=ether7
gateway-state=reachable distance=1 scope=30 target-scope=10
routing-mark=server-subnet
3 ADC dst-address=10.10.10.1/32 pref-src=10.10.10.21 interface=pptp-out1
distance=0 scope=10
4 A S dst-address=x.x.x.2/32 gateway=10.10.10.1 interface=pptp-out1
gateway-state=reachable distance=1 scope=30 target-scope=10
5 ADC dst-address=x.x.x.164/30 pref-src=x.x.x.165 interface=ether7
distance=0 scope=10
6 ADC dst-address=x.x.x.168/30 pref-src=x.x.x.169 interface=ether6
distance=0 scope=10
7 A S dst-address=172.16.100.0/24 gateway=172.16.100.1 interface=ether2
gateway-state=reachable distance=1 scope=30 target-scope=10
routing-mark=server-subnet
8 ADC dst-address=172.16.100.0/24 pref-src=172.16.100.1 interface=ether2
distance=0 scope=10
9 A S dst-address=172.16.101.0/24 gateway=172.16.101.1 interface=ether3
gateway-state=reachable distance=1 scope=30 target-scope=10
routing-mark=server-subnet
10 ADC dst-address=172.16.101.0/24 pref-src=172.16.101.1 interface=ether3
distance=0 scope=10
11 ADC dst-address=172.16.102.0/24 pref-src=172.16.102.1 interface=ether4
distance=0 scope=10
12 A S dst-address=172.16.102.0/24 gateway=172.16.102.1 interface=ether4
gateway-state=reachable distance=1 scope=30 target-scope=10
routing-mark=PC-subnet
13 A S dst-address=172.16.102.0/24 gateway=172.16.102.1 interface=ether4
gateway-state=reachable distance=1 scope=30 target-scope=10
routing-mark=server-subnet
14 A S dst-address=192.168.0.0/24 gateway=10.10.10.1 interface=pptp-out1
gateway-state=reachable distance=1 scope=30 target-scope=10
routing-mark=server-subnet
15 A S dst-address=192.168.0.0/24 gateway=10.10.10.1 interface=pptp-out1
gateway-state=reachable distance=1 scope=30 target-scope=10
16 A S dst-address=192.168.1.2/32 gateway=192.168.16.5 interface=ether1
gateway-state=reachable distance=1 scope=30 target-scope=10
routing-mark=PC-subnet
17 A S dst-address=192.168.16.0/24 gateway=192.168.16.1 interface=ether1
gateway-state=reachable distance=1 scope=30 target-scope=10
routing-mark=PC-subnet
18 A S dst-address=192.168.16.0/24 gateway=192.168.16.1 interface=ether1
gateway-state=reachable distance=1 scope=30 target-scope=10
routing-mark=apc-subnet
19 ADC dst-address=192.168.16.0/24 pref-src=192.168.16.1 interface=ether1
distance=0 scope=10
20 ADC dst-address=192.168.17.210/32 pref-src=192.168.17.1
interface=<pptp-wdavis> distance=0 scope=10
[admin@rtr2] >
Any help would be greatly appreciated.
Thank you,
Craig Russell