Policy route packets sourced from localhost
Hi,
My setup is as follows
Internet A----CentOS PPTP Server===NAT/Internal Network=====InternetB
I can establish a PPTP tunnel to the CentOS PPTP Server just fine.
Once tunnel is established I want all traffic to be forced through my
Internal Network and then back out on the Internet through another router.
I'm thinking of doing the above as follows.
On PPTP Server, have default gateway pointing to my internel network.
To establish the PPTP connection, I need to set a policy route such that
packets sourced from the PPTP server used to establish PPTP connection (UDP port 1723) are routed back on InternetA. Since default GW points to my internal network, all other traffic is forced through the internel network.
I know this can be done with PBR on a Cisco router.
How do I achieve this in Linux?
Essentially, on the PPTP server I need to implement a policy that
marks locally sources UDP src port packets 1723 and policy routes them
back to InternetA.
thanks,
|