Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-15-2014, 12:42 AM
|
#1
|
LQ Newbie
Registered: Feb 2013
Location: on the park bench.
Distribution: Debian
Posts: 15
Rep:
|
openswan - include statement in ipsec.conf & ipsec.secrets
Hello LQ,
I've been studying openswan and do have it successfully connecting to a Cisco router. ISAKMP & IPsec SA(s) come up. 2-way traffic is seen across tunnel.
Just curious...though.
I put an "include" statement in both /etc/ipsec.conf & /etc/ipsec.secrets as follows:
Code:
op@deb7test:/etc$ cat /etc/ipsec.conf | grep include
include /etc/ipsec.d/ipsec.*.conf
op@deb7test:/etc$ sudo cat /etc/ipsec.secrets | grep include
include /etc/ipsec.d/ipsec.*.secrets
op1@deb7test:/etc/ipsec.d$ ls -l | grep ipsec\.
-rw-r--r-- 1 root root 243 Oct 14 22:35 ipsec.testopenswan.conf
-rw------- 1 root root 34 Oct 14 22:36 ipsec.testopenswan.secrets
op1@deb7test:/etc/ipsec.d$ cat ipsec.testopenswan.conf | grep conn
conn testopenswan
So here's the question.... When I run the command 'sudo ipsec auto --up testopenswan, how does openswan know which secrets file to use for the pre-shared key?
In this case there is only one .secrets file, but if I had multiple "profiles" (conf & secrets files), I'm wondering how it knows to choose the correct secrets file?
Maybe it goes by filename (?) (and I just lucked out, else it would have been yet more troubleshooting and less hair!).
|
|
|
All times are GMT -5. The time now is 02:12 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|