Feature #1864
closed
"Start" button for IPsec should be available for IP alias networks
Added by Chris Buechler about 13 years ago.
Updated almost 12 years ago.
Description
If the local subnet of an IPsec network is an IP alias, the "start" button under Status>IPsec doesn't show up. That's normal where it isn't really a direct attached network, but should add consideration for IP alias subnets that are assigned.
Files
- Status changed from New to Assigned
- Assignee set to Darren Embry
- Target version set to 2.1
- Status changed from Assigned to Feedback
If you could give me steps to reproduce/get to state where there should be a start button but isn't one, that would be awesome. More stuff I've never really dealt with here so I'm not sure what settings I'd have to change, etc.
example config attached. See Status>IPsec. The one with "Local network" LAN has the Start button. If you check Firewall>Virtual IPs, you'll see 192.168.2.1 is assigned to the LAN, and hence there should be a start button on the second one as well (it can initiate traffic from the "local network" as it has an IP within that subnet).
Would this be the proper link URL?
/diag_ipsec.php?act=connect&remoteid=192.168.44.0&source=192.168.2.1
And what if multiple IP addresses within 192.168.2.0/24 are assigned to the LAN? (would this ever be true?) just use the first one found?
what if an ipsec had 192.168.2.0/28 and the virtual ip's had 192.168.2.1/24?
what if an ipsec had 192.168.2.0/24 and the virtual ip's had 192.168.2.1/28?
In any of those cases it doesn't matter as long as there is a VIP somewhere inside of the IPsec subnet it will work.
In either of your example cases, the VIP of .1 is still inside that subnet/IP range, so it would still work.
- Assignee changed from Darren Embry to Chris Buechler
Just pushed 59231855 which is about all I can do at this point.
I don't have a way of testing whether the start button for an IPsec on an alias is going to work.
And this probably needs more testing, generally, but with attached XML config the start button shows up.
Reassigning to Chris.
I use check_subnets_overlap so both cases above should work fine.
- Status changed from Assigned to Resolved
Also available in: Atom
PDF