The final step in the security posture is to add a ruleset to the Valtix Gateway. Each ruleset will have a set of policies that defines your security posture. When traffic is inspected, Valtix Gateway will go from top to bottom of the ruleset to identify if traffic matches the policy rule, hence the order of the policy matters. Security profiles can be attached to policy rules for deep packet inspection. Below is a diagram of how each security component is related in a ruleset.
Reverse HTTPS proxy¶
Ingress HTTP proxy requires the gateway to be in Ingress security mode. During the gateway creation, ensure that you have selected Ingress. This will allow Valtix to act as a reverse proxy and send traffic to the application. User will need to change the dns entry for the original application to point to Valtix endpoint. For this example, we'll simply use the ip address of the application.
Step 1: Create a Decryption Profile
- Click on Manage -> Profiles -> Decryption.
- Click on Create button.
- Enter in a Profile Name. (eg. ingress-decryption)
- Select Generate (Self-signed) for the "Method" field.
- Click on the Generate button to generate a new certificate.
- A new window will pop up to ask you information used to generate the new certificate. Click Generate
- Enter a name for the newly generated certificate. (eg. demo-certificate)
Step 1: Create an Address Object
- Click on Manage -> Security Profiles -> Addresses
- Click on Create Address and select Reverse Proxy Target
- Add a name to the address object. (eg. webserver)
- For Type, select IP/FQDN
- Input the private ip address of your spoke-vm
Step 2: Create Service object
- Click on Manage -> Security Profiles -> Services
- Click on Create
- Select Reverse Proxy as service type.
- Give the service object a name. (eg. http-ingress-tutorial)
- In the Service table, enter the following:
- Decryption Profile: ingress-decryption (This is the decryption profile created in above step.)
- Dst Port: 443
- Protocol: TCP
- Target Backend Port: 80
- Protocol: TCP
- Address: webserver (This is the address object created in the above step.)
Step 3: Create HTTP policy rule in ruleset
- Click on Manage -> Security Policies -> Rules
- Find the ruleset name that's associated with the Ingress Gateway
- Click the rule set name
- There is already a rule here to allow the health check traffic from the load balancer on port 65534(this port number was specified during the gateway creation)
- Click Create to create a new rule
- A new rule editor opens in the slide over panel on the right
- Add a name to the rule (e.g. any-ingress-http)
- In th Type dropdown select Reverse Proxy
- In the Service dropdown menu, select http-ingress-tutorial(or the name provided to the http service created)
- In Source dropdown select any
- Destination would be hard coded to Gateway. Our gateway will be the landing zone for your application.
- In the Action select Allow Log. This allows the Gateway to accept the traffic and log the flows that can be checked in the Investigate section of the Valtix Dashboard
- Leave all the profiles to empty, the rules will be enhanced to use these profiles in the later part of the tutorial
- Click Add
- You can create more rules if required. In this section of the tutorial you will not add any more rules.
- Click Save to save all the rules. Click Yes for confirmation.
- It takes a few seconds to save the policy. Once the rule set is saved, the Gateway instances pull the ruleset from the controller during the regular message exchange process
Step 4: Verify Traffic
- Click on Manage -> Gateways -> Gateway.
- The gateway page will show the Gateway Endpoint for the ingress gateway that was created. Copy the fqdn/ip.
- Open a browser and paste the FQDN/IP. This should take you to the landing page of your original application.
- Go to Investigate -> Flow Analytics -> Traffic Summary -> Logs. You should see a log entry in there.