It is currently 23.03.2017 06:17


All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: [Howto] C&C 3 Tiberium Wars via bridged OpenVPN connection
PostPosted: 02.01.2013 19:31 
DES
DES

Joined: 02.01.2013 18:49
Posts: 2
There are a lot of tips 'n tricks to get C&C3 Tiberium Wars working, but unfortunately none of them worked for my setup.
http://wiki.openvpn.eu/index.php/Erster_Tunnel was a very good starting point and worked perfect until the third client on lan1 tried to join. We were able to see each other in the lobby, but when it came to start the game, client1 was kicked or lost synchronization.

Spending this afternoon on finding a solution, we finally got it working and I want to share this with you - maybe there's the one or other who appreciates this.

The magic to get this working was to bridge the network connections on all PCs.

Prerequisites:
Quote:
- 3 PCs in two networks: 2 in lan1, 1 PC in lan 2
- same subnet in the two lans (192.168.178.x)
- OS: all Windows 7
- network devices on all machines are bridged !!!
- IPs on all PCs are configured manually (make sure you configure the bridge)
- Port 1194 is forwarded on the routers, firewall rules on the PCs set accordingly


If you use different ip ranges in lan1 and lan2, e.g. 172.16.0.x and 192.168.178.x, you only have to bridge the connection on the server-side. But then you want to add the IP of the vpn-adapter in the options.ini of C&C3 on lan2.
The exact path is: C:\Users\User\AppData\Roaming\Command & Conquer 3 Tiberium Wars\Profiles\Username\. Here you add "IPAddress = "IP-of-VPN-Adapter".
This applies as well if you use on the server-side additional network adapters - like vmware-adapters.


Server config:
Quote:
port 1194
proto udp
mode server
dev tap0

ca "C:\\Program Files (x86)\\OpenVPN\\easy-rsa\\keys\\ca.crt"
cert "C:\\Program Files (x86)\\OpenVPN\\easy-rsa\\keys\\server.crt"
key "C:\\Program Files (x86)\\OpenVPN\\easy-rsa\\keys\\server.key" # This file should be kept secret
dh "C:\\Program Files (x86)\\OpenVPN\\easy-rsa\\keys\\dh1024.pem"

tls-server
server-bridge 192.168.178.101 255.255.255.0 192.168.178.220 192.168.178.225
client-to-client

keepalive 10 120
persist-key
persist-tun
status openvpn-status.log
verb 3
comp-lzo


Client1 config
Quote:
tls-client
pull
remote xyz.dyndns.org 1194
proto udp
dev tap
ca "C:\\Program Files (x86)\\OpenVPN\\easy-rsa\\keys\\ca.crt"
cert "C:\\Program Files (x86)\\OpenVPN\\easy-rsa\\keys\\client1.crt"
key "C:\\Program Files (x86)\\OpenVPN\\easy-rsa\\keys\\client1.key"
ns-cert-type server
verb 3
mute 50
comp-lzo



Client 2 config

Quote:
tls-client
pull
remote xyz.dyndns.org 1194
proto udp
dev tap
ca "C:\\Program Files (x86)\\OpenVPN\\easy-rsa\\keys\\ca.crt"
cert "C:\\Program Files (x86)\\OpenVPN\\easy-rsa\\keys\\client2.crt"
key "C:\\Program Files (x86)\\OpenVPN\\easy-rsa\\keys\\client2.key"
ns-cert-type server
verb 3
mute 50
comp-lzo


Attachments:
network_small.jpg
network_small.jpg [ 35.36 KiB | Viewed 4726 times ]
Top
Offline Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ]  Moderator: Moderators

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net