BTW Documentation is there for you http://www.freeswan.org/doc.htmlIPSEC is Internet Protocol SECurity. It uses strong cryptography to provide both authentication and encryption services. Authentication ensures that packets are from the right sender and have not been altered in transit. Encryption prevents unauthorised reading of packet contents.
But in my personal openion I think you need netfilter/iptables