It is also supposed to be possible to give your samba server serveral aliases, with the alias paramater. netbios aliases = gateway Then, when someone logs on, you can capture the netbios name requested with a predefined variable %L. Read about in man smb.conf. Look for VARIABLES. Joel