openswan 做ipsec nat 的問題~ - 資安

By Madame
at 2008-10-08T00:11
at 2008-10-08T00:11
Table of Contents
※ [本文轉錄自 Linux 看板]
作者: scarface (史卡廢~上班是為了等下班) 看板: Linux
標題: openswan 做ipsec nat 的問題~
時間: Tue Oct 7 19:10:24 2008
我的配置如下
A---------------eth0 router eth1-------------B
192.168.1.100 192.168.1.1 192.168.2.1 192.168.2.100
ipsec.conf:
config setup
nat_traversal=yes
plutowait=yes
nhelpers=0
conn %default
conn test
authby=secret
auto=add
keyingtries=3
left=192.168.2.1
pfs=no
rekey=no
right=192.168.2.100
#Disable Opportunistic Encryption
include /etc/ipsec.d/examples/no_oe.conf
ipsec.secrets:
: PSK "1234567890"
A是win xp 用mmc 開ipsec的功能 B是裝openswan的linux
目前沒辦法連上(動作是 A ping B)
用wireshark 看
在exchange key 之後
A會送一個 identification 的 payload給 B
可是 B會回送一個 hash的 payload 給A
查看/var/log/message
有這一段
Oct 8 18:37:27 haha pluto[6387]: "test" #1: Main mode peer ID is ID_IPV4_ADDR: '192.168.1.100'
Oct 8 18:37:27 haha pluto[6387]: "test" #1: no suitable connection for peer '192.168.1.100'
Oct 8 18:37:27 haha pluto[6387]: "test" #1: sending encrypted notification INVALID_ID_INFORMATION to 192.168.2.1:
(太長了@_@...)
請問是我的conf有什麼地方寫錯嗎??~
--
作者: scarface (史卡廢~上班是為了等下班) 看板: Linux
標題: openswan 做ipsec nat 的問題~
時間: Tue Oct 7 19:10:24 2008
我的配置如下
A---------------eth0 router eth1-------------B
192.168.1.100 192.168.1.1 192.168.2.1 192.168.2.100
ipsec.conf:
config setup
nat_traversal=yes
plutowait=yes
nhelpers=0
conn %default
conn test
authby=secret
auto=add
keyingtries=3
left=192.168.2.1
pfs=no
rekey=no
right=192.168.2.100
#Disable Opportunistic Encryption
include /etc/ipsec.d/examples/no_oe.conf
ipsec.secrets:
: PSK "1234567890"
A是win xp 用mmc 開ipsec的功能 B是裝openswan的linux
目前沒辦法連上(動作是 A ping B)
用wireshark 看
在exchange key 之後
A會送一個 identification 的 payload給 B
可是 B會回送一個 hash的 payload 給A
查看/var/log/message
有這一段
Oct 8 18:37:27 haha pluto[6387]: "test" #1: Main mode peer ID is ID_IPV4_ADDR: '192.168.1.100'
Oct 8 18:37:27 haha pluto[6387]: "test" #1: no suitable connection for peer '192.168.1.100'
Oct 8 18:37:27 haha pluto[6387]: "test" #1: sending encrypted notification INVALID_ID_INFORMATION to 192.168.2.1:
(太長了@_@...)
請問是我的conf有什麼地方寫錯嗎??~
--
Tags:
資安
All Comments
Related Posts
透過SSH 傳輸檔案有可能被第三方取得嗎?

By Enid
at 2008-09-28T00:29
at 2008-09-28T00:29
故鄉的問題

By Daniel
at 2008-09-26T06:48
at 2008-09-26T06:48
第三屆全國大專院校資安技能金盾獎開始報名!

By Puput
at 2008-09-24T14:56
at 2008-09-24T14:56
區域網路有人常害我們中毒

By Eartha
at 2008-09-21T16:16
at 2008-09-21T16:16
DHCP病毒

By Iris
at 2008-09-18T20:55
at 2008-09-18T20:55