Skip to main content
JDGrobler
New Member
Nov 13, 2018 1:19 PM UTC
Question

OpenSwan/StrongSwan VPN Tunnel to Fortigate E30

Hi there. I am battling with a configuration and all the other post are outdated and no one actually posts what they did to fix the issue they had.

I have the following that needs to be setup in the image provided.

the eth0 IP address I have managed to configure to 192.168.x.x

 

the setup I received for the Fortigate is as follows:

Phase 1:

AES128-SHA256,AES256-SHA256,3DES-SHA256,AES128-SHA1,AES256-SHA1,3DES-SHA1

DH GROUP 14,5

Key Lifetime = 86400

 

XAUTH - disabled

 

Phase 2:

AES128-SHA256,AES256-SHA256,3DES-SHA256,AES128-SHA1,AES256-SHA1,3DES-SHA1

DH GROUP 14,5

Enabled replay detection >

Enabled PFS

Key Lifetime seconds

Seconds 43200

 

I have a pre shared key that I don't know where to put.

To be honest. I have no clue what to do on the ipsec.conf file on the Raspberry Pi.

Please, to bare in mind that on the Raspberry Pi I have changed the NetworkManager so that it is the same as that on Ubuntu as I need to share the internet connection from the wlan0-eth0 with internet sharing.(found this the easiest way to achieve what was required)

 

The reason this is done is that the device is being used as a portable device where the cellular-modem is providing the raspberry pi with internet and the providing another device internet through the ethernet port.

However this device needs a tunnel connection through to the office.

 

Can someone please help me in anyway.

Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024