I wanted to know if this is a valid scenario and if it is possible to implement.
There is a remote
site A. and a Data center
site B. Both A and B have a edge router which runs an IPSec tunnel. An Access Point(Linux machine) in Site A supports setting up a GRE tunnel endpoint. And at Data center also has a GRE tunnel endpoint (on another Linux Machine). Is it possible to setup a GRE tunnel between Access Point and Linux Machine in Data center, such that packet first gets GRE encapsulated at access point and then gets encrypted using IPsec on the edge router at site A. Then gets decrypted at site B edge router and reaches GRE endpoint B.
Basically, I want to get DHCP for clients connected to my access point via the GRE tunnel from the DHCP server running in Data center. In between this GRE encapsulated DHCP also need to be encrypted with IPSEC.