Remove Commented "#" lines from file in Linux

#egrep -v "^[[:space:]]*#|^$" /etc/ipsec.conf

config setup
         plutodebug=all
         plutostderrlog=/var/log/pluto.log
         protostack=netkey
         nat_traversal=yes
        virtual_private=%v4:         oe=off
conn DiData
        authby=secret
        auto=start
        ike=3des-md5
        esp=3des-md5
        type=tunnel
        left=1.2.3.4
        leftsubnet=19.1.20.0/24
        leftnexthop=%defaultroute
        right=2.2.7.1
        rightsubnets={ 1.1.1.0/24 6.1.2.2/27 }

Comments

Popular posts from this blog

How to delete SEA in VIOS

Webmin configuration for LDAP

Sample questions and answers for AWS Associate Solutions Architect Certification ---> AWS exam dumps