Wireguard Protocol not work in windows/Linux but work on mobile - vpn

I create a VPN server on my VPS with Wireguard protocol but i have problem.
I can connect VPN in mobile devices but VPN not work in Linux or windows PC.
Note: I changed the ports but it did not work.
Note 2: When I active wireguard VPN in PC (Linux or Windows) I can send ICMP package but I do not have access to the Internet.

Related

VM can't ping host, and host can't ping VM or see web server

I have a Debian VM on my Windows 10 machine, in VMWare Player 16. The VM is running a web server. Both are using my router for DHCP, and the router lists the VM as a DHCP client.
The PC is on 192.168.0.20. The VM is 192.168.0.50.
The VM's networking is set to 'bridged'. It can access the internet, and it can ping various devices on my nework. But it cannot ping the PC that is hosting the VM - it shows Destination Host Unreachable.
The PC cannot ping the VM (also destination host unreachable) and cannot see the VM's web server.
The router can ping the VM, and the PC.
My phone, on the same network via WiFi, can ping the PC and also the VM.
My phone can also access the web server of the VM.
The firewall is off in both the VM and the PC.
It seems like the host PC is not allowing traffic that it sent (even though it is sending it by proxy for the VM) to reach the VM. Traffic from other sources on the network, i.e. not the PC or the VM, can get to the VM without any problem. It is as if the PC sees data coming in and says "That traffic came from me, but I have nothing listening for it so I will just ignore it."
Any ideas on how I can fix this?

Connect to SSH in same network

I have server with vpn network, raspberry pi and my pc.
For some internet provider reasons, I can't access remotly my raspberrypi, opening ports don't work correctly.
So I decided to connect my PC to same network with vpn. I can access ssh of my raspberrypi from server, but can't from my pc.
Is it possible to access this device with my PC, if I am connected to this vpn network on my server too?
Adding option client-to-client in server.conf in openvpn make work as expected.
Adding option client-to-client in server.conf in openvpn make work as
expected.
Does it worked ?
On my side , client-to-client is not enough, and no more when I add topology subnet too.

Redirect to router when i load a website on my directadmin server network

I have a server in my office that connected to my ADSL router,
And I using this modem to my internet connection
My Server is HP DL380 With CentOs 7 + Directadmin
The modem is D-link DSL-2750U
When I loading my DirectAdmin websites, I redirected to the modem
what's wrong with this and why this has happened?
All Sites are good in the internet and no problem
I can see my websites only when I using a VPN
Thank you, guys!
i show it in image
I understand you are trying to connect to a server located on your network. Since this works with a VPN this would almost certainly be a routing problem.
A few 'traceroutes' from your CentOS server to your wifi device would tell you where the traffic is failing. Here are some common issues that cause your routing problem.
1) CentOs server contains a subnet that overlaps the wifi network or vice versa. This doesn't work since the CentOS server believes the device on the wifi is on the same subnet when it isn't.
2) Cent OS server contains a default route other than to the D-link router (unlikely)
If you can't ping the CentOs server from your wifi device and these are not the issues please provide a network diagram that includes IP addresses and subnets or the wifi network, Server network, and VPN network.

Using Charles proxy with shared connection with no proxy server configuration

I want to use Charles proxy on all traffic that comes from iOS devices connected to my shared network, without configuring any proxy server settings on devices.
I have created a shared ethernet connection over Wi-Fi on a Mac machine.
I have connected the devices I want to monitor to the shared Wi-Fi.
Charles proxy works fine, but I can only see requests from the Mac, and not from the devices connected to the shared Wi-Fi. If I add manual proxy config on devices, it works fine.
Is there a way to redirect all traffic that goes through the shared Wi-Fi to the proxy server?

VM guest not accessible from Host (with running VPN Client)

I have configured my guest VM as described here: https://askubuntu.com/a/293817/503589
Unfortunately I cannot connect to the guest via IP or "localhost", if the Cisco AnyConnect VPN Client is connected on the host (Windows 7).
It works as long as I am not connected with the Cisco VPN AnyConnect Client on the host.
My requirements are the following:
the host should be able to access the guest with it's static IP, whether I am connected to host VPN or not.
I am working remote (WLAN) or in the office (LAN). In the office it's working, because I have no Cisco VPN Client connected.
guest can access the internet
I can move my laptop from network to network (e.g. from home to office to coffeeshop) without worrying about securing or reconfiguring the vm
What I also already tried and what didn't work:
NAT
Bridged
The Cisco VPN client is likely configured for full tunneling. Meaning all traffic is routed through the VPN interface. This is why you are unable to reach other hosts on your LAN.
You might be able to request a split-tunneled profile from your Network team, but it may go against company policy.

Resources