Fix indent and blanks at EOL
Make IPv4/IPv6 validation on IPSec

It should fix #2769