PortMapper | remap TCP or UDP traffic

 by   dfct C Version: 0.0.1 License: GPL-3.0

kandi X-RAY | PortMapper Summary

kandi X-RAY | PortMapper Summary

PortMapper is a C library. PortMapper has no bugs, it has no vulnerabilities, it has a Strong Copyleft License and it has low support. You can download it from GitHub.

Intercept and remap TCP or UDP traffic over ports of your choosing. The binary was compiled with Visual Studio 2013, so you’ll need the [Visual C++ 2013 redistributables] installed to run them as is. Of course, you can also compile source.cpp with the compiler of your choice as well. I wrote this as I couldn’t reach some key ports to use SMB and a few other services due to ISP port filtering. I remapped traffic from ports 137, 138, 139, and 500 over ports that weren’t filtered and did the same in reverse with Endpoint Mapping on sever side. You can read a little bit more on this at Big thanks to the WinDivert project for making this possible! Their awesome library does all the heavy lifting :).
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              PortMapper has a low active ecosystem.
              It has 4 star(s) with 1 fork(s). There are 3 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              PortMapper has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of PortMapper is 0.0.1

            kandi-Quality Quality

              PortMapper has 0 bugs and 0 code smells.

            kandi-Security Security

              PortMapper has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              PortMapper code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              PortMapper is licensed under the GPL-3.0 License. This license is Strong Copyleft.
              Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.

            kandi-Reuse Reuse

              PortMapper releases are available to install and integrate.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of PortMapper
            Get all kandi verified functions for this library.

            PortMapper Key Features

            No Key Features are available at this moment for PortMapper.

            PortMapper Examples and Code Snippets

            No Code Snippets are available at this moment for PortMapper.

            Community Discussions

            QUESTION

            Spring Boot, authorization_code, IdentityServer4 code_verifier
            Asked 2022-Feb-09 at 10:17

            ANSWER

            Answered 2022-Feb-09 at 10:17

            I finally resolved this issue. But still not satisfied with the methodology. Yet, it works gracefully. What I expected from OAuth2AuthorizationRequestResolver that the request to get the jwt token gets created internally and I should be unaware of the random string generated as code_challenge(to implement PKCE).

            I still request to share if somebody has a working example of authenticating and getting token by just providing required confs without me implementing and overriding OAuth2AuthorizationRequestResolver. So, here i go

            To implement OAuth2AuthorizationRequestResolver please follow https://developer.okta.com/blog/2020/01/23/pkce-oauth2-spring-boot

            then in method addPkceParameters

            Source https://stackoverflow.com/questions/69832052

            QUESTION

            C# - Port Mapping with .Net Core 5.0
            Asked 2021-Aug-20 at 04:15
            Expected Outcome

            I'm attempting to make an ASP.NET Core 5.0 application using Kestrel, and I would like to auto port forward the server's port.

            Package

            I'm currently using the OpenNat.Core package. I have also tried the regular OpenNat and the same issue arises.

            Issue

            When port forwarding, the program says it has mapped everything correctly and the map even shows when listing all mapped ports on my router. Yet, when I attempt to view its status via CanYouSeeMe.org it returns a timed out error, and I am unable to access the server outside the network.

            What I've Tried
            1. I thought that the port mapping might have been opening after the server started, so I manually opened the port and then restarted the Kestrel server.
            2. I made sure that my router supported UPnP
              • I also have a Synology NAS that I port forward from, and it works just fine.
            3. I had a friend use ZenMap to check the port.
              • The port shows that it's filtered but not open (and no service was specified).
            Code ...

            ANSWER

            Answered 2021-Aug-20 at 04:15

            Nevermind my firewall was blocking the application. I was able to dynamically add a firewall rule to fix the issue.

            Source https://stackoverflow.com/questions/68843127

            QUESTION

            How to run an Ubuntu NFS V4 kernel server in an Ubuntu docker instance without port mapper?
            Asked 2020-Jun-25 at 14:09

            I need to operate a NFS server in docker in pure V4 mode, i.e. without portmapper port 111. (Reason: NFS server in Docker in WSL2 in Windows.)

            I found instructions how to operate the Ubuntu default kernel NFS server without port 111 being open:

            From https://peteris.rocks/blog/nfs4-single-port/

            ...

            ANSWER

            Answered 2020-Jun-25 at 14:03

            Solution:

            A) Disable check for rpcbind in init script

            Source https://stackoverflow.com/questions/62576679

            QUESTION

            Is a non-block socket always writable after it finishes its connection in python?
            Asked 2020-May-28 at 13:20

            I want to build a port map tool in python from scratch. Basically it is a TCP proxy that transits all the traffic between the client and the objective service or application.

            Specifically, For every connection I create two sockets who are responsible to communicate to the client and objective service respectively. To implement IO-multiplexing feature, I use module selectors to monitor the EVENT_READ and EVENT_WRITE event on these two sockets. However I find that the sockets are always writable so that the main loop doesn't block at all. Is it normal? My code is as follows:

            ...

            ANSWER

            Answered 2020-May-28 at 13:12

            A socket is normally writable until the system buffer is full. That is the reason why many simple select multiplexed system only considere the read part and assume that they will be able to write or accept the possibility of being blocked if they are not.

            If you want to be super safe and ensure that you will be able to write, you should ignore EVENT_WRITE unless you are ready to write something. But to prevent your code to exhaust the local memory buffer, the relay should stop reading (also ignore EVENT_READ) if the other channel cannot write.

            Source https://stackoverflow.com/questions/62065384

            QUESTION

            Parameter 0 of constructor 'java.lang.String' that could not be found
            Asked 2020-May-19 at 06:53

            My project developed by Grails 4, actually I am upgrading from Grails 2 to Grails 4. Can you suggest me a solution how can I solve it? Thanks

            Error:

            ...

            ANSWER

            Answered 2020-May-19 at 06:53

            From the docs:

            19.3 The BeanBuilder DSL Explained Using Constructor Arguments

            Constructor arguments can be defined using parameters to each bean-defining method. Put them after the first argument (the Class):

            Source https://stackoverflow.com/questions/61884012

            QUESTION

            Troubleshooting mount.nfs: Connection timed out for Centos 7 machines
            Asked 2020-Apr-21 at 13:33

            Can somebody help me troubleshoot setting up NFS share between two Centos 7 machines?

            I have configured the firewall and the server is working fine, I can mount the shared folder from the different (third) Centos 7 machine.

            However, on this other client machine, let's call it 111.111.111.111 I cannot mount:

            ...

            ANSWER

            Answered 2020-Apr-21 at 13:33

            Here's the best workbook I've found for troubleshooting NFS connections: https://docs.oracle.com/cd/E23824_01/html/821-1454/rfsadmin-215.html

            Follow those instructions slowly and carefully and they should turn up the problem. That doc is a good example of a step-by-step troubleshooting where you check all the connectivity prerequisites before checking the actual service you're trying to test.

            Here's some additional info that may help:

            • Your network sniff output is simple - the server isn't responding to you on the NFS TCP port. I hope the server's IP isn't really 255.255.255.255, since that's a broadcast address and is unlikely to work reliably.

            • You may have dropped all the firewalls, but the NFS server has its own permissions control, in the /etc/exports file according to the HowToForge link that you were following. You need to specify ALL the clients, not just a single IP address. You can also use a network range that includes all the clients. "man 5 exports" should tell you more about how to edit this file. Please DON'T put in "*" to match all IP addresses as suggested in the HowToForge link, that is generally a bad idea.

            • portmapper might be using the TCP wrappers permissions files - /etc/hosts.deny and /etc/hosts.allow - see "man 5 hosts_access" for the format of these files. look in the syslog files for the IP address of the client to see if there are any messages about that client.

            • Even though you think you turned the firewall off, run "iptables -vL" to see if there are any rules you overlooked and whether they have any hits.

            • If you have custom MTU settings on any of the machines (for example, on storage-specific LANs people often set up jumbo packets) make sure that there are no mismatches. This is unlikely to happen on a home network.

            • Your sniff shows the client is attempting to connect via TCP to the nfs port 2048, it's possible the client is configured for NFSv4 and the server is configured for NFSv3 or lower. You might see this with the rpcinfo command, since it shows the versions of NFS supported by the server.

            Source https://stackoverflow.com/questions/61146785

            QUESTION

            Spring Security: How to set a custom PortMapper?
            Asked 2020-Jan-23 at 14:13

            My application listens to both HTTP and HTTPS ports. HTTP channel is available only for several clients, all other must be redirected to the secure channel (HTTPS) when trying to access the insecure one.

            The problem is the HTTPS port for the redirection, for good reasons I'm starting the connector by myself, based on the application properties. The configuration is unknown to the default port-mapping implementation PortMapperImpl, so it returns always 443 or 8443 ignoring the actual ports the application is listening on.

            So far I have find this; it works, but it looks really ugly:

            ...

            ANSWER

            Answered 2020-Jan-23 at 14:13

            The servlet API also allows setting the port mapper using the portMapper() method.

            In this case you could use the following configuration

            Source https://stackoverflow.com/questions/59874547

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install PortMapper

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/dfct/PortMapper.git

          • CLI

            gh repo clone dfct/PortMapper

          • sshUrl

            git@github.com:dfct/PortMapper.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link