Modern Warfare 3 and Virtual box all ip's the same?

Discussions related to using VirtualBox on Linux hosts.
Post Reply
wild1
Posts: 2
Joined: 29. Apr 2014, 22:16

Modern Warfare 3 and Virtual box all ip's the same?

Post by wild1 »

Hi everyone! I'm having a bit of a strange problem i run a few modern warfare 3 servers off my vm but the players ip's all come through the same... Now because my vm is on my dedicated server bridged mode doesn't work so i cant just change it to that. Only NAT is working with ports forwarded atm. Anyways the problem is that mw3 bans by IP and seeing all the ips come through the same it's banning and blocking everyone in the server. Is there any way to get the real ip's of the players through instead of just the same 1 ip?

Im hoping there's a guru out there with some big ol brains and is willing to help :D


Many Thanks,
Anthony 8)
noteirak
Site Moderator
Posts: 5229
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Modern Warfare 3 and Virtual box all ip's the same?

Post by noteirak »

Two ways :
- Turn your host into a router with NAT, this way you'll see the proper IPs, and you don't need a dedicated IP for the VM. This involves using Host-Only mode, enabling IP routing, and iptables Masquerade
- Ask for an extra/virtual/failover IP (term differs depending of the provider) and make sure you can assign a virtual MAC to it. This way you can link the VM MAC to the IP (or set the VM MAC to the MAC given by the provider)
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
wild1
Posts: 2
Joined: 29. Apr 2014, 22:16

Re: Modern Warfare 3 and Virtual box all ip's the same?

Post by wild1 »

Ok so im a bit further forward... i asked my provider but they would not give me another ip :( Soooo iv went for option 1 with the iptables and host only stuff. I did this...

iptables -A FORWARD -o eth0 -i vboxnet0 -s 192.168.56.0/24 -m conntrack --ctstate NEW -j ACCEPT
iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
iptables -A POSTROUTING -t nat -j MASQUERADE

and then this:

yum install dnsmasq (was already installed)
/etc/init.d/dnsmasq start

The problem i got when i tried to start it was this:

Starting dnsmasq:
dnsmasq: failed to create listening socket: Address already in use
[FAILED]

:(

Iv looked but tbh iv got no idea on how to fix this...

I also did:

added this: nameserver 192.168.1.3
to: cat /etc/resolv.conf

and finally i set these settings to /etc/sysctl.conf

net.ipv4.ip_forward = 1
net.ipv4.conf.all.proxy_arp = 1

and then did: sysctl -p

I believe the problem is with dnsmsq not starting because now the vm in host only mode and is showing a connection but not connected to the internet.

Anyone got any ideas? ^^

Many Thanks!
Anthony
noteirak
Site Moderator
Posts: 5229
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Modern Warfare 3 and Virtual box all ip's the same?

Post by noteirak »

The problem is that the commands you are using are not right, but I am afraid this is out of scope of this forum.
You don't need dnsmasq - I didn't talk about DNS in my reply - and it won't be related to your issue here.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Post Reply