LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-08-2015, 10:21 AM   #1
linux_user_arm
LQ Newbie
 
Registered: Jul 2015
Posts: 1

Rep: Reputation: Disabled
setkey returns errors when parsing the conf file


setkey -f ./ipsec-tools.conf results in the following errors (not sure if its is a error or warning ) on a fedora 22 system

The result of line 31: (null).
The result of line 35: (null).

either setkey -D does not list the ESP info (only the AH info)
The config file I am using is

# configuration file for 192.168.100.1

#!/usr/sbin/setkey -f

# NOTE: Do not use this file if you use racoon with racoon-tool
# utility. racoon-tool will setup SAs and SPDs automatically using
# /etc/racoon/racoon-tool.conf configuration.
#


## Flush the SAD and SPD
#
flush;
spdflush;

# AH SAs using 128 bit long keys
add 192.168.1.1 192.168.1.2 ah 0x200 -A hmac-md5
0x18c799b36eaa514faaeae272491c7b6f;
add 192.168.1.2 192.168.1.1 ah 0x300 -A hmac-md5
0x828c2b388a5e33592db4581282c15e80;

# ESP SAs using 192 bit long keys (168 + 24 parity)
add 192.168.1.1 192.168.1.2 esp 0x201 -E 3des-cbc
0xa85d2661379b0f9062f7551a94f5142c8efe58867e54e42a;
add 192.168.1.2 192.168.1.1 esp 0x301 -E 3des-cbc
0x210e34450a418e88fce2e249d2722ce75e31faa67b699dd6;

## Some sample SPDs for use racoon
#
spdadd 192.168.1.1 192.168.1.2 any -P out ipsec
esp/transport//require
ah/transport//require;

spdadd 192.168.1.2 192.168.1.1 any -P in ipsec
esp/transport//require
ah/transport//require;

The line 31 corresponds to "ah/transport//require;" and 35 to "ah/transport//require;"

The same file words on another fedora 21 system
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Parsing /etc/gdm/custom.conf UnixL Linux - General 5 02-01-2018 10:03 AM
dhcpd.conf has Configuration file errors encountered windstory Linux - Networking 1 11-25-2011 11:52 PM
(Debian) xorg.conf file, (EE) Problem parsing the config file unclerick94 Linux - Newbie 1 07-28-2009 02:27 PM
Fedora 10 error - yum repos file contains parsing errors... what to do? Bruce Jamieson Linux - Newbie 3 02-05-2009 02:21 PM
Yum Errors in parsing, whats wrong here (yum.conf pasted) thejokker Linux - Newbie 1 06-15-2004 02:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration