Strongswan IPSec work on Fedora 37

1>
Public IP: 1.1.1.82
Private IP: 10.10.1.1/24
Private Subnet: 10.10.1.0/24

2>
vim /etc/sysctl.conf
"
net.ipv4.ip_forward = 1 
net.ipv6.conf.all.forwarding = 1 
net.ipv4.conf.all.accept_redirects = 0 
net.ipv4.conf.all.send_redirects = 0 
"

"sysctl -p" reloads sysctl configurations.

3>
# cat /etc/sysconfig/network-scripts/route-ens801f0np0
#Site 1 Gateway
10.20.1.0/24  via 1.1.1.82

systemctl restart NetworkManager

4>
dnf install strongswan

5>
# cat /etc/strongswan/ipsec.conf
config setup
        charondebug="all"
        uniqueids=yes
conn gateway1-to-gateway2
        type=tunnel
        auto=start
        keyexchange=ikev2
        authby=secret
        left=1.1.1.82
        leftsubnet=10.10.1.0/24

你可能感兴趣的:(excel)