Author Topic: two interfaces on my dedicated paintball2 server  (Read 1695 times)

dvuillet

  • PGP
  • Posts: 1
two interfaces on my dedicated paintball2 server
« on: January 07, 2013, 04:57:46 AM »
Hi

I have two interfaces on my ubuntu 12.04 LTS
dedicated paintball2 server
eth0 : 172.30.0.1
eth1: 192.168.0.1
But I can not start the server on a single interface. The parameter"+set ip 192.168.0.1" dont work and the server no longer appears on any network.
Without parameter "+set ip 192.168.0.1" the server appears on the two networks.
What should I do to the server only on 192.168.0.1 ?

Thanks

D.VUILLET

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: two interfaces on my dedicated paintball2 server
« Reply #1 on: January 07, 2013, 05:50:10 PM »
I'm not really sure on this one - I've never had to deal with this situation.  How do other games handle it?  Are you trying to do a LAN server or Internet server?

SuperMAn

  • Committee Member
  • Autococker
  • Posts: 902
Re: two interfaces on my dedicated paintball2 server
« Reply #2 on: January 12, 2013, 04:26:53 PM »
You could always make a custom firewall rule to block outgoing paintball traffic on the 172 interface.

Toxiic

  • Autococker
  • Posts: 748
Re: two interfaces on my dedicated paintball2 server
« Reply #3 on: January 15, 2013, 07:11:01 PM »
Or you could go to your modem page, each company provides this info which is usually on the modem/router(if you know what I'm talking about I don't know if it's called this but for me it's name is default gateway: https://192.168.x.xx) and create a rule from there

Justinph5

  • Autococker
  • Posts: 1159
Re: two interfaces on my dedicated paintball2 server
« Reply #4 on: January 16, 2013, 10:00:11 PM »
I was just wondering about this too on my new vps, I have 4 ip's for it.

On mumble, there's a setting for "Only respond from this ip:" so I can have one ip for mumble. I just don't know of a way to have paintball only connect with 1 ip.

*The only thing that I thought of, but don't know if it's possible to do, is to have a specific linux user only able to use 1 ip, but I don't know linux well enough to know if I can bind an ip to only one user. Any thoughts?

SuperMAn

  • Committee Member
  • Autococker
  • Posts: 902
Re: two interfaces on my dedicated paintball2 server
« Reply #5 on: January 17, 2013, 08:58:08 AM »
Does it really matter if your DP server can be accessed from all 4 IP addresses?  DP will "use" the interface at the top of the binding order.  It will still be accessible from the other IPs, but they won't be be broadcast out.  

If it really matters to you just do what I mentioned above.  Create firewall rules using iptables to deny incoming/outgoing traffic on UDP port 27910 (or whatever port you decide to use) for the interfaces you don't want used.
« Last Edit: January 17, 2013, 09:31:14 AM by SuperMAn »