From owner-freebsd-bugs@freebsd.org Mon Mar 14 22:43:30 2016 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 52E1DAD1AB1 for ; Mon, 14 Mar 2016 22:43:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 37C0D1BC1 for ; Mon, 14 Mar 2016 22:43:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u2EMhTnn064835 for ; Mon, 14 Mar 2016 22:43:30 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 208001] After turning off the jail does not remove network routes Date: Mon, 14 Mar 2016 22:43:30 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 10.3-BETA2 X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: admin@support.od.ua X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2016 22:43:30 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208001 Bug ID: 208001 Summary: After turning off the jail does not remove network routes Product: Base System Version: 10.3-BETA2 Hardware: amd64 OS: Any Status: New Severity: Affects Many People Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: admin@support.od.ua CC: freebsd-amd64@FreeBSD.org CC: freebsd-amd64@FreeBSD.org After turning off the jail does not remove network routes. Helps only change the IP address or reboot the server # service jail start Starting jails: web. # service jail status JID IP Address Hostname Path web 10.0.0.22 web.otrada.local /jails/web # service jail stop Stopping jails: web. # service jail status JID IP Address Hostname Path # service jail start Starting jails: cannot start jail "web": ifconfig: ioctl (SIOCAIFADDR): No such process jail: web: /sbin/ifconfig re0 inet 10.0.0.22/24 alias: failed . # netstat -rn4 | grep 10.0 10.0.0.0/24 link#1 U re0 10.0.0.0/24 link#1 U re0 10.0.0.0/24 link#1 U re0 10.0.0.0/24 link#1 U re0 10.0.0.0/8 10.0.0.125 UGS re0 10.0.0.1 link#1 UHS lo0 10.0.0.19 link#1 UHS lo0 10.0.1.1 link#10 UHS lo0 10.0.2.48 link#10 UH ng1 10.0.3.5 link#11 UH ng2 # route get 10.0.0.0/24 route to: 10.0.0.0 destination: 10.0.0.0 mask: 255.255.255.0 fib: 0 interface: re0 flags: recvpipe sendpipe ssthresh rtt,msec mtu weight expire 0 0 0 0 1500 1 0 Example config /etc/jail.conf: allow.raw_sockets =3D 1; exec.clean; exec.system_user =3D "root"; exec.jail_user =3D "root"; exec.start =3D "/bin/sh /etc/rc"; exec.stop =3D "/bin/sh /etc/rc.shutdown"; exec.consolelog =3D "/var/log/jail_${name}_console.log"; mount.devfs; mount.fstab =3D "/etc/fstab.$name"; allow.mount; allow.set_hostname =3D 0; allow.sysvipc =3D 0; path =3D "/jails/${name}"; web { host.hostname =3D "web.otrada.local"; ip4.addr =3D "re0|10.0.0.22/24"; ip4.addr +=3D "lo0|127.0.1.1/8"; ip6.addr +=3D "re0|2001:470:28:140::121/64"; allow.sysvipc =3D 1; mount.procfs; devfs_ruleset =3D 7; # path =3D "/jails/billing-test"; } --=20 You are receiving this mail because: You are the assignee for the bug.=