Home › Forums › Archive › VPN Clearing House › Problems with Racoons part 3
- This topic has 4 replies, 3 voices, and was last updated 23 years, 9 months ago by
Anonymous.
-
AuthorPosts
-
November 1, 2002 at 2:28 am #354715
rugby
ParticipantIt just might be my dyslexia working overtime tonight but I keep getting a syntax error when following your instructions for part three of the racoons series. I created a simple text document with textedit that has this in it:
flush;
spdflush;
spdadd 10.7.40.0/22 10.7.50.2/32 any -P in ipsec esp/tunnel/myworkaddress-10.7.50.2/require;
spdadd 10.7.50.2/32 10.7.40.0/22 any -P out ipsec esp/tunnel/10.7.50.2-myworkaddress/require;I even saved it to the same spot you did in your article. I added the preshared secret to the psk.txt file. Here’s what I get next:
sudo setkey -f /Shared\ Items/vpnsetup.txt
]ine 1: Syntax error at [
what is this? Any ideas?
I used vpntracker with a fair amount of success, but am too cheap to buy it if I can get this to work properly. I must be doing something wrong, but I’m not sure what. Thanks for any help you can give me
November 1, 2002 at 12:05 pm #354719rugby
ParticipantI did what you said, I entered each SPA individually and didn’t get any errors at all this time:
? flush;
? spdflush;
? spdadd 10.7.40.0/22 10.7.50.2/32 any -P in ipsec esp/tunnel/workipaddress-10.7.50.2/require;
? spdadd 10.7.50.2/32 10.7.40.0/22 any -P out ipsec esp/tunnel/10.7.50.2-workipaddress/require;
? EOFracoon -f /etc/racoon/racoon.conf
Now, if I type ps -aux | grep racoon I get this:
root 675 0.0 0.0 1936 420 ?? Ss 6:02AM 0:00.19 racoon -f /etc/racoon/racoon.conf
does that mean it’s running?
December 4, 2002 at 3:09 am #354832Anonymous
ParticipantIf you are using a Mac text editor, such as BBedit, setkey will not like the linefeeds used by default. Make sure that whatever editor you are using is set to use unix linefeeds.
January 22, 2003 at 2:11 pm #355064jaharmi
ParticipantYour problem is most likely your text editor. I had the exact same problem, but then I went back into BBEdit and set the line ending type to “UNIX” rather than “Mac” (the default). I saved the document and then used the vpnsetup.txt file and it worked.
February 5, 2003 at 5:43 pm #355137Anonymous
Participanttry to use the ‘pico’ text editor from the command line to edit those files. Just issue the command pico /etc/racoon/racoon.conf and it will open that file up inside the shell. Use your arrow keys to move around, delete to .. delete .. etc …
Also, try out http://www.accesswave.ca/alrankin/ and see if any of the info I posted can help you out.
-
AuthorPosts
- You must be logged in to reply to this topic.