In this post I would be showin you the steps needed to create a tunnel between Linux and Windows XP for safe data transmission with proper data encapsulation. We will be using Openswan on the Linux server and IPsec on the Windows XP to do so.
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
: PSK "secretkey"
# service ipsec start
Windows XP side configuration
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
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
1 thought on “Configure a VPN tunnel between Linux and Windows XP”