Private XMage Server - Windows 7 VPN
Posted: 11 Oct 2014, 05:26
Set up a private XMage server using the Windows 7 built-in vpn client, tested and it runs really fast. These instructions are for a home network that has an ip range of 192.168.2.x and the server is 192.168.2.2. The person connecting to your vpn can’t have the same network ip range. They would need to have like 192.168.1.x. (prevents ip conflicts and route issues)
We need to do the following things:
1. Configure the mage server
2. Forward firewall ports
3. Setup windows 7 incoming connection (server)
4. Configure windows firewall for home/work network.
5. Setup windows 7 VPN connection for the (client)
Step 1: Configure Mage Server
· Download latest mage bundle / unzip it etc..
· Open the mage folder and find the server config file. Path to file:
mage-bundle-1.3.0….\mage-server\config\
· Right click the “config.xml” file and edit it.
· Change the server ip address from 0.0.0.0 to your server ip address. (Ex 192.168.2.2)
· Make sure to save it.
Step 2: Forward Firewall Ports
· Open the Following ports and protocols and forward the traffic to the server (I opened them all to make sure it connects.
TCP/47 GRE, TCP/1723 for PPTP, TCP/1701 for L2TP and TCP-UDP/500 for ISAKMP, CISCO etc (only in case of using L2TP) and just to be safe I added TCP-UDP/17171.
Step 3: Setup Windows 7 for incoming connections
· Start Button -> control panel -> Network and Sharing Center
· Click “change adapter settings” then hit the F10 key to view the menu bar.
· Select File -> then select “New Incoming Connections”.
· Click “Add Someone…” and create a new user, then hit next
· Make sure “Through the internet” is checked off. Hit next
· Then select/highlight “Internet protocol version 4 (TCP/IP)” and hit properties.
· Click the radial button for “Specify IP address” and pick an ip range for your network. So I choose for this network the range 192.168.2.150-192.168.2.155.
· Click allow access.
Step 4: Configure windows firewall for home/work network on the server
· Open up your windows firewall for home and work network and disable it.
Step 5: Setup windows 7 VPN connection for the (client)
· Right-click the network icon in the system tray and select Open Network and Sharing Center
· Click Set up a new connection or network (Windows 7).
· On the wizard, select Connect to a workplace, and click Next.
· Select Use my internet connection (VPN).
· Type the Internet IP address or hostname into the Internet address and enter something for the Destination name. You'll probably want to keep the other options disabled. Click Next to continue.
· Enter a User name and password that was selected when you created the incoming VPN connection, and click Next to try to connect. It will attempt to connect using the following protocols: SSTP, PPTP, and then L2TP.
· Once connected, click Close.
We need to do the following things:
1. Configure the mage server
2. Forward firewall ports
3. Setup windows 7 incoming connection (server)
4. Configure windows firewall for home/work network.
5. Setup windows 7 VPN connection for the (client)
Step 1: Configure Mage Server
· Download latest mage bundle / unzip it etc..
· Open the mage folder and find the server config file. Path to file:
mage-bundle-1.3.0….\mage-server\config\
· Right click the “config.xml” file and edit it.
· Change the server ip address from 0.0.0.0 to your server ip address. (Ex 192.168.2.2)
· Make sure to save it.
Step 2: Forward Firewall Ports
· Open the Following ports and protocols and forward the traffic to the server (I opened them all to make sure it connects.
TCP/47 GRE, TCP/1723 for PPTP, TCP/1701 for L2TP and TCP-UDP/500 for ISAKMP, CISCO etc (only in case of using L2TP) and just to be safe I added TCP-UDP/17171.
Step 3: Setup Windows 7 for incoming connections
· Start Button -> control panel -> Network and Sharing Center
· Click “change adapter settings” then hit the F10 key to view the menu bar.
· Select File -> then select “New Incoming Connections”.
· Click “Add Someone…” and create a new user, then hit next
· Make sure “Through the internet” is checked off. Hit next
· Then select/highlight “Internet protocol version 4 (TCP/IP)” and hit properties.
· Click the radial button for “Specify IP address” and pick an ip range for your network. So I choose for this network the range 192.168.2.150-192.168.2.155.
· Click allow access.
Step 4: Configure windows firewall for home/work network on the server
· Open up your windows firewall for home and work network and disable it.
Step 5: Setup windows 7 VPN connection for the (client)
· Right-click the network icon in the system tray and select Open Network and Sharing Center
· Click Set up a new connection or network (Windows 7).
· On the wizard, select Connect to a workplace, and click Next.
· Select Use my internet connection (VPN).
· Type the Internet IP address or hostname into the Internet address and enter something for the Destination name. You'll probably want to keep the other options disabled. Click Next to continue.
· Enter a User name and password that was selected when you created the incoming VPN connection, and click Next to try to connect. It will attempt to connect using the following protocols: SSTP, PPTP, and then L2TP.
· Once connected, click Close.