VPS acting as VPN

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
McDougal
New to forums
New to forums
Posts: 3
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Sat Jan 04, 2014 3:29 pm

VPS acting as VPN

Post by McDougal »

I have this problem and if anyone knows how to fix this it would be very appreciated.

I have purchased an NFO unmanaged VPS server and I have used it to setup a private vpn server. I have the server setup and connected to the vpn. I have one problem that may or may not be fixable. Maybe someone can guide me in the right direction though. So there is a method on steam where if someone intializes a voice chat directed towards a user (in this case me) then they can sniff what they are connecting to through network ananlysis tools like wireshark and filter a specific type of packet to see what they are connecting to. This then gives the person their vicitms IP address (my address). I have had a friend test this on me and we have found out that while connected to this vpn when someone performs this method it shows in their network analysis tool 2 responses, one from the VPN server IP, and one from my actual IP address. My point being is that I need to get that real ip address from showing. I came to ask the community if there might be any openvpn server config based things that I could try or something that might be beneficial to do on the machine to stop this. Also note that my IP address changes to the VPN address when visiting "whatsmyip" type websites. Sorry for the long description, but I wanted to be as thorough as possible. Thanks
User avatar
Edge100x
Founder
Founder
Posts: 13156
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: VPS acting as VPN

Post by Edge100x »

I'm not terribly familiar with the configuration of OpenVPN and I hope that someone else will chime in. But, that sounds like it's something on the client side -- you might take a look at each of the configuration variables on your client and see whether any relate to this.
joshh20
This is my homepage
This is my homepage
Posts: 146
Joined: Sat Mar 02, 2013 1:35 pm

Re: VPS acting as VPN

Post by joshh20 »

I also have an OpenVPN server setup on an unmanaged VDS, I actually heard of someone doing this to one of my friends a few days ago, but I didn't think it would be possible to actually get the person's home IP since all traffic is typically handled through the server itself. What client are you using to connect to the VPN server?
User avatar
kraze
Former staff
Former staff
Posts: 4362
Joined: Fri Sep 17, 2010 9:06 am
Location: California

Re: VPS acting as VPN

Post by kraze »

post your server config here so we can take a look at it.
@Kraze^NFo> Juski has a very valid point
@Juski> Got my new signature, thanks!
@Kraze^NFo> Out of context!
@Juski> Doesn't matter!
@Juski> You said I had a valid point! You can't take it back now! It's out there!
McDougal
New to forums
New to forums
Posts: 3
Joined: Sat Jan 04, 2014 3:29 pm

Re: VPS acting as VPN

Post by McDougal »

I have switched to using a vpn client in my router. This has seemed fixed my real ip leaking through in wireshark, but I would preferably use the openvpn client on my computer. So here is my client .ovpn config.

client
dev tun
proto tcp
remote <ip here> 1194 #- your OPENVPN server ip and port
resolv-retry infinite
nobind
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
persist-key
persist-tun
ca ca.crt
auth-user-pass
comp-lzo
verb 3
User avatar
kraze
Former staff
Former staff
Posts: 4362
Joined: Fri Sep 17, 2010 9:06 am
Location: California

Re: VPS acting as VPN

Post by kraze »

The server config is what's important here since it will determine most of the settings.
@Kraze^NFo> Juski has a very valid point
@Juski> Got my new signature, thanks!
@Kraze^NFo> Out of context!
@Juski> Doesn't matter!
@Juski> You said I had a valid point! You can't take it back now! It's out there!
McDougal
New to forums
New to forums
Posts: 3
Joined: Sat Jan 04, 2014 3:29 pm

Re: VPS acting as VPN

Post by McDougal »

local <IP HERE> #- change it with your server ip address
port 1194
proto tcp
dev tun
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
ca /etc/openvpn/easy-rsa/2.0/keys/ca.crt
cert /etc/openvpn/easy-rsa/2.0/keys/server.crt
key /etc/openvpn/easy-rsa/2.0/keys/server.key
dh /etc/openvpn/easy-rsa/2.0/keys/dh1024.pem
plugin /usr/share/openvpn/plugin/lib/openvpn-auth-pam.so /etc/pam.d/login
client-cert-not-required
username-as-common-name
server 10.8.0.0 255.255.255.0
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 5 30
comp-lzo
persist-key
persist-tun
status server-tcp.log
verb 3
joshh20
This is my homepage
This is my homepage
Posts: 146
Joined: Sat Mar 02, 2013 1:35 pm

Re: VPS acting as VPN

Post by joshh20 »

Would you mind saying what OpenVPN client you are using?
Post Reply