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   Previous Message  |  Next Message 
 RE: pipsecd: (SOCK_RAW):protocol not supported
Author: Bjorn Tornqvist 
Date:   18-07-00 12:12

Ok, I've solved the problem now (ie no more pipsecd complains - can't test until monday when the machines on the other side of the VLAN arrives).
The problem is very strange, and the solutions is even stranger... ;)
Using a sleep right after pipsecd makes it complain! Removing the sleep completely results in pipsecd being able to open SOCK_RAW - (does the sleep suspend the shell, and therefore somehow by any freak feature the childprocesses (pipsecd) causing it to not being able to open the socket O_NONBLOCK???)
Anyway, so this is what I have (up to this point in my description): No sleep, no pipsecd complaints, but ifconfig fails since tun0 doesn't exist.
My solution:
echo test > /dev/tun0
pipsecd <args> &
/sbin/ifconfig tun0 <args>
/sbin/route <args>
--- eof ---
But, as I said, while there are no warnings - I can't test the system live until next week.


Btw: Any comments/pointers would be greatly appreciated. Somehow my solution sucks greatly. :)

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

 Topics Author  Date
 pipsecd: (SOCK_RAW):protocol not supported   new
Bjorn Tornqvist 17-07-00 14:15 
 RE: pipsecd: (SOCK_RAW):protocol not supported   new
Philip Hallstrom 17-07-00 17:56 
 RE: pipsecd: (SOCK_RAW):protocol not supported   new
Bjorn Tornqvist 18-07-00 12:12 

 Forum List  |  Need a Login? Register Here 
 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