Skip to content
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

Tool does not work with port ranges #35

Open
Lemocin opened this issue Mar 2, 2020 · 1 comment
Open

Tool does not work with port ranges #35

Lemocin opened this issue Mar 2, 2020 · 1 comment

Comments

@Lemocin
Copy link

Lemocin commented Mar 2, 2020

I need to forward multiple ports, so i configured a port-forwarding range. If i try to get it with your tool, i get this error:

  File "<input>", line 1, in <module>
  File "C:\Users\kimm8\PycharmProjects\arithmetische\venv\lib\site-packages\fritzconnection\core\fritzconnection.py", line 209, in call_action
    return self.soaper.execute(service, action_name, arguments)
  File "C:\Users\kimm8\PycharmProjects\arithmetische\venv\lib\site-packages\fritzconnection\core\soaper.py", line 170, in execute
    return handle_response(response)
  File "C:\Users\kimm8\PycharmProjects\arithmetische\venv\lib\site-packages\fritzconnection\core\soaper.py", line 154, in handle_response
    return self.parse_response(response, service, action_name)
  File "C:\Users\kimm8\PycharmProjects\arithmetische\venv\lib\site-packages\fritzconnection\core\soaper.py", line 197, in parse_response
    value = self.conversion_table[data_type](value)
ValueError: invalid literal for int() with base 10: '27005-27015'
@Lemocin Lemocin changed the title call_action("WANPPPConnection","GetGenericPortMappingEntry",i) does not work with port ranges Tool does not work with port ranges Mar 2, 2020
@kbr
Copy link
Owner

kbr commented Mar 4, 2020

Thanks for reporting, I was able to reproduce this. In case that a port-range is configured, the box returns a formatted string instead of a single ui2 value as described by the related SCDP informations provided by the router. This is something that should get clarified with the vendor before further actions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants