From owner-freebsd-net@FreeBSD.ORG Fri Oct 25 17:04:27 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id C7052A11; Fri, 25 Oct 2013 17:04:27 +0000 (UTC) (envelope-from sodynet1@gmail.com) Received: from mail-pd0-x229.google.com (mail-pd0-x229.google.com [IPv6:2607:f8b0:400e:c02::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9913123D3; Fri, 25 Oct 2013 17:04:27 +0000 (UTC) Received: by mail-pd0-f169.google.com with SMTP id q10so4265758pdj.28 for ; Fri, 25 Oct 2013 10:04:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=fhcZmb2hNtq4I9rPXw8OLJ0R7+ySzsqtIhqEM8rV9FY=; b=hp5xbzNxUZrrtSg6nVAyioYrg8TvojgkOZees1PVKVPEhwKzO2PUjakDwizosl6vui XtrSHtF/rxGTgLnFs9HGbD3wnevBdAS2EyGyTJ8vNC5mjTTdj/w4C/OPt/UqnGXhVGOR ZFXR+cx/qOTg7z26tTGdFSHWxG5s7J8upfzstChU02kazQJjh2c20QAu7pcKh0mtxBjm xss9K49olg4Pedy7qxMrTrIg1nCysvf3jUFPNBmIbb66a7qfPYNQw2TWVMIO6Z4aNFsl hwwcw2RLBvGE5h7e9T3TqaywxIxj7qnx0iV8ngj2wTJ8lewSVWr4TV2bWEWUsmT/fBTi 00FA== MIME-Version: 1.0 X-Received: by 10.66.197.135 with SMTP id iu7mr11775156pac.149.1382720667222; Fri, 25 Oct 2013 10:04:27 -0700 (PDT) Received: by 10.70.30.98 with HTTP; Fri, 25 Oct 2013 10:04:27 -0700 (PDT) Received: by 10.70.30.98 with HTTP; Fri, 25 Oct 2013 10:04:27 -0700 (PDT) In-Reply-To: <526AA2A7.4010904@freebsd.org> References: <63600.37.147.154.147.1382647335.squirrel@37.147.154.147> <526A18FC.6030402@rdtc.ru> <526A894E.1070305@simvol7.ru> <526AA2A7.4010904@freebsd.org> Date: Fri, 25 Oct 2013 20:04:27 +0300 Message-ID: Subject: Re: How delete the interface route in FreeBSD 9.2 (MPD5)? From: Sami Halabi To: Julian Elischer Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-net@freebsd.org, MrStalker X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Oct 2013 17:04:27 -0000 You need to setup the up.sh script to modify the default route to go through the old default route... I have set this up at home... I'll post you the script when i'll be home. Sami =D7=91=D7=AA=D7=90=D7=A8=D7=99=D7=9A 25 =D7=91=D7=90=D7=95=D7=A7 2013 19:56= , "Julian Elischer" =D7=9B=D7=AA=D7=91: > On 10/25/13 11:07 PM, MrStalker wrote: > >> >> 25.10.2013 11:08, Eugene Grosbein =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >> >>> On 25.10.2013 03:42, MrStalker wrote: >>> >>>> Hello! >>>> For my internet provider (L2TP VPN connection) is required a route to >>>> the VPN server via local gate. >>>> I'm using MPD5. >>>> But, MPD5 creates route to the VPN server via its same interface... >>>> >>>> root@Eviko:/home/mrstalker # netstat -nrf inet >>>> Routing tables >>>> >>>> Internet: >>>> Destination Gateway Flags Refs Use Netif >>>> Expire >>>> default 85.21.230.206 UGS 0 8 ng0 >>>> 85.21.230.206 link#7 UH 0 8 ng0 >>>> >>>> What will not work... >>>> >>>> However earlier, it was possible delete this route and then create >>>> right route. >>>> root@Test2:/home/mrstalker # route delete 85.21.230.206 >>>> delete host 85.21.230.206 >>>> root@Test2:/home/mrstalker # route add 85.21.230.206 10.165.32.1 >>>> add host 85.21.230.206: gateway 10.165.32.1 >>>> >>>> When i trying FreeBSD 9.2, this is no longer working... >>>> Thread about it at the forumhttp://forums.freebsd.** >>>> org/showthread.php?t=3D42547 >>>> Later I found source of problem: >>>> http://svnweb.freebsd.org/**base?view=3Drevision&revision=3D**248895 >>>> >>>> Now I can't delete the interface route (ng0). What does impossible wor= k >>>> with the internet provider. >>>> >>>> How? How now resolve this problem? >>>> I need to add route to the vpn server via local gate... >>>> >>>> Please help me resolve this trouble. Since the release of FreeBSD 9.2 = I >>>> trying to find a solution. >>>> >>> You have to create your static route to vpn server before mpd5 starts. >>> Use /etc/rc.conf: >>> >>> static_routes=3D"vpn" >>> route_vpn=3D"85.21.230.206 10.165.32.1" >>> >>> Eugene Grosbein >>> >> Unfortunately failed... >> >> root@Eviko:/home/mrstalker # netstat -nrf inet|grep 85.21.230.206 >> 85.21.230.206 10.165.32.1 UGHS 0 0 re0 >> root@Eviko:/home/mrstalker # service mpd5 start >> Starting mpd5. >> root@Eviko:/home/mrstalker # netstat -nrf inet|grep 85.21.230.206 >> 85.21.230.206 link#7 UH 0 4 ng0 >> >> Route via ng0 overwrites the static route. >> > then you have set it up wrong. > you need a specific static route to the far end that does not go through > tunnel. > > the only other possibilty is to have mpd use a separate fib.. > e.g. > > setfib 3 route add (destination route) > setfib 3 mpd (args) > then you can allow the default route etc to go through the tunnel > as the tunnel iteself will use a different routing table. > > > ______________________________**_________________ >> freebsd-net@freebsd.org mailing list >> http://lists.freebsd.org/**mailman/listinfo/freebsd-net >> To unsubscribe, send any mail to "freebsd-net-unsubscribe@**freebsd.org<= freebsd-net-unsubscribe@freebsd.org> >> " >> >> >> > ______________________________**_________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/**mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@**freebsd.org > "