2017-07-04 15:23:15 - WAN interface Restarted on OPNsense2017-07-04 15:24:15 - WAN interface Restarted on OPNsense2017-07-06 03:46:22 - WAN interface Restarted on OPNsense2017-07-06 04:17:22 - WAN interface Restarted on OPNsense2017-07-07 17:41:22 - WAN interface Restarted on OPNsense2017-07-09 06:35:22 - WAN interface Restarted on OPNsense2017-07-09 07:06:22 - WAN interface Restarted on OPNsense2017-07-10 20:30:22 - WAN interface Restarted on OPNsense2017-07-12 09:24:22 - WAN interface Restarted on OPNsense2017-07-12 09:55:22 - WAN interface Restarted on OPNsense2017-07-12 12:53:22 - WAN interface Restarted on OPNsense2017-07-12 12:55:15 - WAN interface Restarted on OPNsense2017-07-12 12:56:15 - WAN interface Restarted on OPNsense
#!/bin/sh # -q quiet# -c nb of pings to perform ping -q -c5 [your_wan_gateway] > /dev/null 2>&1 <<-- obviously your wan gateway IP if [ $? -eq 0 ] then echo "ok" else# When we restart the NIC we also need to run a dhclient to get our (fixed) IP address: /etc/rc.d/netif restart vmx0 > /dev/null 2>&1 ; dhclient vmx0 > /dev/null 2>&1 echo "$(date '+%Y-%m-%d %H:%M:%S') - WAN interface Restarted on" $(hostname -s) >> /usr/home/restart_wan.logfi
* * * * * (/usr/home/restart_wan) > /dev/null
root@OPNsense:~ # dateWed Jul 19 05:53:53 UTC 2017root@OPNsense:~ # ifconfig igb0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=4400b8<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWTSO,TXCSUM_IPV6> ether 00:30:18:cd:e8:54 inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 inet6 fe80::1:1%igb0 prefixlen 64 scopeid 0x1 nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> media: Ethernet autoselect (1000baseT <full-duplex>) status: activeigb1: flags=8c02<BROADCAST,OACTIVE,SIMPLEX,MULTICAST> metric 0 mtu 1500[...]igb9: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=4400b8<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWTSO,TXCSUM_IPV6> ether 00:30:18:cd:ec:63 inet6 fe80::230:18ff:fecd:ec63%igb9 prefixlen 64 scopeid 0xa inet 10.1.102.55 netmask 0xffffff00 broadcast 10.1.102.255 nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> media: Ethernet autoselect (1000baseT <full-duplex>) status: active[...]root@OPNsense:~ # arp -a? (10.1.102.1) at 4c:5e:0c:4b:23:30 on igb9 expires in 1084 seconds [ethernet]? (10.1.102.55) at 00:30:18:cd:ec:63 on igb9 permanent [ethernet]? (192.168.1.1) at 00:30:18:cd:e8:54 on igb0 permanent [ethernet]? (192.168.1.100) at f0:de:f1:f3:17:88 on igb0 expires in 1136 seconds [ethernet]root@OPNsense:~ # time arp -a? (10.1.102.1) at 4c:5e:0c:4b:23:30 on igb9 expires in 1016 seconds [ethernet]? (10.1.102.55) at 00:30:18:cd:ec:63 on igb9 permanent [ethernet]? (192.168.1.1) at 00:30:18:cd:e8:54 on igb0 permanent [ethernet]? (192.168.1.100) at f0:de:f1:f3:17:88 on igb0 expires in 1172 seconds [ethernet]0.000u 0.004s 0:23.29 0.0% 0+0k 0+0io 0pf+0wroot@OPNsense:~ # clog /var/log/system.log | tail -n 150[...]Jul 19 05:37:41 OPNsense kernel: uhub1: 4 ports with 4 removable, self poweredJul 19 05:37:41 OPNsense kernel: igb9: link state changed to UPJul 19 05:37:41 OPNsense kernel: aesni0: No AESNI support.Jul 19 05:37:42 OPNsense kernel: done.Jul 19 05:37:42 OPNsense kernel: igb9: link state changed to DOWNJul 19 05:37:42 OPNsense sshlockout[12834]: sshlockout/webConfigurator v3.0 starting upJul 19 05:37:42 OPNsense configd.py: [3a2068ae-8494-4ad6-9476-7ef4d08a0ce5] Linkup stopping igb9Jul 19 05:37:46 OPNsense kernel: igb9: link state changed to UPJul 19 05:37:46 OPNsense configd.py: [f7d9bfd1-e05b-40c2-b52b-fd08a8c054c3] Linkup starting igb9Jul 19 05:37:49 OPNsense kernel: done.Jul 19 05:37:49 OPNsense kernel: pflog0: promiscuous mode enabledJul 19 05:37:50 OPNsense kernel: ...done.Jul 19 05:37:50 OPNsense kernel: done.Jul 19 05:37:50 OPNsense sshd[48047]: Server listening on :: port 22.Jul 19 05:37:50 OPNsense sshd[48047]: Server listening on 0.0.0.0 port 22.[...]Jul 19 05:38:02 OPNsense sshlockout[70807]: sshlockout/webConfigurator v3.0 starting upJul 19 05:38:02 OPNsense kernel: OKJul 19 05:38:04 OPNsense kernel: Jul 19 05:45:52 OPNsense kernel: igb0: link state changed to UPJul 19 05:45:52 OPNsense configd.py: [ac2de28c-7b2a-4fa0-9f27-2e8536f2c95d] Linkup starting igb0Jul 19 05:45:53 OPNsense opnsense: /usr/local/etc/rc.linkup: DEVD Ethernet attached event for lanJul 19 05:45:53 OPNsense opnsense: /usr/local/etc/rc.linkup: HOTPLUG: Configuring interface lanJul 19 05:45:56 OPNsense configd.py: [2355f16d-4b08-4c1d-85db-cc50b95f937e] updating dyndns lanJul 19 05:45:56 OPNsense configd.py: [6072a8dd-cf07-4c0d-aea2-c0b32445b557] updating rfc2136 lanJul 19 05:53:40 OPNsense sshd[30826]: Postponed keyboard-interactive for root from 192.168.1.100 port 35188 ssh2 [preauth]Jul 19 05:53:44 OPNsense opnsense: user 'root' authenticated successfullyJul 19 05:53:44 OPNsense sshd[30826]: Postponed keyboard-interactive/pam for root from 192.168.1.100 port 35188 ssh2 [preauth]Jul 19 05:53:44 OPNsense sshd[30826]: Accepted keyboard-interactive/pam for root from 192.168.1.100 port 35188 ssh2root@OPNsense:~ # dateWed Jul 19 06:05:53 UTC 2017root@OPNsense:~ # time arp -a? (10.1.102.1) at 4c:5e:0c:4b:23:30 on igb9 expires in 204 seconds [ethernet]? (10.1.102.55) at 00:30:18:cd:ec:63 on igb9 permanent [ethernet]? (192.168.1.1) at 00:30:18:cd:e8:54 on igb0 permanent [ethernet]? (192.168.1.100) at f0:de:f1:f3:17:88 on igb0 expires in 1101 seconds [ethernet]0.000u 0.004s 0:23.33 0.0% 0+0k 0+0io 0pf+0wroot@OPNsense:~ # dateWed Jul 19 06:11:33 UTC 2017root@OPNsense:~ # ping 10.1.102.1PING 10.1.102.1 (10.1.102.1): 56 data bytes^C--- 10.1.102.1 ping statistics ---5 packets transmitted, 0 packets received, 100.0% packet lossroot@OPNsense:~ # time arp -a? (10.1.102.1) at (incomplete) on igb9 expired [ethernet]? (10.1.102.55) at 00:30:18:cd:ec:63 on igb9 permanent [ethernet]? (192.168.1.1) at 00:30:18:cd:e8:54 on igb0 permanent [ethernet]? (192.168.1.100) at f0:de:f1:f3:17:88 on igb0 expires in 1074 seconds [ethernet]0.000u 0.004s 0:23.59 0.0% 0+0k 0+0io 0pf+0w
root@OPNsense:~ # ps aux | grep dhclientroot 15548 0.0 0.0 1076296 2844 - Is 05:37 0:00.00 dhclient: igb9 [priv] (dhclient)_dhcp 24493 0.0 0.0 1076296 2908 - Is 05:37 0:00.00 dhclient: igb9 (dhclient)root 59205 0.0 0.0 1080488 2856 0 S+ 08:53 0:00.01 grep dhclientroot@OPNsense:~ # netstat -nr | grep defaultdefault 10.1.102.1 UGS igb9root@OPNsense:~ # ping 10.1.102.1PING 10.1.102.1 (10.1.102.1): 56 data bytes^C--- 10.1.102.1 ping statistics ---3 packets transmitted, 0 packets received, 100.0% packet lossroot@OPNsense:~ # dateWed Jul 19 08:54:46 UTC 2017root@OPNsense:~ # killall dhclientroot@OPNsense:~ # ps aux | grep dhclientroot 77072 0.0 0.0 1080488 2860 0 S+ 08:55 0:00.00 grep dhclientroot@OPNsense:~ # dateWed Jul 19 08:55:16 UTC 2017root@OPNsense:~ # dhclient igb9DHCPREQUEST on igb9 to 255.255.255.255 port 67DHCPACK from 10.1.102.5bound to 10.1.102.55 -- renewal in 21600 seconds.root@OPNsense:~ # dateWed Jul 19 08:55:32 UTC 2017root@OPNsense:~ # ping 10.1.102.1PING 10.1.102.1 (10.1.102.1): 56 data bytes^C--- 10.1.102.1 ping statistics ---5 packets transmitted, 0 packets received, 100.0% packet lossroot@OPNsense:~ # dateWed Jul 19 08:56:08 UTC 2017root@OPNsense:~ # arp -a -n? (10.1.102.1) at (incomplete) on igb9 expired [ethernet]? (10.1.102.55) at 00:30:18:cd:ec:63 on igb9 permanent [ethernet]? (192.168.1.1) at 00:30:18:cd:e8:54 on igb0 permanent [ethernet]? (192.168.1.101) at f0:de:f1:ab:ce:49 on igb0 expires in 1011 seconds [ethernet]root@OPNsense:~ # dateWed Jul 19 08:56:36 UTC 2017root@OPNsense:~ # /usr/local/etc/rc.newwanip wanroot@OPNsense:~ # dateWed Jul 19 08:57:09 UTC 2017root@OPNsense:~ # ping 10.1.102.1PING 10.1.102.1 (10.1.102.1): 56 data bytes^C--- 10.1.102.1 ping statistics ---3 packets transmitted, 0 packets received, 100.0% packet lossroot@OPNsense:~ # dateWed Jul 19 08:57:25 UTC 2017root@OPNsense:~ #
root@OPNsense:~ # ping 10.1.102.1PING 10.1.102.1 (10.1.102.1): 56 data bytes^C--- 10.1.102.1 ping statistics ---4 packets transmitted, 0 packets received, 100.0% packet lossroot@OPNsense:~ # sysctl -a | grep -i eeeoptions IEEE80211_SUPPORT_MESHoptions IEEE80211_AMPDU_AGEoptions IEEE80211_DEBUGz0xfffff8000baeee80 [label="r0w0e0"];z0xfffff8000baeee80 -> z0xfffff8000521d300;z0xfffff8000bb5be00 -> z0xfffff8000baeee80; <consumer id="0xfffff8000baeee80">hw.bxe.autogreeen: 0hw.em.eee_setting: 1dev.igb.9.eee_disabled: 1dev.igb.8.eee_disabled: 1dev.igb.7.eee_disabled: 1dev.igb.6.eee_disabled: 1dev.igb.5.eee_disabled: 1dev.igb.4.eee_disabled: 1dev.igb.3.eee_disabled: 1dev.igb.2.eee_disabled: 1dev.igb.1.eee_disabled: 1dev.igb.0.eee_disabled: 1root@OPNsense:~ #