Project

General

Profile

Bug #2818 ยป ipsec-config-pfsense.mrzaz.com-20130215010520.xml

Dan Lundqvist, 02/14/2013 06:20 PM

 
1
############################################################################################
2
### I have replaced unique data with "xxx" (local) and "yyy" (remote). And also removed PSK.
3
############################################################################################
4

    
5
<ipsec>
6
	<preferoldsa/>
7
	<phase1>
8
		<ikeid>1</ikeid>
9
		<interface>wan</interface>
10
		<remote-gateway>77.53.yyy.130</remote-gateway>
11
		<mode>aggressive</mode>
12
		<protocol>inet</protocol>
13
		<myid_type>address</myid_type>
14
		<myid_data>87.96.xxx.51</myid_data>
15
		<peerid_type>address</peerid_type>
16
		<peerid_data>77.53.yyy.130</peerid_data>
17
		<encryption-algorithm>
18
			<name>3des</name>
19
		</encryption-algorithm>
20
		<hash-algorithm>sha1</hash-algorithm>
21
		<dhgroup>1</dhgroup>
22
		<lifetime>28800</lifetime>
23
		<pre-shared-key>removed_private_key_for_security</pre-shared-key>
24
		<private-key/>
25
		<certref/>
26
		<caref/>
27
		<authentication_method>pre_shared_key</authentication_method>
28
		<generate_policy/>
29
		<proposal_check/>
30
		<descr><![CDATA[STEFA]]></descr>
31
		<nat_traversal>off</nat_traversal>
32
		<dpd_delay>10</dpd_delay>
33
		<dpd_maxfail>5</dpd_maxfail>
34
	</phase1>
35
	<phase1>
36
		<ikeid>3</ikeid>
37
		<interface>wan</interface>
38
		<remote-gateway>77.53.yyy.142</remote-gateway>
39
		<mode>main</mode>
40
		<protocol>inet</protocol>
41
		<myid_type>myaddress</myid_type>
42
		<myid_data/>
43
		<peerid_type>peeraddress</peerid_type>
44
		<peerid_data/>
45
		<encryption-algorithm>
46
			<name>3des</name>
47
		</encryption-algorithm>
48
		<hash-algorithm>sha1</hash-algorithm>
49
		<dhgroup>1</dhgroup>
50
		<lifetime>28800</lifetime>
51
		<pre-shared-key>removed_private_key_for_security</pre-shared-key>
52
		<private-key/>
53
		<certref/>
54
		<caref/>
55
		<authentication_method>pre_shared_key</authentication_method>
56
		<generate_policy/>
57
		<proposal_check/>
58
		<descr><![CDATA[... KUNGSGATAN VPN]]></descr>
59
		<nat_traversal>off</nat_traversal>
60
	</phase1>
61
	<phase1>
62
		<ikeid>2</ikeid>
63
		<interface>opt1</interface>
64
		<remote-gateway>2001:470:27:yyy::2</remote-gateway>
65
		<mode>aggressive</mode>
66
		<protocol>inet6</protocol>
67
		<myid_type>myaddress</myid_type>
68
		<myid_data/>
69
		<peerid_type>peeraddress</peerid_type>
70
		<peerid_data/>
71
		<encryption-algorithm>
72
			<name>3des</name>
73
		</encryption-algorithm>
74
		<hash-algorithm>sha1</hash-algorithm>
75
		<dhgroup>1</dhgroup>
76
		<lifetime>28800</lifetime>
77
		<pre-shared-key>removed_private_key_for_security</pre-shared-key>
78
		<private-key/>
79
		<certref/>
80
		<caref/>
81
		<authentication_method>pre_shared_key</authentication_method>
82
		<generate_policy/>
83
		<proposal_check/>
84
		<descr><![CDATA[... KUNGSGATAN VPN IPv6]]></descr>
85
		<nat_traversal>off</nat_traversal>
86
		<dpd_delay>10</dpd_delay>
87
		<dpd_maxfail>5</dpd_maxfail>
88
	</phase1>
89
	<client>
90
		<user_source>Local Database</user_source>
91
		<group_source>none</group_source>
92
	</client>
93
	<phase2>
94
		<ikeid>1</ikeid>
95
		<mode>tunnel</mode>
96
		<localid>
97
			<type>lan</type>
98
		</localid>
99
		<remoteid>
100
			<type>network</type>
101
			<address>192.168.100.0</address>
102
			<netbits>24</netbits>
103
		</remoteid>
104
		<protocol>esp</protocol>
105
		<encryption-algorithm-option>
106
			<name>3des</name>
107
		</encryption-algorithm-option>
108
		<hash-algorithm-option>hmac_md5</hash-algorithm-option>
109
		<hash-algorithm-option>hmac_sha1</hash-algorithm-option>
110
		<pfsgroup>1</pfsgroup>
111
		<lifetime>3600</lifetime>
112
		<pinghost>192.168.100.1</pinghost>
113
		<descr><![CDATA[...local]]></descr>
114
	</phase2>
115
	<phase2>
116
		<ikeid>3</ikeid>
117
		<mode>tunnel</mode>
118
		<localid>
119
			<type>lan</type>
120
		</localid>
121
		<remoteid>
122
			<type>network</type>
123
			<address>192.168.192.0</address>
124
			<netbits>24</netbits>
125
		</remoteid>
126
		<protocol>esp</protocol>
127
		<encryption-algorithm-option>
128
			<name>3des</name>
129
		</encryption-algorithm-option>
130
		<hash-algorithm-option>hmac_sha1</hash-algorithm-option>
131
		<pfsgroup>1</pfsgroup>
132
		<lifetime>3600</lifetime>
133
		<pinghost>192.168.192.15</pinghost>
134
		<descr><![CDATA[... KUNGSGATAN LOCAL LAN]]></descr>
135
	</phase2>
136
	<phase2>
137
		<ikeid>2</ikeid>
138
		<mode>tunnel6</mode>
139
		<localid>
140
			<type>lan</type>
141
		</localid>
142
		<remoteid>
143
			<type>network</type>
144
			<address>2001:470:28:yyy::</address>
145
			<netbits>64</netbits>
146
		</remoteid>
147
		<protocol>esp</protocol>
148
		<encryption-algorithm-option>
149
			<name>3des</name>
150
		</encryption-algorithm-option>
151
		<hash-algorithm-option>hmac_sha1</hash-algorithm-option>
152
		<pfsgroup>1</pfsgroup>
153
		<lifetime>3600</lifetime>
154
		<pinghost>2001:470:28:yyy::1</pinghost>
155
		<descr><![CDATA[... KUNGSGATAN LOCAL LAN IPv6]]></descr>
156
	</phase2>
157
	<enable/>
158
</ipsec>
159

    
160
<interfaces>
161
	<wan>
162
		<enable/>
163
		<if>re0</if>
164
		<blockpriv/>
165
		<blockbogons/>
166
		<descr><![CDATA[WAN]]></descr>
167
		<ipaddr>87.96.xxx.51</ipaddr>
168
		<subnet>24</subnet>
169
		<gateway>Alltele</gateway>
170
		<spoofmac/>
171
	</wan>
172
	<lan>
173
		<enable/>
174
		<if>re1</if>
175
		<descr><![CDATA[LAN]]></descr>
176
		<spoofmac/>
177
		<ipaddr>192.168.120.20</ipaddr>
178
		<subnet>24</subnet>
179
		<ipaddrv6>2001:470:28:xxx::1</ipaddrv6>
180
		<subnetv6>64</subnetv6>
181
	</lan>
182
	<opt1>
183
		<descr><![CDATA[Tunnelbroker]]></descr>
184
		<if>gif0</if>
185
		<spoofmac/>
186
		<mtu>1480</mtu>
187
		<enable/>
188
		<ipaddrv6>2001:470:27:xxx::2</ipaddrv6>
189
		<subnetv6>64</subnetv6>
190
		<gatewayv6>TunnelbrokerGWv6</gatewayv6>
191
	</opt1>
192
</interfaces>
193

    
194
	<gateways>
195
		<gateway_item>
196
			<interface>wan</interface>
197
			<gateway>87.96.xxx.1</gateway>
198
			<name>Alltele</name>
199
			<weight>1</weight>
200
			<interval/>
201
			<descr><![CDATA[ALLTELE]]></descr>
202
			<defaultgw/>
203
			<ipprotocol>inet</ipprotocol>
204
		</gateway_item>
205
		<gateway_item>
206
			<interface>opt1</interface>
207
			<gateway>2001:470:27:xxx::1</gateway>
208
			<name>TunnelbrokerGWv6</name>
209
			<weight>1</weight>
210
			<ipprotocol>inet6</ipprotocol>
211
			<interval/>
212
			<descr/>
213
			<defaultgw/>
214
		</gateway_item>
215
	</gateways>
    (1-1/1)