Enable VPN usage only for specific applications [closed] - c++

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I have a VPN application which is written in C++ for Windows 7+ and uses OpenVPN as well as RAS for establishing connections and I need to allow only for some apps to be able to use vpn connection and others to use user's default connection/network (I also don't know what apps it will be, users need to configure it). So far I haven't found any hints on how to implement it, is it possible to do it at all on Windows? And if yes, how?

I'm not sure that you can do that. VPNs basically work like a secure TCP/IP router (or switch). They provide an IP-address on each side that is a "gateway" to the network on the other side. (Appropriate route commands must have been issued on both sides, which the VPN client software can do for its local machine.) I don't think that there is any way to restrict which applications can use a particular IP-address . . . but of course I could be mistaken. (MS-Windows does have many tricks up its sleeve.)
I think that you should take this to superuser.com or some other StackExchange site which is targeted towards system administration of a Windows environment, because your question is actually quite specific to that, and not to VPNs in general.

Related

Is there a "serverless" solution for a (gaming) server? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I am working on a game atm and started to research about an alternative solution to dedicated servers.
The reason I am doing this is that I have little administration knowledge and would prefer to spend the time in programming instead of learning that. Especially when it comes to security to the dedicated machine itself and not my application that runs on it.
So my question is whether there is a possibility of a server where you can just run your code written e.g. in golang and have less or easier administration and a much better or the same security?
It would be perfect if I just get an endpoint connection to my application when a client wants to communicate without the care of security concerns outside of my application.
I have looked on some services from aws and google (not tested for now) but with the whole range everything is confusing to me.
Information about the type of game:
realtime multiplayer
for now I use TCP with Flatbuffer to communicate (TCP should be also fine here)
server is written in golang and for the client for testing I use libgdx (java), but would probably change to something else when I solved other questions
with server I mean where the logic is run server-side and the communication between the client to the database is made through the server
If you really want to avoid maintaining a server for your software, consider dockerizing your server software, and run it on AWS Fargate. It will not necessarily be cheaper than a dedicated server, but you will not have to maintain any infrastructure or OS.
Short anwser, no.
Serverless architectures doesn't work well with TCP, because of various reasons. The First one to be that FaaS is made to be short lived - opening a TCP connection with sockets would create a long live for the function, thus making its costs go high.
Second, BaaS usually has a delay of some microseconds, and also doesn't support TCP connections.
But you see, with BaaS you can develop a turn-based multiplayer game, because the delay isn't that critical on these types of applications.

Why my school network blocking my login to aws ec2 with putty [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I tried to log in to my aws ec2 instance with putty. Every time I connect to my school wifi it keeps saying connection Time Out. But when I try to connect with my phone network it's working fine again.
I already set the security inbound rules to everyone, only myIP. but still not working.
Here is the error... "Network error!!!Connection Time Out"
Your School wifi must be operating behind a firewall and traffic is filtered. For example - in most companies only few sites are allowed to browse and rest all are blocked by firewall rules.
Port 22 is blocked in most of public networks. You can try connecting putty after connecting from your mobile network.

Connection without TCP/IP over Internet [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
Today I am thinking about connect two computer without tcp/ip. Actually i am searching: connection without ip; if i manage to connect without ip, these network is untraceable.
My full question is :
It is possible to connect two computer without tcp/ip over internet.
May these scenario impossible for the ISP. I don't know.
If possible, It can be competitor of Internet.
From the first line of Wikipedia on Internet:
The Internet is a global system of interconnected computer networks that use the standard Internet protocol suite (TCP/IP) to link several billion devices worldwide.
The internet is built upon the IP framework. You can't "not use" IP through the internet. That's like to say I want to use the post system without addresses. Without the IP framework, there is no way to identify devices from each other or have any standard format to route packets anywhere at all. This is not to say that it is the only way to establish networked communications, it's just the most popular and most used way.
Regarding the first part of your question: It is possible to connect two computer without tcp/ip? There are plenty of ways this is done e.g. Bluetooth, RS-232, proprietary RF communications and so forth.
Also, towards competitor of Internet is that really such a good idea? For once we have one system that is universally compatible with all devices around the globe (almost!). I don't think the rest of the world would be keen on a brand new system unless it is much much much better (in which it'll probably be implemented into the Internet Protocol Suite anyway).

How to test internet application at local computer (windows-7)? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
This application sends data periodically to a server. What I need to do is setup a testing environment on the local developing machine so that I can check the correct packets are being sent in each situation. I thought a good approach would be a server VM set up on the local computer which would receive the packets and respond just like the real thing, but the problem is how do I route the packets of an application running on windows to a VM machine. I don't want to modify my application code. I just want to have windows pass on the packets it receives from the application to the VM or otherwise another application that will do the testing. Is this possible? If not, please let me know about any other solution(s) to this problem.
If you're running a decent VM you should be able to give it an IP address visible from the host, and configure it so that you can run web servers on it, ssh to it, etc.
Look at the networking features of your VM. Or find a tutorial on how to do this, such as this one for VirtualBox:
http://www.tolaris.com/2009/03/05/using-host-networking-and-nat-with-virtualbox/
Well it's some kind of a hack but you can use ARP Poisoning (man in the middle attack) to sniff packets. There is a tool named Cain & Abel which can do this for you. I've used this tool to sniff packets between two non-pc machines. Use at your own risk and if your anti-virus tool alerts, know that the tool has no virus but what it does is detected as one.
Edit: Please note that my approach doesn't require a VM server.

Why do some web services require the client to send its IP address? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
As an example, see the reference documentation for one of paypal's APIs:
http://www.paypalobjects.com/en_US/ebook/PP_NVPAPI_DeveloperGuide/Appx_fieldreference.html#2824913
The question is, why do they need it? Doesn't the server get it as part of the HTTP protocol?
UPDATE: Just realized the example I gave wasn't so good. I'm talking about instances where the client is talking directly to the web service. I'll close the question.
I'm not sure about PayPal specifically, but one use case for a service requiring the client's IP is that the server needs to do fraud detection (too many requests coming from the same end user), but the source IP in the packet comes from an aggregator of end user actual IPs. Perhaps the aggregator has NATted clients behind it (possibly mobile devices, who knows). The server will want the aggregator to send it the IP of its clients.
There may be other cases; this is the only one I know of.
They want to be able to identify the end user, usually to protect both you and them from abuse - both to detect fraud attempts (too many requests coming from the same IP) and to be able to find the culprit after the fact (in case of criminal activity, ISPs in many countries are required to reveal user information based on an IP to the investigating authorities).
Of course you could do the logging yourself, but considering the general state of security awareness on the internet, I understand that they're not trusting you to do it well enough.