Private XMage Server - Windows 7 VPN
by BetaSteward
Moderators: North, BetaSteward, noxx, jeffwadsworth, JayDi, TheElk801, LevelX, CCGHQ Admins
Private XMage Server - Windows 7 VPN
by Rosieodonell » 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.
- Rosieodonell
- Posts: 66
- Joined: 11 Jun 2013, 04:26
- Has thanked: 2 times
- Been thanked: 10 times
Re: Private XMage Server - Windows 7 VPN
by LevelX » 11 Oct 2014, 08:13
Thanks for sharing this step by step setup guide.
In the new XMage version the second bind port the server is using can also be set in the config.xml.
So it should be possible to open only the primary (default 17171) and secondary bind port (default 17179) on the firewall.
Would be very cool if you could check if its also working if you only open this ports of server.
Thanks anyway.
In the new XMage version the second bind port the server is using can also be set in the config.xml.
So it should be possible to open only the primary (default 17171) and secondary bind port (default 17179) on the firewall.
Would be very cool if you could check if its also working if you only open this ports of server.
Thanks anyway.
-
LevelX - DEVELOPER
- Posts: 1677
- Joined: 08 Dec 2011, 15:08
- Has thanked: 174 times
- Been thanked: 374 times
Re: Private XMage Server - Windows 7 VPN
by kleedrac » 11 Oct 2014, 15:51
I can't believe I fought with this for days because I didn't put the IP in the config file. I genuinely thought it shouldn't matter as 0.0.0.0 is shorthand for any Thanks for the guide
- kleedrac
- Posts: 23
- Joined: 10 Oct 2014, 04:14
- Has thanked: 0 time
- Been thanked: 0 time
Re: Private XMage Server - Windows 7 VPN
by Rosieodonell » 11 Oct 2014, 19:36
Didn't know you had a secondary bind port set in the config there. I will test later this week!
- Rosieodonell
- Posts: 66
- Joined: 11 Jun 2013, 04:26
- Has thanked: 2 times
- Been thanked: 10 times
Re: Private XMage Server - Windows 7 VPN
by Hardly » 27 Sep 2015, 02:14
Would this work the same with an IPv6 address?
- Hardly
- Posts: 1
- Joined: 27 Sep 2015, 02:11
- Has thanked: 0 time
- Been thanked: 0 time
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 184 guests