This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

XG to Ubuntu 20.04 Site-to-Site IPSEC won't connect

Hello all,

I'm running an XG at my home and have an Ubuntu 20.04 host in a datacenter running strongswan ipsec.  We are unable to make a basic IPSEC site-to-site connection.  I have a server inside my home also running Ubuntu, and we can make the connection that way using port forwarding and basic firewall rules.  We would like to connect my XG to my Ubuntu server instead. I know that the XG is running strongswan too, as that is the defacto IPSEC deployment method for Linux.

Questions:

  • Is this possible?
  • Where are the IPSEC logs?
  • Which encryption methods are used in the XG IPSEC configuration?

I drew a crude document diagram of what we are trying to achieve if it is needed.

Jeff



This thread was automatically locked due to age.
Parents
  • FormerMember
    +1 FormerMember

    Hi ,

    Thank you for reaching out to the Community! 

    As long as you configure matching IPsec policy and connection detail, it’ll work.

    Sophos XG uses the following files, located in /log/ directory, to trace the events related to IPSec: 

    File name Purpose
    strongswan.log IPSec VPN Service log
    charon.log IPSec VPN Charon (IKE daemon) log
    strongswan-monitor.log IPSec daemon monitoring log
    dgd.log Dead Gateway Detection and VPN Failover

    Please refer to KB Sophos XG Firewall: Logfile guide for all the log files available on Sophos XG.

    You can check the available/preconfigured policies or create new policies as required. Go to VPN > IPsec Policies. 

    Check out the following KBA for more info: Sophos XG Firewall: IPsec troubleshooting and most common errors.

    For basic configuration on the XG side, check out the following KBA: Sophos XG Firewall: How to set a Site-to-Site IPsec VPN connection using a preshared key

    Thanks,

  • Awesome.  Thank-you for the logging information. You aren't going to believe this, but shortly after typing everything out I had that moment of clarity and managed to get it connected. Well, partially connected, as we still cannot ping vm's on the subnets defined in the connection and my virtual machine network can not reach the internet.  Should I start a new discussion or can we troubleshoot here?

  • FormerMember
    0 FormerMember in reply to Sophos User3835

    Hi ,

    Did you configure firewall rules on the XG firewall? You would need LAN to VPN and VPN to LAN to allow traffic across the IPsec VPN tunnel. 

    You could also run a packet capture from the GUI on the destination IP to see if traffic is routed through the correct firewall rule and interface. 

    For the internet issue, can you share the local and remote network definitions? If you added Any in the remote network, remove it and define the remote side's local network.

    Thanks,

  • Hello Harsh,

    Thank-you for responding.  I'm not doing these rules correctly or something else is wrong. Per the drawing I posted originally, here is the breakdown of my networks:

    • Ubuntu LAN: 10.8.0.0/24
    • Ubuntu VMNet:  192.168.10.0/24
    • XG LAN: 10.71.1.0/24
    • XG VMNet: 192.168.122.0/24

    I have created network objects that define these under Hosts and Services.  My current rules are basic LAN to VPN and VPN to LAN using zones. I have tried using Any for the remote network and the defined objects for the networks, but neither are working correctly.

    So far only my XG LAN can ping out to the Ubuntu VMNet.

    Jeff

Reply
  • Hello Harsh,

    Thank-you for responding.  I'm not doing these rules correctly or something else is wrong. Per the drawing I posted originally, here is the breakdown of my networks:

    • Ubuntu LAN: 10.8.0.0/24
    • Ubuntu VMNet:  192.168.10.0/24
    • XG LAN: 10.71.1.0/24
    • XG VMNet: 192.168.122.0/24

    I have created network objects that define these under Hosts and Services.  My current rules are basic LAN to VPN and VPN to LAN using zones. I have tried using Any for the remote network and the defined objects for the networks, but neither are working correctly.

    So far only my XG LAN can ping out to the Ubuntu VMNet.

    Jeff

Children
No Data