Date: Wed, 26 Aug 2020 02:36:01 -0400 From: Paul Procacci <pprocacci@gmail.com> To: freebsd-questions@freebsd.org Subject: [dhclient] Continuous vpn disconnections Message-ID: <CAFbbPuhERqYP8ZWiSOU9YY0897UYO1B0Xz_UhgLjFcpSnp7faQ@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hey all, I'm having a problem I'm not entirely sure how to solve. I have a vnet jail that grabs an ip address from my dhcp server using dhclient upon startup. Once logged into that vnet jail, I start an openvpn connection with a foreign machine. All works from this point forth for anywhere from 20 minutes to 30 minutes before my vpn connection gets terminated. This is always proceeded with the following in the log files: Aug 25 23:06:47 x dhclient[7399]: New IP Address (epair2b): 192.168.2.2 Aug 25 23:06:47 x dhclient[7400]: New Subnet Mask (epair2b): 255.255.255.0 Aug 25 23:06:47 x dhclient[7401]: New Broadcast Address (epair2b): 192.168.2.255 Aug 25 23:06:47 x dhclient[7402]: New Routers (epair2b): 192.168.2.1 dhclient isn't as verbose as I'd like, but if the logs are to be believed, then it shouldn't be getting a new (but same) ip address every 20-30 minutes. I've since removed the dhcp assignments to get a stable vpn connection and am still testing it, but like the idea of centrally managing what on my network gets what ip address. Why is dhclient behaving this way? Any thoughts? Thanks in advance. [Host] Networking +---------------------------------------------------------------- vlan2: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=200401<RXCSUM,LRO,RXCSUM_IPV6> ether d0:50:99:d4:b9:fe inet 192.168.2.1 netmask 0xffffff00 broadcast 192.168.2.255 groups: vlan vlan: 2 vlanpcp: 0 parent interface: igb1 media: Ethernet autoselect (1000baseT <full-duplex>) status: active nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> bridge2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 ether 02:b4:bd:ea:4e:02 id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto stp-rstp maxaddr 2000 timeout 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 member: epair2a flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP> ifmaxaddr 0 port 11 priority 128 path cost 2000 member: vlan2 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP> ifmaxaddr 0 port 7 priority 128 path cost 2000000 groups: bridge nd6 options=9<PERFORMNUD,IFDISABLED> +---------------------------------------------------------------- [Host] dhcp.conf +---------------------------------------------------------------- option domain-name "myhome"; option domain-name-servers 192.168.1.1; default-lease-time 600; max-lease-time 7200; authoritative; log-facility local7; subnet 192.168.2.0 netmask 255.255.255.0 { range 192.168.2.2 192.168.2.254; option routers 192.168.2.1; option broadcast-address 192.168.2.255; } +---------------------------------------------------------------- [Vnet Jail] pertinent rc.conf ifocnifg_epair2b="DHCP" +---------------------------------------------------------------- ~Paul -- __________________ :(){ :|:& };:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFbbPuhERqYP8ZWiSOU9YY0897UYO1B0Xz_UhgLjFcpSnp7faQ>