Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Racoon.conf parse error

    Scheduled Pinned Locked Moved 1.2.1-RC Snapshot Feedback and Problems-RETIRED
    11 Posts 2 Posters 12.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      cmb
      last edited by

      PeterK2003: copy/paste your racoon.conf and <ipsec>to</ipsec> in your config.xml from status.php. it shouldn't be possible to generate a racoon.conf that doesn't parse, so there appears to be some issue there. But it's not related to anything previously reported in this thread, all those issues have been resolved and didn't involve config issues like you're seeing.

      1 Reply Last reply Reply Quote 0
      • P
        PeterK2003
        last edited by

        Fist off let me explain what i am trying to do cause maybe i am doing it all wrong.  I am attempting to make a VPN connection between my apartment and my parents house.  My parents have a netgear DG834G and i obviously am using a pfsense box.  In 1.2 i managed to get a connection but i couldn't get any traffic to pass.  From what i was reading it is not possible in 1.2 this is why i changed to 1.2.1(although i am not sure it is possible here either i think that is part of 1.3).

        Anyways here is my ipsecs config:

        
         <ipsec><preferredoldsa><enable><mobileclients><enable><p1><mode>main</mode>
        			 <myident><fqdn>apartment.XXXX.name</fqdn></myident> 
        			<encryption-algorithm>3des</encryption-algorithm>
        			<hash-algorithm>sha1</hash-algorithm>
        			<dhgroup>2</dhgroup>
        			<lifetime>1200</lifetime>
        			 <private-key><cert><authentication_method>pre_shared_key</authentication_method></cert></private-key></p1> 
        		 <p2><protocol>esp</protocol>
        			<encryption-algorithm-option>3des</encryption-algorithm-option>
        			<encryption-algorithm-option>blowfish</encryption-algorithm-option>
        			<encryption-algorithm-option>cast128</encryption-algorithm-option>
        			<encryption-algorithm-option>rijndael</encryption-algorithm-option>
        			<hash-algorithm-option>hmac_sha1</hash-algorithm-option>
        			<hash-algorithm-option>hmac_md5</hash-algorithm-option>
        			<pfsgroup>2</pfsgroup>
        			<lifetime>1200</lifetime></p2></enable></mobileclients> 
        	 <mobilekey><ident>71.XXX.XXX.221</ident>
        		<pre-shared-key>XXXX</pre-shared-key></mobilekey></enable></preferredoldsa></ipsec> 
        

        How do i get the racoon.conf file?

        1 Reply Last reply Reply Quote 0
        • C
          cmb
          last edited by

          @PeterK2003:

          Fist off let me explain what i am trying to do cause maybe i am doing it all wrong.  I am attempting to make a VPN connection between my apartment and my parents house.  My parents have a netgear DG834G and i obviously am using a pfsense box.  In 1.2 i managed to get a connection but i couldn't get any traffic to pass.  From what i was reading it is not possible in 1.2 this is why i changed to 1.2.1(although i am not sure it is possible here either i think that is part of 1.3).

          Not sure what makes you think that wouldn't be possible in 1.2, this is pretty straight forward, though I would recommend 1.2.1 at this point.

          @PeterK2003:

          How do i get the racoon.conf file?

          Go to Diagnostics -> Command, run 'cat /var/etc/racoon.conf', paste output here.

          1 Reply Last reply Reply Quote 0
          • P
            PeterK2003
            last edited by

            i read some posts that seemed to say that but i may have misread it.

            $ cat /var/etc/racoon.conf
            path pre_shared_key "/var/etc/psk.txt";
            
            path certificate  "/var/etc";
            
            remote anonymous {
            	exchange_mode main;
            	my_identifier fqdn apartment.XXX.name;	
            
            	initial_contact on;
            	dpd_delay 120;                   # DPD poll every 120 seconds
            	ike_frag on;
            	passive on;
            	generate_policy on;
            	support_proxy on;
            	proposal_check obey;
            
            	proposal {
            		encryption_algorithm 3des;
            		hash_algorithm sha1;
            		authentication_method pre_shared_key;
            		dh_group 2;
            		lifetime time 1200 secs;
            	}
            	lifetime time 1200 secs;
            }
            
            sainfo anonymous {
            	encryption_algorithm 3des,blowfish,cast128,rijndael;
            	authentication_algorithm hmac_sha1,hmac_md5;
            	compression_algorithm deflate;
            	pfs_group 2;
            	lifetime time 1200 secs;
            }
            
            
            1 Reply Last reply Reply Quote 0
            • C
              cmb
              last edited by

              that conf looks fine, not sure why it's barking on the fqdn line, does it for me also.  checking into it.

              1 Reply Last reply Reply Quote 0
              • C
                cmb
                last edited by

                I just fixed this, try tomorrow's snapshot and it'll work.

                1 Reply Last reply Reply Quote 0
                • P
                  PeterK2003
                  last edited by

                  ohhh you moved it to a new thread i hadn't realized u answered–i'll try it out

                  1 Reply Last reply Reply Quote 0
                  • P
                    PeterK2003
                    last edited by

                    ok i have a connection agian but still no traffic is being passed.

                    What should the firewall rule look like?

                    1 Reply Last reply Reply Quote 0
                    • P
                      PeterK2003
                      last edited by

                      ok i appears that traffic into the PF Box on the VPN is getting handled correctly but traffic out is not.

                      1 Reply Last reply Reply Quote 0
                      • P
                        PeterK2003
                        last edited by

                        ok scratch that–i had some windows firewall issues

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.