Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

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

Closed
matthewh86 opened this issue Aug 19, 2018 · 1 comment

Comments

@matthewh86
Copy link
Contributor

ip="192.168.1.150
maxplayers="24"

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
  • 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:
      - linuxgsm_css_vol:/home/lgsm
    restart: unless-stopped

networks:
  enp1s0f0_vlan:
    driver: macvlan
    driver_opts:
      parent: enp1s0f0
    ipam:
      config:
        - subnet: 192.168.1.0/24

volumes:
  linuxgsm_css_vol:
    driver_opts:
      type: none
      device: /srv/quickload/docker-volumes/linuxgsm/css-server
      o: bind
@matthewh86
Copy link
Contributor Author

matthewh86 commented Aug 21, 2018

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.

borzaka added a commit to borzaka/LinuxGSM-Docs that referenced this issue Apr 7, 2023
I was looking for fixes, but no one mentioned this. So I'am adding it to the docs.
Originally I found it here: GameServerManagers/LinuxGSM-Docker#4
dgibbs64 pushed a commit to GameServerManagers/LinuxGSM-Docs that referenced this issue Apr 7, 2023
I was looking for fixes, but no one mentioned this. So I'am adding it to the docs.
Originally I found it here: GameServerManagers/LinuxGSM-Docker#4
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant