Giter VIP home page Giter VIP logo

Comments (11)

davlxd avatar davlxd commented on May 29, 2024

from nepackettunnelvpndemo.

MuhammadAliYousaf avatar MuhammadAliYousaf commented on May 29, 2024

I hosted an image on tomcat installed on my machine. When I access that image on my device I did not get any breakpoint event in self.packetFlow.readPackets handler. Whereas if I try to access any other resource I did get that.
Please let me know you if you need any other info.
Thanks.

from nepackettunnelvpndemo.

davlxd avatar davlxd commented on May 29, 2024

from nepackettunnelvpndemo.

MuhammadAliYousaf avatar MuhammadAliYousaf commented on May 29, 2024

I have included local host IP like this, do I need to configure something else as well?
tunnelNetworkSettings.iPv4Settings?.includedRoutes = [NEIPv4Route.init(destinationAddress: "172.16.15.36", subnetMask: "255.0.0.0")]

from nepackettunnelvpndemo.

davlxd avatar davlxd commented on May 29, 2024

from nepackettunnelvpndemo.

MuhammadAliYousaf avatar MuhammadAliYousaf commented on May 29, 2024

It not working with the above code.
But now I fixed it by adding local IP address in the IPV4 settings as well. Following is the code.

tunnelNetworkSettings.iPv4Settings = NEIPv4Settings(addresses: [conf["ip"] as! String, "172.16.15.36"], subnetMasks: [conf["subnet"] as! String])

Whereas 172.16.15.36 is the ip address of my machine.

from nepackettunnelvpndemo.

MuhammadAliYousaf avatar MuhammadAliYousaf commented on May 29, 2024

I fixed it. Actually, we need to add local machine ip address in the ipv4 settings as well. Like in the following code where my machine ip is 172.16.15.36.
tunnelNetworkSettings.ipv4Settings = NEIPv4Settings(addresses: [conf["ip"] as! String, "172.16.15.36"], subnetMasks: [conf["subnet"] as! String])
And of course, we need to include that ip in the includedRoutes as well.

from nepackettunnelvpndemo.

davlxd avatar davlxd commented on May 29, 2024

from nepackettunnelvpndemo.

tuannv19 avatar tuannv19 commented on May 29, 2024

I fixed it. Actually, we need to add local machine ip address in the ipv4 settings as well. Like in the following code where my machine ip is 172.16.15.36.
tunnelNetworkSettings.ipv4Settings = NEIPv4Settings(addresses: [conf["ip"] as! String, "172.16.15.36"], subnetMasks: [conf["subnet"] as! String])
And of course, we need to include that ip in the includedRoutes as well.

@alisolutions 172.16.15.36 is ip of current device (not server)?

from nepackettunnelvpndemo.

MuhammadAliYousaf avatar MuhammadAliYousaf commented on May 29, 2024

I fixed it. Actually, we need to add local machine ip address in the ipv4 settings as well. Like in the following code where my machine ip is 172.16.15.36.
tunnelNetworkSettings.ipv4Settings = NEIPv4Settings(addresses: [conf["ip"] as! String, "172.16.15.36"], subnetMasks: [conf["subnet"] as! String])
And of course, we need to include that ip in the includedRoutes as well.

@alisolutions 172.16.15.36 is ip of current device (not server)?

@tuannv19 Yes, this is IP of current device.

from nepackettunnelvpndemo.

tuannv19 avatar tuannv19 commented on May 29, 2024

@alisolutions thanks you.

from nepackettunnelvpndemo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.