Home Forums Archive VPN Clearing House Problems with Racoons part 3

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #354715
    rugby
    Participant

    It 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

    #354719
    rugby
    Participant

    I 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;
    ? EOF

    racoon -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?

    #354832
    Anonymous
    Participant

    If 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.

    #355064
    jaharmi
    Participant

    Your 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.

    #355137
    Anonymous
    Participant

    try 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.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Comments are closed