Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Virtual private networks
»
IPSec Libreswan to OPNSense cannot ping from OPNSense LAN
« previous
next »
Print
Pages: [
1
]
Author
Topic: IPSec Libreswan to OPNSense cannot ping from OPNSense LAN (Read 1521 times)
iv4nd1
Newbie
Posts: 17
Karma: 0
IPSec Libreswan to OPNSense cannot ping from OPNSense LAN
«
on:
June 30, 2022, 05:00:32 pm »
Hello,
I have setup an IPSec VPN between Debian 11 with Libreswan and my OPNsense box.
Phase 2 config is allowing one /24 subnet to talk to a remote /24 subnet.
So far, from the Libreswan side, I can ping and RDP to remote machines attached to the OPNSense LAN just fine.
However, there's no communication from OPNSense LAN to Libreswan LAN.
Only one side of the tunnel seems to work.
Libreswan configuration :
https://hastebin.milkywan.fr/isopitazit.apache
OPNSense configuration is the following.
IKEv2 Phase 1 :
Phase 2 :
Child SA status on OPNSense :
Routing table for remote Libreswan subnet from OPNSense :
Firewall configuration for IPSec interface :
Thank you.
«
Last Edit: July 03, 2022, 09:35:53 am by iv4nd1
»
Logged
iv4nd1
Newbie
Posts: 17
Karma: 0
Re: IPSec Libreswan to OPNSense cannot ping from OPNSense LAN
«
Reply #1 on:
June 30, 2022, 05:04:25 pm »
Libreswan logs :
https://hastebin.milkywan.fr/diwibobisi.apache
Logged
iv4nd1
Newbie
Posts: 17
Karma: 0
Re: IPSec Libreswan to OPNSense cannot ping from OPNSense LAN
«
Reply #2 on:
June 30, 2022, 05:15:41 pm »
After doing a tcpdump on the Debian machine, I can see the remote ping comming from the IPSec tunnel.
This is my sysctl config :
net.ipv6.conf.default.accept_redirects = 0
net.ipv6.conf.all.accept_redirects = 0
net.ipv4.conf.default.send_redirects = 0
net.ipv4.conf.default.accept_redirects = 0
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.all.rp_filter = 0
net.ipv4.conf.eth0.send_redirects = 0
net.ipv4.conf.eth0.accept_redirects = 0
net.ipv4.ip_forward = 1
Maybe some of these settings are the issue, or maybe I need NAT ?
Logged
iv4nd1
Newbie
Posts: 17
Karma: 0
Re: IPSec Libreswan to OPNSense cannot ping from OPNSense LAN
«
Reply #3 on:
June 30, 2022, 07:35:47 pm »
Solution to the issue :
Add NAT rule using nftables on the Debian Libreswan box because there's no way to configure custom routing on my ISP box.
Tweak Windows 10 firewall to allow ICMPv4 Echo replies and requests from any subnet.
Everything works OK now.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Virtual private networks
»
IPSec Libreswan to OPNSense cannot ping from OPNSense LAN