Summary: | IPFire uses wrong source interface for remote IPsec destinations | ||
---|---|---|---|
Product: | IPFire | Reporter: | Peter Müller <peter.mueller> |
Component: | --- | Assignee: | Assigned to nobody - feel free to grab it and work on it <nobody> |
Status: | CLOSED WORKSFORME | QA Contact: | |
Severity: | Minor Usability | ||
Priority: | Will affect an average number of users | CC: | jonatan.schlag, michael.tremer, peter.mueller, tomvend |
Version: | 2 | ||
Hardware: | all | ||
OS: | All | ||
See Also: | https://bugzilla.ipfire.org/show_bug.cgi?id=11559 | ||
Bug Depends on: | |||
Bug Blocks: | 11618 |
Description
Peter Müller
2018-02-11 13:31:41 UTC
Does the order of the subnets in the IPSec setup affect the behavior? i.e.: Does "10.1.0.0/24,192.168.1.0/24" behave differently than "192.168.1.0/24,10.1.0.0/24"? This is deliberate and the only solution how the firewall itself gets access to the remote network. We have to add an ugly source NAT and the order is GREEN first and then rest.
> https://git.ipfire.org/?p=ipfire-2.x.git;a=blob;f=src/patches/strongswan-ipfire.patch;h=7071983b8c6d246cbe6a62ceb98df8de48afb36a;hb=HEAD
Look for "Add source nat so also the gateway can access the other nets"
If the firewall is always NATed to the ORANGE IP address, then there is either a bug in ip_in_subnet or your GREEN IP address isn't in the left subnets.
All right. Does not sound very great, but I can live with it. Surprisingly, changing the netowrk order - as Tom suggested in #1 - changes the behavior. This problem occurs again, this time reordering the networks in IPsec WebUI did not change anything. I now use a single tunnel between both machines, announcing GREEN and ORANGE on both sides. No matter how I put the networks, the firewall 2 blocks connections coming from the ORANGE interface of firewall 1, which is the source of that traffic indeed. No idea what to do here. Reopening this. :-) Can you post firewall rules here? I think you might just have a rule that blocks it all. Closing this as the problem disappeared, does not seem to affect a larger userbase, and I was unable to reproduce it. Please reopen, if necessary. |