-
Notifications
You must be signed in to change notification settings - Fork 3
Using an interface alias
Anthony M edited this page Jan 3, 2016
·
1 revision
finto can serve credentials to clients by binding to an interface alias. While this does require finto be run as root (as it will listen on port 80), it is quick and simple to setup.
First, create and confirm your alias:
$ ifconfig lo:0 169.254.169.254 up # on Linux
$ ifconfig lo:0
lo:0: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 169.254.169.254 netmask 255.255.0.0
loop txqueuelen 0 (Local Loopback)
$ ping -c1 -t1 169.254.169.254 >/dev/null && echo success
success
Or, on OSX:
$ ifconfig lo0 alias 169.254.169.254 # on OSX
$ ifconfig lo0
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
options=3<RXCSUM,TXCSUM>
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
nd6 options=1<PERFORMNUD>
$ ping -c1 -t1 169.254.169.254 >/dev/null && echo success
success
Then run finto:
$ sudo finto -port 80 -config /home/demo/.fintorc