GameServerManagers / LinuxGSM-Docker

The Official LinuxGSM Docker image (experimental)
https://linuxgsm.com
MIT License
169 stars 72 forks source link

Source server LAN discovery doesn't work over macvlan network configuration #4

Closed matthewh86 closed 6 years ago

matthewh86 commented 6 years ago

fn_parms(){ parms="-game cstrike -strictportbind -ip 0.0.0.0 -port ${port} +sv_setsteamaccount ${gslt} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers} +sv_lan 1 -nohltv" }

- linuxgsm:latest is a locally created docker image with jq dependency included
  - #2
- Using the following docker-compose.yml

version: '2'

services: linuxgsm-css: image: linuxgsm:latest container_name: linuxgsm-css networks: enp1s0f0_vlan: ipv4_address: 192.168.1.150 volumes:

networks: enp1s0f0_vlan: driver: macvlan driver_opts: parent: enp1s0f0 ipam: config:

volumes: linuxgsm_css_vol: driver_opts: type: none device: /srv/quickload/docker-volumes/linuxgsm/css-server o: bind

matthewh86 commented 6 years ago

Turns out this was Windows networking interfering! Had to disable one of my network adapters on the client (in this case it was a VirtualBox adapter) to get it working.