trailofbits / algo

Set up a personal VPN in the cloud
https://blog.trailofbits.com/2016/12/12/meet-algo-the-vpn-that-works/
GNU Affero General Public License v3.0
28.55k stars 2.31k forks source link

Iptables configured : vultr #14656

Open omaritto99 opened 9 months ago

omaritto99 commented 9 months ago

Describe the bug

i getting a bug at step 'Iptables configured' , im using Vulter

Full log

TASK [common : Iptables configured] ******************************************************************************************************************************************************************************
task path: /Users/omar/algo/roles/common/tasks/iptables.yml:2
The full traceback is:
Traceback (most recent call last):
  File "/Users/omar/algo/.env/lib/python3.9/site-packages/ansible/template/__init__.py", line 1001, in do_template
    res = myenv.concat(rf)
  File "/Users/omar/algo/.env/lib/python3.9/site-packages/ansible/template/native_helpers.py", line 83, in ansible_concat
    return ''.join([to_text(v) for v in nodes])
  File "/Users/omar/algo/.env/lib/python3.9/site-packages/ansible/template/native_helpers.py", line 83, in <listcomp>
    return ''.join([to_text(v) for v in nodes])
  File "<template>", line 42, in root
  File "/Users/omar/algo/.env/lib/python3.9/site-packages/ansible/template/__init__.py", line 295, in wrapper
    ret = func(*args, **kwargs)
  File "/Users/omar/algo/.env/lib/python3.9/site-packages/jinja2/filters.py", line 980, in do_int
    return int(value)
  File "/Users/omar/algo/.env/lib/python3.9/site-packages/jinja2/runtime.py", line 903, in _fail_with_undefined_error
    raise self._undefined_exception(self._undefined_message)
jinja2.exceptions.UndefinedError: 'wireguard_port_avoid' is undefined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/omar/algo/.env/lib/python3.9/site-packages/ansible/plugins/action/template.py", line 152, in run
    resultant = templar.do_template(template_data, preserve_trailing_newlines=True, escape_backslashes=False, overrides=overrides)
  File "/Users/omar/algo/.env/lib/python3.9/site-packages/ansible/template/__init__.py", line 1035, in do_template
    raise AnsibleUndefinedVariable(e, orig_exc=e)
ansible.errors.AnsibleUndefinedVariable: 'wireguard_port_avoid' is undefined. 'wireguard_port_avoid' is undefined
failed: [64.176.194.204] (item={'src': 'rules.v4.j2', 'dest': '/etc/iptables/rules.v4'}) => {
    "ansible_loop_var": "item",
    "changed": false,
    "item": {
        "dest": "/etc/iptables/rules.v4",
        "src": "rules.v4.j2"
    },
    "msg": "AnsibleUndefinedVariable: 'wireguard_port_avoid' is undefined. 'wireguard_port_avoid' is undefined"
}
Read vars_file 'config.cfg'
omaritto99 commented 9 months ago

i got the same error using DigitalOceon :

image