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

Add option to add a forwarding of a range of ports #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jorrit
Copy link
Contributor

@jorrit jorrit commented Jan 9, 2023

No description provided.

@rkr87
Copy link

rkr87 commented Feb 1, 2023

Need to amend as below;

        pflist.append(
        proto=snmp.IPProtocol[args.protocol],
        ext_port_start=args.external_port,
        ext_port_end=args.external_port + args.number_of_ports - 1,
        local_port_start=args.internal_port,
        local_port_end=args.internal_port + args.number_of_ports - 1,
        local_addr=args.internal_ip)

otherwise it will open 1 additional port for every request.

@jorrit
Copy link
Contributor Author

jorrit commented Feb 2, 2023

That off by one error again! Thanks @rkr87 !

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

Successfully merging this pull request may close these issues.

2 participants