The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 Interfaces won't go away after ppp/pptpclient/mpd crashed
Author: Scali 
Date:   11-03-04 20:42

I have a big problem on my hands with FreeBSD 5.1...
After ppp/pptp shut down ungracefully, the tun0 interface got screwed up in some way... it can not be re-used, and instead a new tun is created, which ofcourse screws up my firewall settings, which rely on the internet interface being tun0...
Since pptpclient was a big troublemaker anyway, I also decided to try mpd... This worked fine until there was a disconnect... when it tried to reconnect, it had the same problem... its ng0 interface was not shut down, and the only way to reconnect was to open a new ng1 interface instead, and again reconfigure the firewall...

Anyway I now have this:

tun0: flags=8011<UP,POINTOPOINT,MULTICAST> mtu 1500
inet6 fe80::250:bfff:fe03:babe%tun0 prefixlen 64 scopeid 0x4
tun1: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
tun2: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
inet6 fe80::250:bfff:fe03:babe%ng0 prefixlen 64 scopeid 0x7
tun3: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
inet6 fe80::250:bfff:fe03:babe%ng1 prefixlen 64 scopeid 0x9
inet --> netmask 0xffffffff

And I tried everything I could think of with ifconfig and delete/destroy commands etc... also tried to make sense of ngctl and the mpd console, but no matter what I do, I can't seem to close the interfaces, they only seem to respond to the up and down commands.
I even tried deleting the devices from /dev, but that did not seem to help either... Neither did unloading the if_tun module.
So does anyone have any ideas on what might be the problem here, or at least how to force the deletion of the old interfaces manually, and re-create them?
At this rate I'm running out of interfaces quickly.

Reply To This Message
 Re: Interfaces won't go away after ppp/pptpclient/mpd crashed
Author: Ryan Buterbaugh 
Date:   04-05-04 05:19

Had the same problem.... do this:

ngctl shutdown ng0:

Note the semicolon (it's required)... that should do the trick.


Reply To This Message
 Re: Interfaces won't go away after ppp/pptpclient/mpd crashed
Author: sevi 
Date:   20-02-06 18:53

I have almost the same problem. My connections are using tun interfaces, not ng interfaces are defined. And they keep open after ppp dies. Anyone knows how to close them??
thanks a lot!

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 

 User Login
 User Name:
 Remember my login:
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum