Skip to content

[BUG] Firewall system not working on VyOS 1.5 and 1.4 #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
pcfriek1987 opened this issue Apr 16, 2025 · 1 comment
Open

[BUG] Firewall system not working on VyOS 1.5 and 1.4 #23

pcfriek1987 opened this issue Apr 16, 2025 · 1 comment
Assignees
Labels
bug Something isn't working patch needed Issue that needs a patch (PR or commit) to resolve or improve version compatibility issue related to VyOS versions (compatibility with CLI syntax)

Comments

@pcfriek1987
Copy link

As discussed creating a separate bug for the Firewall part on Vyos 1.5

@Jarnster Jarnster added bug Something isn't working patch needed Issue that needs a patch (PR or commit) to resolve or improve labels Apr 16, 2025
@Jarnster Jarnster self-assigned this Apr 16, 2025
@Jarnster Jarnster added the version compatibility issue related to VyOS versions (compatibility with CLI syntax) label Apr 17, 2025
@Jarnster Jarnster changed the title [BUG] Firewall overview not working on Vyos 1.5 [BUG] Firewall (rule creation, overview) not working on VyOS 1.5-circinus Apr 18, 2025
@Jarnster Jarnster changed the title [BUG] Firewall (rule creation, overview) not working on VyOS 1.5-circinus [BUG] Firewall (rule creation, overview) not working on VyOS 1.5 and 1.4 (only overview working) Apr 20, 2025
@Jarnster Jarnster changed the title [BUG] Firewall (rule creation, overview) not working on VyOS 1.5 and 1.4 (only overview working) [BUG] Firewall system not working on VyOS 1.5 and 1.4 May 23, 2025
@Jarnster
Copy link
Member

Jarnster commented May 23, 2025

Dev Console error about failing to cache the firewall system configuration. But, It's offcourse a backend related bug.

API Response: When firewall is empty under the path:

1684-e6f5208653b89c81.js:1 ❌ Failed to cache important data: config:firewall Error: API error (500): {"success":false,"error":"Error communicating with VyOS router: Unexpected error: HTTP Error 400: Configuration under specified path is empty\n","data":null,"traceback":"Traceback (most recent call last):\n File "/app/client.py", line 501, in execute_request\n result = await make_api_request(\n ^^^^^^^^^^^^^^^^^^^^^^^\n ...<3 lines>...\n )\n ^\n File "/app/utils.py", line 166, in make_api_request\n raise VyOSAPIError(\n ...<3 lines>...\n )\nutils.VyOSAPIError: HTTP Error 400: Configuration under specified path is empty\n\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/app/main.py", line 370, in api_config\n result = await method()\n ^^^^^^^^^^^^^^\n File "/app/client.py", line 70, in call\n return await self.client.execute_request(self.endpoint, self.op, self.path, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/app/client.py", line 524, in execute_request\n raise VyOSAPIError(f"Unexpected error: {str(e)}")\nclient.VyOSAPIError: Unexpected error: HTTP Error 400: Configuration under specified path is empty\n\n"}
at a (8045-ec8fe9e242da0d88.js:1:4662)
at async 8045-ec8fe9e242da0d88.js:1:1739
at async Promise.all (:3000/index 1)
at async 8045-ec8fe9e242da0d88.js:1:1952

**When actually setting a value in the firewall configuration section, don't forget to empty out the cache (backend and frontend) at "http://VYMANAGER_INSTANCE_IP:3000/dashboard/cache"

API response: When setting up the firewall configuration section

{"success":true,"data":{"bridge":{"name":{"a":{"rule":{"10":{}}}}}},"error":null}

Creating new rules in the firewall system fails
For simple rules, they also don't show up in the overview.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working patch needed Issue that needs a patch (PR or commit) to resolve or improve version compatibility issue related to VyOS versions (compatibility with CLI syntax)
Projects
None yet
Development

No branches or pull requests

2 participants