OpenVPN or how to configure it from the Windows 7
Posted: Mon Jan 10, 2011 10:41 pm
Hello, please help me in the problem. A week apart from this problem. Immediately apologize of my English.
I want to connect 4 PCs, all running Windows 7 (up to this point used Hamachi-2, but there, through some repeaters decreases the speed here advised OpenVPN).
Two PCs in my house are behind a router (there is a stat. external adresses PC 192.168.1.2, 192.168.1.3), 1 pc of another provider (at the other end of town) and 1 PC to the router from abroad)
To make it more detailed:
These PC need to connect (do not know what to call it because I know bad this apart, connected by a principle of Hamachi-2 (as esteemed peer-to-peer), in general for games is necessary. There is a game Red Alert 3, play on a local network with Hamachi-2, all they see each other in "chat games", but because of the low speed can not play, it becomes a turn-based game. To solve the problem decided to try OpenVPN. It seems the server picked, customers connected, can ping each other, but in the game did not see each other. First, using a config option dev tun - in the game did not see each other, now tried to dev tap - server sees all clients, but clients not see each other).
Here network diagram:
2 PC (192.168.1.2 - 3) <----> | router | (external static IP 89 .*.*.*) <------------> I
---------------------------------------------------------------------------------------------- N
---------------------------------------------------------------------------------------------- T
1 PC (192.168.16.115 internal static IP from ISP) <----------------------------> E
---------------------------------------------------------------------------------------------- R
---------------------------------------------------------------------------------------------- N
-------------------------------------------------- ------------------------------------------- E
1 PC (192.168.1.2 )<----> | router | (external static IP 83 .*.*.*) <----------------> T
Here's the server config:Here's the config of client:Help solve this problem. Thank you!
I want to connect 4 PCs, all running Windows 7 (up to this point used Hamachi-2, but there, through some repeaters decreases the speed here advised OpenVPN).
Two PCs in my house are behind a router (there is a stat. external adresses PC 192.168.1.2, 192.168.1.3), 1 pc of another provider (at the other end of town) and 1 PC to the router from abroad)
To make it more detailed:
These PC need to connect (do not know what to call it because I know bad this apart, connected by a principle of Hamachi-2 (as esteemed peer-to-peer), in general for games is necessary. There is a game Red Alert 3, play on a local network with Hamachi-2, all they see each other in "chat games", but because of the low speed can not play, it becomes a turn-based game. To solve the problem decided to try OpenVPN. It seems the server picked, customers connected, can ping each other, but in the game did not see each other. First, using a config option dev tun - in the game did not see each other, now tried to dev tap - server sees all clients, but clients not see each other).
Here network diagram:
2 PC (192.168.1.2 - 3) <----> | router | (external static IP 89 .*.*.*) <------------> I
---------------------------------------------------------------------------------------------- N
---------------------------------------------------------------------------------------------- T
1 PC (192.168.16.115 internal static IP from ISP) <----------------------------> E
---------------------------------------------------------------------------------------------- R
---------------------------------------------------------------------------------------------- N
-------------------------------------------------- ------------------------------------------- E
1 PC (192.168.1.2 )<----> | router | (external static IP 83 .*.*.*) <----------------> T
Here's the server config:
Code: Select all
port 1194
proto udp
dev tap
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
tls-auth ta.key 0
server 1.1.1.0 255.255.255.0
ifconfig-pool-persist ipp.txt
client-to-client
route 1.1.1.0 255.255.255.0
route 192.168.1.0 255.255.255.0
push "client-to-client"
keepalive 10 120
comp-lzo
max-clients 5
persist-key
persist-tun
status openvpn-status.log
verb 3
Code: Select all
client
dev tap
proto udp
remote 89 .*.*.* 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert black.crt
key black.key
ns-cert-type server
tls-auth ta.key 1
comp-lzo
verb 3