Displaying 4 results from an estimated 4 matches for "macfile".
2013 Jul 11
2
Force a static HWaddr to tinc interface
...figuration variable we could use to avoid HWaddr
changing?
Currently, I have added a short snippet into tinc-up script that persists
the (once given) HWaddr to a file and tries to reset it before starting
dhclient. This works, but I feel it a bit hacky solution...
-- tinc-up --
#!/bin/sh
set -e
MACFILE="/etc/tinc/mynet/mac"
if [ -e $MACFILE ]; then
MAC=`cat $MACFILE`
ifconfig $INTERFACE hw ether $MAC
fi
dhclient $INTERFACE &
MAC=`ip link show mynet | awk '/ether/ {print $2}'`
echo $MAC > $MACFILE
-- tinc-up ends --
Best regards,
Ville
-------------- seuraava osa --...
2017 Jan 16
2
tinc MAC address
hey there,
Tinc will generate a new MAC address every time the daemon restarts.
In my setup, in switch mode, I give IP addresses using DHCP to the
different tinc vpn clients.
Some of these boxes are 'pets' and request a particular ip address which is
specified in their dhclient.conf.
My trouble is that since the MAC is regenerated every time the daemon is
restarted, I am forced to have
2017 Jan 16
0
tinc MAC address
...ress yourself in the tinc-up script. On Linux for
example:
#!/bin/sh
ip link set $IFACE address 12:34:56:78:9a:bc
# other commands here
If you want to automate it so it automatically stores the
kernel-generated address the first time and reuses it later, you can do
something like this:
#!/bin/sh
macfile=/etc/tinc/$NETNAME/address
if [ -f $macfile ]; then
ip link set $IFACE address `cat $macfile`
else
cat /sys/class/net/$IFACE/address >$macfile
fi
# other commands here
--
Met vriendelijke groet / with kind regards,
Guus Sliepen <guus at tinc-vpn.org>
-------------- next part -----...
2004 Jan 07
1
Can't connect from Windows
...ent passwd, getent group works fine.
I can assign permissions to domain users like "chown domain+user file"
However when I try to connect from the PDC to the linux box with a domain
user account, it won't let me in.
The name of the PDC is "w2ksrv1", and linux box is "macfiles". The domain
is "mac".
I was able to add a local user "testuser" and add it through smbpasswd, and
authenticate. And view shares, and go into the "tmp" share.
Conf file:
UW PICO(tm) 4.6
File: /usr/local/samba/lib/smb.conf
[global]
workgroup = MAC...