Help me to understand.
So, i have CHR on Amazon.
Make it so that
1. L2TP always connected from a specific IP
2. Certain machines left the network only with certain IP 2/3
Issued 3 ip and each is bound to a static ip from the amazon pool
Private — StatIP
192.168.0.10 — 220.127.116.11
192.168.0.11 — 18.104.22.168
192.168.0.12 — 22.214.171.124
In route list add certains
What am I doing. Created three entries in Route List with RouteMark and ping.
What is the result? On 126.96.36.199 I see pings from 188.8.131.52, that is, going out of 192.168.0.10
ping 184.108.40.206 routing-table = route_out_192.168.0.12
I am doing something wrong? Why don't the rules work (rules Routing Mark)?
The next question is how to make L2TP always exit 220.127.116.11? For the test, I did the following, for the test.
chain=prerouting action=mark-routing new-routing-mark=route_out_192.168.0.12 passthrough=no protocol=udp dst-port=500,1701,4500
I see traffic in the statistics window, but the rule still doesn't work.
chain=prerouting action=route passthrough=no route-dst=192.168.0.12 protocol=udp dst-port=500,1701,4500
Nothing works, always exits through 192.168.0.10 (StatIP 18.104.22.168)
##Can you give a link to what to read?
P.S. sorry for my English