[Vyatta-users] [SOLVED] invalid pre-shared secret key
The patch did work, thanks. Ciao Mathias > I know this worked in earlier versions, but it seems the current release > has added an overly restrictive syntax check. If you login as root we > can fix this on the fly by changing the file > /opt/vyatta/share/ofr/template/vpn/ipsec/site-to-site/peer/node.tag/authentication/pre-shared-secret/node.def > > > > From: > > > > help: "Set pre-shared secret key" > > type: txt > > syntax: pattern $(@) "^[-_a-zA-Z0-9.]+$" ; "invalid pre-shared secret > key \"$(@)\"" > > > > To: > > > > help: "Set pre-shared secret key" > > type: txt > > syntax: pattern $(@) "^[\([EMAIL PROTECTED]" ; "invalid pre-shared > secret key \"$(@)\"" > > > > Hope that helps. > > > > stig > > > > > >> mathias > >> > >> > >> > >> [EMAIL PROTECTED] set vpn ipsec site-to-site peer xxx.xxx.xxx.xxx > >> authentication pre-shared-secret "11([EMAIL PROTECTED]" > >> [edit] > >> [EMAIL PROTECTED] commit > >> [edit] > >> Commit Failed > >> invalid pre-shared secret key "11([EMAIL PROTECTED]" > >> > >> > >> [EMAIL PROTECTED] set vpn ipsec site-to-site peer xxx.xxx.xxx.xxx > >> authentication pre-shared-secret '11([EMAIL PROTECTED]' > >> [edit] > >> [EMAIL PROTECTED] commit > >> [edit] > >> Commit Failed > >> sh: -c: line 0: syntax error near unexpected token `(' > >> sh: -c: line 0: `/opt/vyatta/sbin/xorp_tmpl_tool set vpn ipsec > >> site-to-site peer 'xxx.xxx.xxx.xxx' authentication pre-shared-secret > >> ''11([EMAIL PROTECTED]''' > >> ___ > >> Vyatta-users mailing list > >> Vyatta-users@mailman.vyatta.com > >> http://mailman.vyatta.com/mailman/listinfo/vyatta-users > ___ Vyatta-users mailing list Vyatta-users@mailman.vyatta.com http://mailman.vyatta.com/mailman/listinfo/vyatta-users
Re: [Vyatta-users] invalid pre-shared secret key
> Have you tried using quotes around it? > > [EMAIL PROTECTED] set vpn ipsec site-to-site peer 10.0.0.1 > authentication pre-shared-secret "11([EMAIL PROTECTED]" sorry, forgot that. single and double quotes don't work either mathias [EMAIL PROTECTED] set vpn ipsec site-to-site peer xxx.xxx.xxx.xxx authentication pre-shared-secret "11([EMAIL PROTECTED]" [edit] [EMAIL PROTECTED] commit [edit] Commit Failed invalid pre-shared secret key "11([EMAIL PROTECTED]" [EMAIL PROTECTED] set vpn ipsec site-to-site peer xxx.xxx.xxx.xxx authentication pre-shared-secret '11([EMAIL PROTECTED]' [edit] [EMAIL PROTECTED] commit [edit] Commit Failed sh: -c: line 0: syntax error near unexpected token `(' sh: -c: line 0: `/opt/vyatta/sbin/xorp_tmpl_tool set vpn ipsec site-to-site peer 'xxx.xxx.xxx.xxx' authentication pre-shared-secret ''11([EMAIL PROTECTED]''' ___ Vyatta-users mailing list Vyatta-users@mailman.vyatta.com http://mailman.vyatta.com/mailman/listinfo/vyatta-users
[Vyatta-users] invalid pre-shared secret key
Hi all, just installed yvatta and wanted to establish an ipsec vpn connection. When entering the pre-shared-secret I receive the following message: [EMAIL PROTECTED] set vpn ipsec site-to-site peer xxx.xxx.xxx.xxx authentication pre-shared-secret 11([EMAIL PROTECTED] [edit] [EMAIL PROTECTED] commit [edit] Commit Failed invalid pre-shared secret key "11([EMAIL PROTECTED]" I tried to escape the chars but without succes. So, any idea why those special chars (for higher security of course) don't work? Cheers Mathias ___ Vyatta-users mailing list Vyatta-users@mailman.vyatta.com http://mailman.vyatta.com/mailman/listinfo/vyatta-users ___ Vyatta-users mailing list Vyatta-users@mailman.vyatta.com http://mailman.vyatta.com/mailman/listinfo/vyatta-users
[Vyatta-users] invalid pre-shared secret key
Hi all, just installed yvatta and wanted to establish an ipsec vpn connection. When entering the pre-shared-secret I receive the following message: [EMAIL PROTECTED] set vpn ipsec site-to-site peer xxx.xxx.xxx.xxx authentication pre-shared-secret 11([EMAIL PROTECTED] [edit] [EMAIL PROTECTED] commit [edit] Commit Failed invalid pre-shared secret key "11([EMAIL PROTECTED]" I tried to escape the chars but without succes. So, any idea why those special chars (for higher security of course) don't work? Cheers Mathias ___ Vyatta-users mailing list Vyatta-users@mailman.vyatta.com http://mailman.vyatta.com/mailman/listinfo/vyatta-users