This ansible roles help to Route VPN using ansoble roles.
Working:
- Install iptables-persistent
- Then it configures port-forwarding
- Gets the iptable rules
- If the rule is absent then it sets it up
To use this role, open up a terminal and type
ansible-playbook mark1.yml -K to run it.
As you see in the proof there are 2 diffrent IP(Internet Protocol) addresses in the case, and 2 different speed before and after the VPN(Virtual Private Network) gets connected.
**This example serves to automate a time taking task.