You are not logged in.

#1 2016-10-11 21:31:04

leonixyz
Member
Registered: 2014-07-12
Posts: 62

[SOLVED] knockd fails at boot time due to eth0 not being configured

I'd like to have knockd up and running but I'm facing some issues due to my network interface not being fully configured.
Arch wiki: https://wiki.archlinux.org/index.php/Po … mon_helper
knockd wiki: http://www.zeroflux.org/projects/knock

$ sudo systemctl status knockd                          
* knockd.service - Port-Knocking Daemon
   Loaded: loaded (/usr/lib/systemd/system/knockd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2016-10-11 21:07:13 UTC; 53s ago
  Process: 211 ExecStart=/usr/bin/knockd (code=exited, status=1/FAILURE)
 Main PID: 211 (code=exited, status=1/FAILURE)

Oct 11 21:07:13 raspberry systemd[1]: Started Port-Knocking Daemon.
Oct 11 21:07:13 raspberry knockd[211]: could not get IP address for eth0
Oct 11 21:07:13 raspberry systemd[1]: knockd.service: Main process exited, code=exited, status=1/FAILURE
Oct 11 21:07:13 raspberry systemd[1]: knockd.service: Unit entered failed state.
Oct 11 21:07:13 raspberry systemd[1]: knockd.service: Failed with result 'exit-code'.

The unit file looks like this:

$ cat /usr/lib/systemd/system/knockd.service
[Unit]
Description=Port-Knocking Daemon
After=network.target

[Service]
ExecStart=/usr/bin/knockd 

[Install]
WantedBy=multi-user.target

According to freedesktop.org there should be a target to wait for the network being fully configured https://www.freedesktop.org/wiki/Softwa … orkTarget/

$ systemctl status systemd-networkd-wait-online
* systemd-networkd-wait-online.service - Wait for Network to be Configured
   Loaded: loaded (/usr/lib/systemd/system/systemd-networkd-wait-online.service; enabled; vendor preset: disabled)
   Active: inactive (dead)
     Docs: man:systemd-networkd-wait-online.service(8)

I tried editing knockd.service in the following way, with no results.

After=systemd-networkd-wait-online
Wants=systemd-networkd-wait-online

systemd-networkd seems aware of my network interface

$ cat /etc/systemd/network/eth0.network  
[Match]
Name=eth0

[Network]
DHCP=yes

and it is active

$ systemctl status systemd-networkd 
* systemd-networkd.service - Network Service
   Loaded: loaded (/usr/lib/systemd/system/systemd-networkd.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2016-10-11 21:17:17 UTC; 3min 27s ago
     Docs: man:systemd-networkd.service(8)
 Main PID: 208 (systemd-network)
   Status: "Processing requests..."
   CGroup: /system.slice/systemd-networkd.service
           `-208 /usr/lib/systemd/systemd-networkd

I have no idea what to try next...

thanks in advance

Last edited by leonixyz (2016-10-17 19:29:41)

Offline

#2 2016-10-12 08:59:52

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,302

Re: [SOLVED] knockd fails at boot time due to eth0 not being configured

It would be useful to see all the start sequence in the systemd journal, to see what starts after what.

Offline

#3 2016-10-15 16:44:41

leonixyz
Member
Registered: 2014-07-12
Posts: 62

Re: [SOLVED] knockd fails at boot time due to eth0 not being configured

# journalctl -b
-- Logs begin at Sun 2016-07-31 05:24:32 UTC, end at Sat 2016-10-15 16:41:55 UTC. --
Jul 31 05:24:33 raspberry systemd-journald[135]: Runtime journal (/run/log/journal/) is 3.0M, max 23.9M, 20.9M free.
Jul 31 05:24:33 raspberry systemd-journald[135]: System journal (/var/log/journal/) is 64.0M, max 355.8M, 291.8M free.
Jul 31 05:24:33 raspberry systemd-journald[135]: Time spent on flushing to /var is 332.364ms for 2 entries.
Jul 31 05:24:33 raspberry kernel: Booting Linux on physical CPU 0x0
Jul 31 05:24:33 raspberry kernel: Initializing cgroup subsys cpuset
Jul 31 05:24:33 raspberry kernel: Initializing cgroup subsys cpu
Jul 31 05:24:33 raspberry kernel: Initializing cgroup subsys cpuacct
Jul 31 05:24:33 raspberry kernel: Linux version 4.4.23-1-ARCH (builduser@leming) (gcc version 6.2.1 20160830 (GCC) ) #1 Fri Sep 30 19:02:48 MDT 2016
Jul 31 05:24:33 raspberry kernel: CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
Jul 31 05:24:33 raspberry kernel: CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Jul 31 05:24:33 raspberry kernel: Machine model: Raspberry Pi Model B Rev 2
Jul 31 05:24:33 raspberry kernel: cma: Reserved 8 MiB at 0x1e400000
Jul 31 05:24:33 raspberry kernel: Memory policy: Data cache writeback
Jul 31 05:24:33 raspberry kernel: On node 0 totalpages: 126976
Jul 31 05:24:33 raspberry kernel: free_area_init_node: node 0, pgdat c0b1e388, node_mem_map ddfa4000
Jul 31 05:24:33 raspberry kernel:   Normal zone: 1116 pages used for memmap
Jul 31 05:24:33 raspberry kernel:   Normal zone: 0 pages reserved
Jul 31 05:24:33 raspberry kernel:   Normal zone: 126976 pages, LIFO batch:31
Jul 31 05:24:33 raspberry kernel: pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
Jul 31 05:24:33 raspberry kernel: pcpu-alloc: [0] 0 
Jul 31 05:24:33 raspberry kernel: Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 125860
Jul 31 05:24:33 raspberry kernel: Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708.boardrev=0x100000e bcm2708.serial=0x3b440278 smsc95xx.macaddr=B8:27:EB:44:02:78 bcm2708_fb.fbdepth=16 bcm2708_fb.fbswap=1 bcm2708.uart_clock=48000000 vc_mem.mem_base=0x1fa00000 vc_mem.mem_size=0x20000000  root=/dev/mmcblk0p2 rw rootwait console=ttyAMA0,115200 console=tty1 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 kgdboc=ttyAMA0,115200 elevator=noop
Jul 31 05:24:33 raspberry kernel: PID hash table entries: 2048 (order: 1, 8192 bytes)
Jul 31 05:24:33 raspberry kernel: Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Jul 31 05:24:33 raspberry kernel: Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Jul 31 05:24:33 raspberry kernel: Memory: 482512K/507904K available (7988K kernel code, 579K rwdata, 2512K rodata, 328K init, 766K bss, 17200K reserved, 8192K cma-reserved)
Jul 31 05:24:33 raspberry kernel: Virtual kernel memory layout:
                                      vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                                      fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                                      vmalloc : 0xdf800000 - 0xff800000   ( 512 MB)
                                      lowmem  : 0xc0000000 - 0xdf000000   ( 496 MB)
                                      modules : 0xbf000000 - 0xc0000000   (  16 MB)
                                        .text : 0xc0008000 - 0xc0a494bc   (10502 kB)
                                        .init : 0xc0a4a000 - 0xc0a9c000   ( 328 kB)
                                        .data : 0xc0a9c000 - 0xc0b2ce30   ( 580 kB)
                                         .bss : 0xc0b2ce30 - 0xc0bec7f0   ( 767 kB)
Jul 31 05:24:33 raspberry kernel: SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Jul 31 05:24:33 raspberry kernel: NR_IRQS:16 nr_irqs:16 16
Jul 31 05:24:33 raspberry kernel: sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns
Jul 31 05:24:33 raspberry kernel: clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
Jul 31 05:24:33 raspberry kernel: bcm2835: system timer (irq = 27)
Jul 31 05:24:33 raspberry kernel: Console: colour dummy device 80x30
Jul 31 05:24:33 raspberry kernel: console [tty1] enabled
Jul 31 05:24:33 raspberry kernel: Calibrating delay loop... 697.95 BogoMIPS (lpj=3489792)
Jul 31 05:24:33 raspberry kernel: pid_max: default: 32768 minimum: 301
Jul 31 05:24:33 raspberry kernel: Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Jul 31 05:24:33 raspberry kernel: Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
Jul 31 05:24:33 raspberry kernel: Disabling cpuset control group subsystem
Jul 31 05:24:33 raspberry kernel: Initializing cgroup subsys io
Jul 31 05:24:33 raspberry kernel: Initializing cgroup subsys memory
Jul 31 05:24:33 raspberry kernel: Initializing cgroup subsys devices
Jul 31 05:24:33 raspberry kernel: Initializing cgroup subsys freezer
Jul 31 05:24:33 raspberry kernel: Initializing cgroup subsys net_cls
Jul 31 05:24:33 raspberry kernel: Initializing cgroup subsys perf_event
Jul 31 05:24:33 raspberry kernel: Initializing cgroup subsys net_prio
Jul 31 05:24:33 raspberry kernel: CPU: Testing write buffer coherency: ok
Jul 31 05:24:33 raspberry kernel: Setting up static identity map for 0x81c0 - 0x81f8
Jul 31 05:24:33 raspberry kernel: devtmpfs: initialized
Jul 31 05:24:33 raspberry kernel: VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
Jul 31 05:24:33 raspberry kernel: clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
Jul 31 05:24:33 raspberry kernel: xor: measuring software checksum speed
Jul 31 05:24:33 raspberry kernel:    arm4regs  :   973.600 MB/sec
Jul 31 05:24:33 raspberry kernel:    8regs     :   492.400 MB/sec
Jul 31 05:24:33 raspberry kernel:    32regs    :   616.800 MB/sec
Jul 31 05:24:33 raspberry kernel: xor: using function: arm4regs (973.600 MB/sec)
Jul 31 05:24:33 raspberry kernel: pinctrl core: initialized pinctrl subsystem
Jul 31 05:24:33 raspberry kernel: NET: Registered protocol family 16
Jul 31 05:24:33 raspberry kernel: DMA: preallocated 4096 KiB pool for atomic coherent allocations
Jul 31 05:24:33 raspberry kernel: No ATAGs?
Jul 31 05:24:33 raspberry kernel: hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
Jul 31 05:24:33 raspberry kernel: hw-breakpoint: maximum watchpoint size is 4 bytes.
Jul 31 05:24:33 raspberry kernel: Serial: AMBA PL011 UART driver
Jul 31 05:24:33 raspberry kernel: 20201000.uart: ttyAMA0 at MMIO 0x20201000 (irq = 81, base_baud = 0) is a PL011 rev2
Jul 31 05:24:33 raspberry kernel: console [ttyAMA0] enabled
Jul 31 05:24:33 raspberry kernel: bcm2835-mbox 2000b880.mailbox: mailbox enabled
Jul 31 05:24:33 raspberry kernel: raid6: int32x1  gen()    46 MB/s
Jul 31 05:24:33 raspberry kernel: raid6: int32x1  xor()    38 MB/s
Jul 31 05:24:33 raspberry kernel: raid6: int32x2  gen()    77 MB/s
Jul 31 05:24:33 raspberry kernel: raid6: int32x2  xor()    57 MB/s
Jul 31 05:24:33 raspberry kernel: raid6: int32x4  gen()   108 MB/s
Jul 31 05:24:33 raspberry kernel: raid6: int32x4  xor()    77 MB/s
Jul 31 05:24:33 raspberry kernel: raid6: int32x8  gen()   118 MB/s
Jul 31 05:24:33 raspberry kernel: raid6: int32x8  xor()    79 MB/s
Jul 31 05:24:33 raspberry kernel: raid6: using algorithm int32x8 gen() 118 MB/s
Jul 31 05:24:33 raspberry kernel: raid6: .... xor() 79 MB/s, rmw enabled
Jul 31 05:24:33 raspberry kernel: raid6: using intx1 recovery algorithm
Jul 31 05:24:33 raspberry kernel: bcm2835-dma 20007000.dma: DMA legacy API manager at f2007000, dmachans=0x1
Jul 31 05:24:33 raspberry kernel: SCSI subsystem initialized
Jul 31 05:24:33 raspberry kernel: usbcore: registered new interface driver usbfs
Jul 31 05:24:33 raspberry kernel: usbcore: registered new interface driver hub
Jul 31 05:24:33 raspberry kernel: usbcore: registered new device driver usb
Jul 31 05:24:33 raspberry kernel: raspberrypi-firmware soc:firmware: Attached to firmware from 2016-09-21 13:14
Jul 31 05:24:33 raspberry kernel: clocksource: Switched to clocksource timer
Jul 31 05:24:33 raspberry kernel: FS-Cache: Loaded
Jul 31 05:24:33 raspberry kernel: CacheFiles: Loaded
Jul 31 05:24:33 raspberry kernel: NET: Registered protocol family 2
Jul 31 05:24:33 raspberry kernel: TCP established hash table entries: 4096 (order: 2, 16384 bytes)
Jul 31 05:24:33 raspberry kernel: TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
Jul 31 05:24:33 raspberry kernel: TCP: Hash tables configured (established 4096 bind 4096)
Jul 31 05:24:33 raspberry kernel: UDP hash table entries: 256 (order: 0, 4096 bytes)
Jul 31 05:24:33 raspberry kernel: UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
Jul 31 05:24:33 raspberry kernel: NET: Registered protocol family 1
Jul 31 05:24:33 raspberry kernel: RPC: Registered named UNIX socket transport module.
Jul 31 05:24:33 raspberry kernel: RPC: Registered udp transport module.
Jul 31 05:24:33 raspberry kernel: RPC: Registered tcp transport module.
Jul 31 05:24:33 raspberry kernel: RPC: Registered tcp NFSv4.1 backchannel transport module.
Jul 31 05:24:33 raspberry kernel: hw perfevents: enabled with armv6_1176 PMU driver, 3 counters available
Jul 31 05:24:33 raspberry kernel: futex hash table entries: 256 (order: -1, 3072 bytes)
Jul 31 05:24:33 raspberry kernel: VFS: Disk quotas dquot_6.6.0
Jul 31 05:24:33 raspberry kernel: VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Jul 31 05:24:33 raspberry kernel: FS-Cache: Netfs 'nfs' registered for caching
Jul 31 05:24:33 raspberry kernel: NFS: Registering the id_resolver key type
Jul 31 05:24:33 raspberry kernel: Key type id_resolver registered
Jul 31 05:24:33 raspberry kernel: Key type id_legacy registered
Jul 31 05:24:33 raspberry kernel: nfs4filelayout_init: NFSv4 File Layout Driver Registering...
Jul 31 05:24:33 raspberry kernel: JFS: nTxBlock = 3833, nTxLock = 30669
Jul 31 05:24:33 raspberry kernel: SGI XFS with ACLs, security attributes, realtime, no debug enabled
Jul 31 05:24:33 raspberry kernel: aufs 4.4-20160912
Jul 31 05:24:33 raspberry kernel: jitterentropy: Initialization failed with host not compliant with requirements: 2
Jul 31 05:24:33 raspberry kernel: async_tx: api initialized (async)
Jul 31 05:24:33 raspberry kernel: Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
Jul 31 05:24:33 raspberry kernel: io scheduler noop registered (default)
Jul 31 05:24:33 raspberry kernel: io scheduler deadline registered
Jul 31 05:24:33 raspberry kernel: io scheduler cfq registered
Jul 31 05:24:33 raspberry kernel: io scheduler bfq registered
Jul 31 05:24:33 raspberry kernel: BFQ I/O-scheduler: v7r11
Jul 31 05:24:33 raspberry kernel: BCM2708FB: allocated DMA memory 5e800000
Jul 31 05:24:33 raspberry kernel: BCM2708FB: allocated DMA channel 0 @ f2007000
Jul 31 05:24:33 raspberry kernel: Console: switching to colour frame buffer device 82x26
Jul 31 05:24:33 raspberry kernel: KGDB: Registered I/O driver kgdboc
Jul 31 05:24:33 raspberry kernel: vc-cma: Videocore CMA driver
Jul 31 05:24:33 raspberry kernel: vc-cma: vc_cma_base      = 0x00000000
Jul 31 05:24:33 raspberry kernel: vc-cma: vc_cma_size      = 0x00000000 (0 MiB)
Jul 31 05:24:33 raspberry kernel: vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)
Jul 31 05:24:33 raspberry kernel: vc-mem: phys_addr:0x00000000 mem_base=0x1fa00000 mem_size:0x20000000(512 MiB)
Jul 31 05:24:33 raspberry kernel: brd: module loaded
Jul 31 05:24:33 raspberry kernel: loop: module loaded
Jul 31 05:24:33 raspberry kernel: vchiq: vchiq_init_state: slot_zero = 0xde880000, is_master = 0
Jul 31 05:24:33 raspberry kernel: Loading iSCSI transport class v2.0-870.
Jul 31 05:24:33 raspberry kernel: usbcore: registered new interface driver ax88179_178a
Jul 31 05:24:33 raspberry kernel: usbcore: registered new interface driver smsc95xx
Jul 31 05:24:33 raspberry kernel: usbcore: registered new interface driver cdc_ncm
Jul 31 05:24:33 raspberry kernel: dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
Jul 31 05:24:33 raspberry kernel: Core Release: 2.80a
Jul 31 05:24:33 raspberry kernel: Setting default values for core params
Jul 31 05:24:33 raspberry kernel: Finished setting default values for core params
Jul 31 05:24:33 raspberry kernel: Using Buffer DMA mode
Jul 31 05:24:33 raspberry kernel: Periodic Transfer Interrupt Enhancement - disabled
Jul 31 05:24:33 raspberry kernel: Multiprocessor Interrupt Enhancement - disabled
Jul 31 05:24:33 raspberry kernel: OTG VER PARAM: 0, OTG VER FLAG: 0
Jul 31 05:24:33 raspberry kernel: Dedicated Tx FIFOs mode
Jul 31 05:24:33 raspberry kernel: WARN::dwc_otg_hcd_init:1047: FIQ DMA bounce buffers: virt = 0xde814000 dma = 0x5e814000 len=9024
Jul 31 05:24:33 raspberry kernel: FIQ FSM acceleration enabled for :
                                  Non-periodic Split Transactions
                                  Periodic Split Transactions
                                  High-Speed Isochronous Endpoints
                                  Interrupt/Control Split Transaction hack enabled
Jul 31 05:24:33 raspberry kernel: dwc_otg: Microframe scheduler enabled
Jul 31 05:24:33 raspberry kernel: WARN::hcd_init_fiq:413: FIQ on core 0 at 0xc05cf4f4
Jul 31 05:24:34 raspberry kernel: WARN::hcd_init_fiq:414: FIQ ASM at 0xc05cf7b8 length 36
Jul 31 05:24:34 raspberry kernel: WARN::hcd_init_fiq:439: MPHI regs_base at 0xdfaca000
Jul 31 05:24:34 raspberry kernel: dwc_otg 20980000.usb: DWC OTG Controller
Jul 31 05:24:34 raspberry kernel: dwc_otg 20980000.usb: new USB bus registered, assigned bus number 1
Jul 31 05:24:34 raspberry kernel: dwc_otg 20980000.usb: irq 56, io mem 0x00000000
Jul 31 05:24:34 raspberry kernel: Init: Port Power? op_state=1
Jul 31 05:24:34 raspberry kernel: Init: Power Port (0)
Jul 31 05:24:34 raspberry kernel: usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
Jul 31 05:24:34 raspberry kernel: usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Jul 31 05:24:34 raspberry kernel: usb usb1: Product: DWC OTG Controller
Jul 31 05:24:34 raspberry kernel: usb usb1: Manufacturer: Linux 4.4.23-1-ARCH dwc_otg_hcd
Jul 31 05:24:34 raspberry kernel: usb usb1: SerialNumber: 20980000.usb
Jul 31 05:24:34 raspberry kernel: hub 1-0:1.0: USB hub found
Jul 31 05:24:34 raspberry kernel: hub 1-0:1.0: 1 port detected
Jul 31 05:24:34 raspberry kernel: dwc_otg: FIQ enabled
Jul 31 05:24:34 raspberry kernel: dwc_otg: NAK holdoff enabled
Jul 31 05:24:34 raspberry kernel: dwc_otg: FIQ split-transaction FSM enabled
Jul 31 05:24:34 raspberry kernel: Module dwc_common_port init
Jul 31 05:24:34 raspberry kernel: usbcore: registered new interface driver usb-storage
Jul 31 05:24:34 raspberry kernel: usbcore: registered new interface driver ums-alauda
Jul 31 05:24:34 raspberry kernel: usbcore: registered new interface driver ums-cypress
Jul 31 05:24:34 raspberry kernel: usbcore: registered new interface driver ums-datafab
Jul 31 05:24:34 raspberry kernel: usbcore: registered new interface driver ums_eneub6250
Jul 31 05:24:34 raspberry kernel: usbcore: registered new interface driver ums-freecom
Jul 31 05:24:34 raspberry kernel: usbcore: registered new interface driver ums-isd200
Jul 31 05:24:34 raspberry kernel: usbcore: registered new interface driver ums-jumpshot
Jul 31 05:24:34 raspberry kernel: usbcore: registered new interface driver ums-karma
Jul 31 05:24:34 raspberry kernel: usbcore: registered new interface driver ums-onetouch
Jul 31 05:24:34 raspberry kernel: usbcore: registered new interface driver ums-realtek
Jul 31 05:24:34 raspberry kernel: usbcore: registered new interface driver ums-sddr09
Jul 31 05:24:34 raspberry kernel: usbcore: registered new interface driver ums-sddr55
Jul 31 05:24:34 raspberry kernel: usbcore: registered new interface driver ums-usbat
Jul 31 05:24:34 raspberry kernel: mousedev: PS/2 mouse device common for all mice
Jul 31 05:24:34 raspberry kernel: md: linear personality registered for level -1
Jul 31 05:24:34 raspberry kernel: md: raid0 personality registered for level 0
Jul 31 05:24:34 raspberry kernel: md: raid1 personality registered for level 1
Jul 31 05:24:34 raspberry kernel: md: raid10 personality registered for level 10
Jul 31 05:24:34 raspberry kernel: md: raid6 personality registered for level 6
Jul 31 05:24:34 raspberry kernel: md: raid5 personality registered for level 5
Jul 31 05:24:34 raspberry kernel: md: raid4 personality registered for level 4
Jul 31 05:24:34 raspberry kernel: md: multipath personality registered for level -4
Jul 31 05:24:34 raspberry kernel: md: faulty personality registered for level -5
Jul 31 05:24:34 raspberry kernel: device-mapper: uevent: version 1.0.3
Jul 31 05:24:34 raspberry kernel: device-mapper: ioctl: 4.34.0-ioctl (2015-10-28) initialised: dm-devel@redhat.com
Jul 31 05:24:34 raspberry kernel: device-mapper: multipath: version 1.10.0 loaded
Jul 31 05:24:34 raspberry kernel: device-mapper: multipath round-robin: version 1.0.0 loaded
Jul 31 05:24:34 raspberry kernel: Indeed it is in host mode hprt0 = 00021501
Jul 31 05:24:34 raspberry kernel: device-mapper: multipath queue-length: version 0.1.0 loaded
Jul 31 05:24:34 raspberry kernel: device-mapper: multipath service-time: version 0.2.0 loaded
Jul 31 05:24:34 raspberry kernel: device-mapper: raid: Loading target version 1.7.0
Jul 31 05:24:34 raspberry kernel: bcm2835-cpufreq: min=700000 max=700000
Jul 31 05:24:34 raspberry kernel: sdhci: Secure Digital Host Controller Interface driver
Jul 31 05:24:34 raspberry kernel: sdhci: Copyright(c) Pierre Ossman
Jul 31 05:24:34 raspberry kernel: sdhost: log_buf @ de813000 (5e813000)
Jul 31 05:24:34 raspberry kernel: mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
Jul 31 05:24:34 raspberry kernel: sdhci-pltfm: SDHCI platform and OF driver helper
Jul 31 05:24:34 raspberry kernel: usb 1-1: new high-speed USB device number 2 using dwc_otg
Jul 31 05:24:34 raspberry kernel: ledtrig-cpu: registered to indicate activity on CPUs
Jul 31 05:24:34 raspberry kernel: Indeed it is in host mode hprt0 = 00001101
Jul 31 05:24:34 raspberry kernel: hidraw: raw HID events driver (C) Jiri Kosina
Jul 31 05:24:34 raspberry kernel: usbcore: registered new interface driver usbhid
Jul 31 05:24:34 raspberry kernel: usbhid: USB HID core driver
Jul 31 05:24:34 raspberry kernel: Initializing XFRM netlink socket
Jul 31 05:24:34 raspberry kernel: NET: Registered protocol family 17
Jul 31 05:24:34 raspberry kernel: Key type dns_resolver registered
Jul 31 05:24:34 raspberry kernel: registered taskstats version 1
Jul 31 05:24:34 raspberry kernel: Btrfs loaded
Jul 31 05:24:34 raspberry kernel: Key type encrypted registered
Jul 31 05:24:34 raspberry kernel: vc-sm: Videocore shared memory driver
Jul 31 05:24:34 raspberry kernel: [vc_sm_connected_init]: start
Jul 31 05:24:34 raspberry kernel: vc_vchi_sm_init: failed to open VCHI service (-1)
Jul 31 05:24:34 raspberry kernel: [vc_sm_connected_init]: failed to initialize shared memory service
Jul 31 05:24:34 raspberry kernel: [vc_sm_connected_init]: end - returning -1
Jul 31 05:24:34 raspberry kernel: of_cfs_init
Jul 31 05:24:34 raspberry kernel: of_cfs_init: OK
Jul 31 05:24:34 raspberry kernel: md: Waiting for all devices to be available before autodetect
Jul 31 05:24:34 raspberry kernel: md: If you don't use raid, use raid=noautodetect
Jul 31 05:24:34 raspberry kernel: md: Autodetecting RAID arrays.
Jul 31 05:24:34 raspberry kernel: md: Scanned 0 and added 0 devices.
Jul 31 05:24:34 raspberry kernel: md: autorun ...
Jul 31 05:24:34 raspberry kernel: md: ... autorun DONE.
Jul 31 05:24:34 raspberry kernel: mmc0: host does not support reading read-only switch, assuming write-enable
Jul 31 05:24:34 raspberry kernel: Waiting for root device /dev/mmcblk0p2...
Jul 31 05:24:34 raspberry kernel: mmc0: new high speed SDHC card at address e624
Jul 31 05:24:34 raspberry kernel: mmcblk0: mmc0:e624 SD04G 3.69 GiB
Jul 31 05:24:34 raspberry kernel:  mmcblk0: p1 p2
Jul 31 05:24:34 raspberry kernel: usb 1-1: New USB device found, idVendor=0424, idProduct=9512
Jul 31 05:24:34 raspberry kernel: usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Jul 31 05:24:34 raspberry kernel: hub 1-1:1.0: USB hub found
Jul 31 05:24:34 raspberry kernel: hub 1-1:1.0: 3 ports detected
Jul 31 05:24:34 raspberry kernel: EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
Jul 31 05:24:34 raspberry kernel: EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
Jul 31 05:24:34 raspberry kernel: EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
Jul 31 05:24:34 raspberry kernel: VFS: Mounted root (ext4 filesystem) on device 179:2.
Jul 31 05:24:34 raspberry kernel: devtmpfs: mounted
Jul 31 05:24:34 raspberry kernel: Freeing unused kernel memory: 328K (c0a4a000 - c0a9c000)
Jul 31 05:24:34 raspberry kernel: usb 1-1.1: new high-speed USB device number 3 using dwc_otg
Jul 31 05:24:34 raspberry kernel: usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
Jul 31 05:24:34 raspberry kernel: usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Jul 31 05:24:34 raspberry kernel: smsc95xx v1.0.4
Jul 31 05:24:34 raspberry kernel: smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-20980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:44:02:78
Jul 31 05:24:34 raspberry systemd[1]: System time before build time, advancing clock.
Jul 31 05:24:34 raspberry kernel: NET: Registered protocol family 10
Jul 31 05:24:34 raspberry kernel: ip_tables: (C) 2000-2006 Netfilter Core Team
Jul 31 05:24:34 raspberry kernel: random: systemd: uninitialized urandom read (16 bytes read, 51 bits of entropy available)
Jul 31 05:24:34 raspberry kernel: random: systemd: uninitialized urandom read (16 bytes read, 51 bits of entropy available)
Jul 31 05:24:34 raspberry systemd[1]: systemd 231 running in system mode. (+PAM -AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
Jul 31 05:24:34 raspberry systemd[1]: Detected architecture arm.
Jul 31 05:24:34 raspberry systemd[1]: Set hostname to <raspberry>.
Jul 31 05:24:34 raspberry kernel: random: systemd-cryptse: uninitialized urandom read (16 bytes read, 52 bits of entropy available)
Jul 31 05:24:34 raspberry kernel: uart-pl011 20201000.uart: no DMA platform data
Jul 31 05:24:34 raspberry kernel: random: systemd-gpt-aut: uninitialized urandom read (16 bytes read, 52 bits of entropy available)
Jul 31 05:24:34 raspberry kernel: random: systemd-gpt-aut: uninitialized urandom read (16 bytes read, 52 bits of entropy available)
Jul 31 05:24:34 raspberry kernel: random: systemd: uninitialized urandom read (16 bytes read, 53 bits of entropy available)
Jul 31 05:24:34 raspberry kernel: random: systemd: uninitialized urandom read (16 bytes read, 53 bits of entropy available)
Jul 31 05:24:34 raspberry kernel: random: systemd: uninitialized urandom read (16 bytes read, 53 bits of entropy available)
Jul 31 05:24:34 raspberry kernel: random: systemd: uninitialized urandom read (16 bytes read, 53 bits of entropy available)
Jul 31 05:24:34 raspberry kernel: random: systemd: uninitialized urandom read (16 bytes read, 53 bits of entropy available)
Jul 31 05:24:34 raspberry systemd[1]: Listening on Journal Socket.
Jul 31 05:24:34 raspberry systemd[1]: Reached target Swap.
Jul 31 05:24:34 raspberry systemd[1]: Created slice User and Session Slice.
Jul 31 05:24:34 raspberry systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
Jul 31 05:24:34 raspberry systemd[1]: Started Forward Password Requests to Wall Directory Watch.
Jul 31 05:24:34 raspberry systemd[1]: Listening on udev Control Socket.
Jul 31 05:24:34 raspberry systemd[1]: Listening on Device-mapper event daemon FIFOs.
Jul 31 05:24:34 raspberry systemd[1]: Reached target Encrypted Volumes.
Jul 31 05:24:34 raspberry systemd[1]: Listening on udev Kernel Socket.
Jul 31 05:24:34 raspberry systemd[1]: Listening on Network Service Netlink Socket.
Jul 31 05:24:34 raspberry systemd[1]: Listening on Journal Socket (/dev/log).
Jul 31 05:24:34 raspberry systemd[1]: Listening on LVM2 metadata daemon socket.
Jul 31 05:24:34 raspberry systemd[1]: Created slice System Slice.
Jul 31 05:24:34 raspberry systemd[1]: Mounting Temporary Directory...
Jul 31 05:24:34 raspberry systemd[1]: Reached target Slices.
Jul 31 05:24:34 raspberry systemd[1]: Starting Remount Root and Kernel File Systems...
Jul 31 05:24:34 raspberry systemd[1]: Mounting Debug File System...
Jul 31 05:24:34 raspberry systemd[1]: Starting Create list of required static device nodes for the current kernel...
Jul 31 05:24:34 raspberry systemd[1]: Starting Load Kernel Modules...
Jul 31 05:24:34 raspberry systemd[1]: Created slice system-serial\x2dgetty.slice.
Jul 31 05:24:34 raspberry systemd[1]: Created slice system-getty.slice.
Jul 31 05:24:34 raspberry systemd[1]: Starting Journal Service...
Jul 31 05:24:34 raspberry systemd[1]: Starting Setup Virtual Console...
Jul 31 05:24:34 raspberry systemd[1]: Reached target Remote File Systems.
Jul 31 05:24:34 raspberry systemd[1]: Mounting POSIX Message Queue File System...
Jul 31 05:24:34 raspberry systemd[1]: Listening on Process Core Dump Socket.
Jul 31 05:24:34 raspberry systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
Jul 31 05:24:34 raspberry systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
Jul 31 05:24:34 raspberry systemd[1]: Reached target Paths.
Jul 31 05:24:34 raspberry systemd[1]: Mounted POSIX Message Queue File System.
Jul 31 05:24:34 raspberry systemd[1]: Mounted Debug File System.
Jul 31 05:24:34 raspberry systemd[1]: Mounted Temporary Directory.
Jul 31 05:24:34 raspberry systemd[1]: Started Remount Root and Kernel File Systems.
Jul 31 05:24:34 raspberry systemd[1]: Started Create list of required static device nodes for the current kernel.
Jul 31 05:24:34 raspberry systemd[1]: Started Load Kernel Modules.
Jul 31 05:24:34 raspberry systemd[1]: Started Setup Virtual Console.
Jul 31 05:24:34 raspberry systemd[1]: Starting Apply Kernel Variables...
Jul 31 05:24:34 raspberry systemd[1]: Mounting Configuration File System...
Jul 31 05:24:34 raspberry systemd[1]: Starting Create Static Device Nodes in /dev...
Jul 31 05:24:34 raspberry systemd[1]: Starting udev Coldplug all Devices...
Jul 31 05:24:34 raspberry systemd[1]: Starting Load/Save Random Seed...
Jul 31 05:24:34 raspberry systemd[1]: Mounted Configuration File System.
Jul 31 05:24:34 raspberry systemd[1]: Started Apply Kernel Variables.
Jul 31 05:24:34 raspberry systemd[1]: Started Create Static Device Nodes in /dev.
Jul 31 05:24:34 raspberry systemd[1]: Started Load/Save Random Seed.
Jul 31 05:24:34 raspberry systemd[1]: Reached target Local File Systems (Pre).
Jul 31 05:24:34 raspberry systemd[1]: Starting udev Kernel Device Manager...
Jul 31 05:24:34 raspberry systemd-journald[135]: Journal started
Jul 31 05:24:34 raspberry systemd-modules-load[133]: Inserted module 'snd_bcm2835'
Jul 31 05:24:34 raspberry systemd[1]: Started Journal Service.
Jul 31 05:24:34 raspberry systemd[1]: Starting Flush Journal to Persistent Storage...
Jul 31 05:24:34 raspberry systemd[1]: Started udev Kernel Device Manager.
Jul 31 05:24:35 raspberry systemd[1]: Started udev Coldplug all Devices.
Jul 31 05:24:36 raspberry systemd[1]: Started Flush Journal to Persistent Storage.
Jul 31 05:24:36 raspberry systemd[1]: Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
Jul 31 05:24:36 raspberry kernel: bcm2835-wdt 20100000.watchdog: Broadcom BCM2835 watchdog timer
Jul 31 05:24:36 raspberry kernel: gpiomem-bcm2835 20200000.gpiomem: Initialised: Registers at 0x20200000
Jul 31 05:24:36 raspberry systemd[1]: Found device /dev/ttyAMA0.
Jul 31 05:24:37 raspberry kernel: bcm2835-rng 20104000.rng: hwrng registered
Jul 31 05:24:38 raspberry systemd[1]: Found device /dev/mmcblk0p1.
Jul 31 05:24:38 raspberry systemd[1]: Mounting /boot...
Jul 31 05:24:38 raspberry kernel: FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
Jul 31 05:24:38 raspberry systemd[1]: Mounted /boot.
Jul 31 05:24:38 raspberry systemd[1]: Reached target Local File Systems.
Jul 31 05:24:38 raspberry systemd[1]: Starting Create Volatile Files and Directories...
Jul 31 05:24:38 raspberry systemd[1]: Started Create Volatile Files and Directories.
Jul 31 05:24:38 raspberry systemd[1]: Starting Network Time Synchronization...
Jul 31 05:24:38 raspberry systemd[1]: Starting Update UTMP about System Boot/Shutdown...
Jul 31 05:24:39 raspberry systemd[1]: Started Update UTMP about System Boot/Shutdown.
Jul 31 05:24:39 raspberry systemd-timesyncd[190]: System clock time unset or jumped backwards, restoring from recorded timestamp: Sat 2016-10-15 16:40:02 UTC
Oct 15 16:40:02 raspberry systemd[1]: Time has been changed
Oct 15 16:40:02 raspberry systemd[1]: Started Network Time Synchronization.
Oct 15 16:40:02 raspberry systemd[1]: Reached target System Initialization.
Oct 15 16:40:02 raspberry systemd[1]: Listening on D-Bus System Message Bus Socket.
Oct 15 16:40:02 raspberry systemd[1]: Reached target Sockets.
Oct 15 16:40:02 raspberry systemd[1]: Started Daily Cleanup of Temporary Directories.
Oct 15 16:40:02 raspberry systemd[1]: Reached target Basic System.
Oct 15 16:40:02 raspberry systemd[1]: Starting Login Service...
Oct 15 16:40:02 raspberry systemd[1]: Started D-Bus System Message Bus.
Oct 15 16:40:03 raspberry dbus[198]: [system] Successfully activated service 'org.freedesktop.systemd1'
Oct 15 16:40:03 raspberry systemd[1]: Starting Network Service...
Oct 15 16:40:03 raspberry systemd[1]: Started Raspberry Pi Temperature Monitoring Daemon.
Oct 15 16:40:03 raspberry systemd[1]: Started Entropy Harvesting Daemon.
Oct 15 16:40:03 raspberry systemd[1]: Reached target System Time Synchronized.
Oct 15 16:40:03 raspberry systemd[1]: Started Daily locate database update.
Oct 15 16:40:03 raspberry systemd[1]: Started Daily verification of password and group files.
Oct 15 16:40:03 raspberry systemd[1]: Started Daily rotation of log files.
Oct 15 16:40:03 raspberry systemd[1]: Started Daily man-db cache update.
Oct 15 16:40:03 raspberry systemd[1]: Reached target Timers.
Oct 15 16:40:03 raspberry systemd-logind[196]: New seat seat0.
Oct 15 16:40:03 raspberry systemd[1]: Started Login Service.
Oct 15 16:40:03 raspberry systemd-networkd[200]: Enumeration completed
Oct 15 16:40:03 raspberry systemd[1]: Started Network Service.
Oct 15 16:40:03 raspberry systemd[1]: Reached target Network.
Oct 15 16:40:03 raspberry systemd-networkd[200]: eth0: IPv6 enabled for interface: Success
Oct 15 16:40:03 raspberry systemd[1]: Started OpenSSH Daemon.
Oct 15 16:40:03 raspberry systemd[1]: Starting Permit User Sessions...
Oct 15 16:40:03 raspberry kernel: smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
Oct 15 16:40:03 raspberry kernel: IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Oct 15 16:40:03 raspberry systemd[1]: Started Port-Knocking Daemon.
Oct 15 16:40:04 raspberry systemd[1]: Starting Network Name Resolution...
Oct 15 16:40:04 raspberry knockd[215]: could not get IP address for eth0
Oct 15 16:40:04 raspberry systemd[1]: Started Permit User Sessions.
Oct 15 16:40:04 raspberry systemd[1]: knockd.service: Main process exited, code=exited, status=1/FAILURE
Oct 15 16:40:04 raspberry systemd[1]: knockd.service: Unit entered failed state.
Oct 15 16:40:04 raspberry systemd[1]: knockd.service: Failed with result 'exit-code'.
Oct 15 16:40:04 raspberry systemd[1]: Started Getty on tty1.
Oct 15 16:40:04 raspberry systemd[1]: Started Serial Getty on ttyAMA0.
Oct 15 16:40:04 raspberry sshd[210]: Server listening on 0.0.0.0 port 22.
Oct 15 16:40:04 raspberry sshd[210]: Server listening on :: port 22.
Oct 15 16:40:04 raspberry systemd[1]: Reached target Login Prompts.
Oct 15 16:40:04 raspberry systemd-resolved[217]: Positive Trust Anchors:
Oct 15 16:40:04 raspberry systemd-resolved[217]: . IN DS 19036 8 2 49aac11d7b6f6446702e54a1607371607a1a41855200fd2ce1cdde32f24e8fb5
Oct 15 16:40:04 raspberry systemd-resolved[217]: Negative trust anchors: 10.in-addr.arpa 16.172.in-addr.arpa 17.172.in-addr.arpa 18.172.in-addr.arpa 19.172.in-addr.arpa 20.172.in-addr.arpa 21.172.in-addr.arpa 22.172.in-addr.arpa 23.172.in-addr.arpa 24.172.in-addr.arpa 25.172.in-addr.arpa 26.172.in-addr.arpa 27.172.in-addr.arpa 28.172.in-addr.arpa 29.172.in-addr.arpa 30.172.in-addr.arpa 31.172.in-addr.arpa 168.192.in-addr.arpa corp home internal intranet lan local private test
Oct 15 16:40:04 raspberry systemd-resolved[217]: Using system hostname 'raspberry'.
Oct 15 16:40:04 raspberry systemd[1]: Started Network Name Resolution.
Oct 15 16:40:04 raspberry systemd[1]: Reached target Multi-User System.
Oct 15 16:40:04 raspberry systemd[1]: Reached target Graphical Interface.
Oct 15 16:40:04 raspberry systemd[1]: Startup finished in 4.514s (kernel) + 10.036s (userspace) = 14.550s.
Oct 15 16:40:05 raspberry kernel: smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
Oct 15 16:40:05 raspberry kernel: IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Oct 15 16:40:05 raspberry systemd-networkd[200]: eth0: Gained carrier
Oct 15 16:40:06 raspberry systemd-networkd[200]: eth0: Gained IPv6LL
Oct 15 16:40:06 raspberry systemd-timesyncd[190]: Network configuration changed, trying to establish connection.
Oct 15 16:40:07 raspberry haveged[204]: haveged: ver: 1.9.1; arch: generic; vend: ; build: (gcc 4.9.2 CTV); collect: 128K
Oct 15 16:40:07 raspberry haveged[204]: haveged: cpu: (VC); data: 16K (D); inst: 16K (D); idx: 9/40; sz: 16012/69556
Oct 15 16:40:07 raspberry haveged[204]: haveged: tot tests(BA8): A:1/1 B:1/1 continuous tests(B):  last entropy estimate 8.00182
Oct 15 16:40:07 raspberry haveged[204]: haveged: fills: 0, generated: 0
Oct 15 16:40:08 raspberry systemd-networkd[200]: eth0: DHCPv4 address 192.168.0.100/24 via 192.168.0.1
Oct 15 16:40:08 raspberry systemd-timesyncd[190]: Network configuration changed, trying to establish connection.
Oct 15 16:40:08 raspberry systemd-timesyncd[190]: Network configuration changed, trying to establish connection.
Oct 15 16:40:11 raspberry kernel: random: nonblocking pool is initialized
Oct 15 16:40:19 raspberry systemd-networkd[200]: eth0: Configured
Oct 15 16:40:19 raspberry systemd-timesyncd[190]: Network configuration changed, trying to establish connection.
Oct 15 16:40:39 raspberry systemd[1]: Time has been changed
Oct 15 16:40:39 raspberry systemd-timesyncd[190]: Synchronized to time server 212.45.144.88:123 (2.arch.pool.ntp.org).
Oct 15 16:41:28 raspberry sshd[228]: Accepted publickey for leonixyz from 192.168.0.125 port 40980 ssh2: RSA SHA256:lZCAOuioIgF7pBCPYPY6prufFUIH73r32BnW3mmXsMY
Oct 15 16:41:28 raspberry sshd[228]: pam_unix(sshd:session): session opened for user leonixyz by (uid=0)
Oct 15 16:41:28 raspberry systemd[1]: Created slice User Slice of leonixyz.
Oct 15 16:41:28 raspberry systemd-logind[196]: New session c1 of user leonixyz.
Oct 15 16:41:28 raspberry systemd[1]: Started Session c1 of user leonixyz.
Oct 15 16:41:28 raspberry systemd[1]: Starting User Manager for UID 1001...
Oct 15 16:41:28 raspberry systemd[231]: pam_unix(systemd-user:session): session opened for user leonixyz by (uid=0)
Oct 15 16:41:29 raspberry systemd[231]: Reached target Paths.
Oct 15 16:41:29 raspberry systemd[231]: Starting D-Bus User Message Bus Socket.
Oct 15 16:41:29 raspberry systemd[231]: Reached target Timers.
Oct 15 16:41:29 raspberry systemd[231]: Listening on D-Bus User Message Bus Socket.
Oct 15 16:41:29 raspberry systemd[231]: Reached target Sockets.
Oct 15 16:41:29 raspberry systemd[231]: Reached target Basic System.
Oct 15 16:41:29 raspberry systemd[231]: Reached target Default.
Oct 15 16:41:29 raspberry systemd[231]: Startup finished in 321ms.
Oct 15 16:41:29 raspberry systemd[1]: Started User Manager for UID 1001.
Oct 15 16:41:38 raspberry sudo[259]: leonixyz : TTY=pts/0 ; PWD=/home/leonixyz ; USER=root ; COMMAND=/usr/bin/journalctl -b
Oct 15 16:41:38 raspberry sudo[259]: pam_unix(sudo:session): session opened for user root by leonixyz(uid=0)
Oct 15 16:41:46 raspberry sudo[259]: pam_unix(sudo:session): session closed for user root
Oct 15 16:41:55 raspberry sudo[266]: leonixyz : TTY=pts/0 ; PWD=/home/leonixyz ; USER=root ; COMMAND=/usr/bin/journalctl -b
Oct 15 16:41:55 raspberry sudo[266]: pam_unix(sudo:session): session opened for user root by leonixyz(uid=0)

Offline

#4 2016-10-15 17:21:23

leonixyz
Member
Registered: 2014-07-12
Posts: 62

Re: [SOLVED] knockd fails at boot time due to eth0 not being configured

I managed to make it work by editing the knockd.service unit file as follows:

[Unit]
Description=Port-Knocking Daemon
After=network-online.target
Wants=network-online.target
Before=sshd.service

[Service]
ExecStart=/usr/bin/knockd

[Install]
WantedBy=multi-user.target

It seems working now. I also configured sshd to start after this unit, so that port 22 isn't exposed at all during boot time.

Are my edits ok? Will they be overwritten by a pacman -Syu?

Offline

#5 2016-10-15 18:02:02

ukhippo
Member
From: Non-paged pool
Registered: 2014-02-21
Posts: 366

Re: [SOLVED] knockd fails at boot time due to eth0 not being configured

If you edited the file in /usr/... It will get overwritten. The correct place to put overrides is in /etc/... or better still create a drop-in. See the systemd and systemctl man pages.

Offline

Board footer

Powered by FluxBB