Linux side configuration
# yum -y install openswan
# vi /etc/ipsec.conf
version 2.0 # conforms to second version of ipsec.conf specification
# basic configuration
# Debug-logging controls: "none" for (almost) none, "all" for lots.
# plutodebug="control parsing"
# For Red Hat Enterprise Linux and Fedora, leave protostack=netkey
# Enable this if you see "failed to find any available worker"
Now you need to define the preshared key which will be used for authentication
# vi /etc/ipsec.secrets
: PSK "secretkey"
# service ipsec start
Windows XP side configuration
Now go to File and click on "Add/Remove Snap-in"
Now add "IP Security Policies on Local Computer"
Create a new IP security policy
Mention the preshared key as provided in ip.secrets on the linux server
Then you can click on Next and Finish the wizard.
Then you can finish the wizard and select this filter action for the IPsec policy.
Similarly create another IP Filter rule with the name "Linux to WinXP" and add the custom Filter action to this filter rule. The only thing you need to change is the filter properties.
Thats all, Now you can save and close the wizard. Right click the IP security rule you created and click on "Assign".
Now try to ping your server IP on the cmd prompt
Let me know your success and failure.
Follow below links for more tutorials:
Why is Linux more secure than windows and any other OS
How does a DNS query works when you type a URL on your browser?
How to create password less ssh connection for multiple non-root users
How to create user without useradd command in Linux
How to unlink/delete a symbolic in Linux
How to give normal user root privileges using sudo in Linux/Unix
How to do Ethernet/NIC bonding/teaming in Red Hat Linux
How to install/uninstall/upgrade rpm package with/without dependencies
How to preserve Symbolic links with tar command in Unix/Linux
How to give permission to user to run some commands in Linux
How to set environment (PATH) variable permanently in Linux