Troubleshooting IPsec Connectivity Issues on pfSense with DrayTek
A pfSense-to-DrayTek IPsec triage guide for one-host reachability failures, focused on tunnel state, phase selectors, firewall rules, routing, NAT overlap, and packet-path evidence.
Quick Read
- Symptom: A pfSense-to-DrayTek IPsec triage guide for one-host reachability failures, focused on tunnel state, phase selectors, firewall rules, routing, NAT overlap, and packet-path evidence.
- Check first: Verify IPsec status on both pfSense and DrayTek.
- Risk: Review before running
Symptoms
Unable to reach a specific host over an IPsec LAN-to-LAN VPN between pfSense and DrayTek.
Environment
pfSense router configured as an IPsec VPN endpoint and DrayTek router configured as the opposite endpoint.
Most Likely Causes
Potential misconfiguration in IPsec policies, firewall rules, or routing settings.
What to Check First
- Verify IPsec status on both pfSense and DrayTek.
- Check firewall rules on pfSense and DrayTek for allowed traffic.
- Confirm routing settings on both devices.
Fix Steps
- Check IPsec status on pfSense.
Access the pfSense web interface and navigate to Status > IPsec.
- Check IPsec status on DrayTek.
Log into the DrayTek interface and navigate to VPN and Remote Access > LAN to LAN.
- Review firewall rules on pfSense.
Navigate to Firewall > Rules and check the rules for the IPsec interface.
- Review firewall rules on DrayTek.
Check the firewall settings under Security > Firewall on the DrayTek device.
- Check routing settings on pfSense.
Go to System > Routing and verify the routes for the VPN subnet.
- Check routing settings on DrayTek.
Access the Routing settings under Advanced > Routing.
- Perform a ping test from pfSense to the specific host.
Use Diagnostics > Ping in pfSense to ping the specific host.
Example pattern only. Adjust for your environment before running.
ping <specific_host_ip>
- Check system logs on pfSense.
Navigate to Status > System Logs > IPsec to review logs for errors.
- Check system logs on DrayTek.
Access the logs under System Maintenance > Log.
Validation
- Confirm that the specific host is reachable via ping after adjustments.
- Verify that traffic flows correctly through the IPsec tunnel.
Logs to Check
- pfSense IPsec logs for connection attempts and errors.
- DrayTek logs for IPsec negotiation and traffic logs.
Rollback and Escalation
- Revert any firewall rule changes if connectivity is not restored.
- Restore previous routing settings if new routes do not resolve the issue.
Escalate When
- If the issue persists after checking all configurations and logs.
- If there are persistent errors in the IPsec logs indicating a deeper issue.
Edge Cases
- Check for overlapping subnets between the two sites.
- Ensure that NAT settings are not interfering with IPsec traffic.
Notes from the Field
- Always document changes made during troubleshooting for future reference.
- Consider the possibility of intermittent connectivity issues that may require monitoring.