Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
openswan e ipsec.conf
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
antonio1
n00b
n00b


Joined: 06 May 2004
Posts: 17

PostPosted: Thu May 13, 2004 11:22 am    Post subject: openswan e ipsec.conf Reply with quote

Ciao a tutti,

sulla mia rete internal ho un pc con ip 192.168.0.6 ed un altro che fa da gateway con due schede di rete con i seguenti indirizzi 192.168.0.20 e 192.168.23.254.

Vorre fare un collegamento in modalita tunnel tra questi due pc con openswan ma non riesco a configurare opportunamente i dei file /etc/ipsec/ipsec.conf sui due computer.

Sul pc con 192.168.0.6. ho la seguente configurazione:--------------------------------------

version 2.0 # conforms to second version of ipsec.conf specification

# basic configuration
config setup
# Debug-logging controls: "none" for (almost) none, "all" for lots.
# klipsdebug=all
# plutodebug=dns


# Add connections here.

# sample RoadWarrior connection
conn road
left = 192.168.0.6
leftrsasigkey = 0sAQO8l97fPXqa9y5s4P+2GNfUYcx/ZUYaHZ5eMGWx11gsbv/UsKq$
right = 192.168.0.20
rightrsasigkey = 0sAQNpY6tenSDF1UNYIKPm1Yik+ZGc9S28nZPkzo05JV/frSLqbS$
auto = add
---------------------------------------------------------------------------------------------------------

Mentre sul gateway ho la seguente:


version 2.0 # conforms to second version of ipsec.conf specification

# basic configuration
config setup
# Debug-logging controls: "none" for (almost) none, "all" for lots.
# klipsdebug=all
# plutodebug=dns


# Add connections here.

# sample RoadWarrior connection
conn road
left = 192.168.0.20
leftrsasigkey = 0sAQNpY6tenSDF1UNYIKPm1Yik+ZGc9S28nZPkzo05JV/frSLqbS$
right = 192.168.0.6
rightsasigkey = 0sAQO8l97fPXqa9y5s4P+2GNfUYcx/ZUYaHZ5eMGWx11gsbv/UsKq
auto = add
---------------------------------------------------------------------------------------------------------

Facendo /etc/init.d/ipsec start il processo parte correttamente.
Quano faccio:
ipsec auto --up road

ottengo:

104 "road" #1: STATE_MAIN_I1: initiate
010 "road" #1: STATE_MAIN_I1: retransmission; will wait 20s for response
010 "road" #1: STATE_MAIN_l1: retransmission; will wait 40s for response
.....

grazie
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum