Date: Sat, 26 Oct 2013 03:01:37 +0400 From: sergv326 <sergv326@gmail.com> To: mrstalker@simvol7.ru, MrStalker <mrstalker@simvol7.ru>, freebsd-net@freebsd.org. Subject: Re: How delete the interface route in FreeBSD 9.2 (MPD5)? Message-ID: <40d6d33c-c635-4a00-a577-1301326e5266@email.android.com> In-Reply-To: <63600.37.147.154.147.1382647335.squirrel@37.147.154.147> References: <63600.37.147.154.147.1382647335.squirrel@37.147.154.147>
next in thread | previous in thread | raw e-mail | index | archive | help
You don't need to use "route default" at all. Make all routing table changes via up-down scripts. You have sufficient set of variables which you can use via $1 $2 $3 etc... MrStalker <mrstalker@simvol7.ru> пишет: > 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 forum > http://forums.freebsd.org/showthread.php?t=42547 > Later I found source of problem: > http://svnweb.freebsd.org/base?view=revision&revision=248895 >Now I can't delete the interface route (ng0). What does impossible work > 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. > > >------------------------------------------------------------------------ > >_______________________________________________ >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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40d6d33c-c635-4a00-a577-1301326e5266>