xbox 360 gaming, get(nat) USA IP from other countries.

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
mpiva
DD-WRT Novice


Joined: 10 Mar 2008
Posts: 3

PostPosted: Thu Mar 13, 2008 13:38    Post subject: xbox 360 gaming, get(nat) USA IP from other countries. Reply with quote
Stuff used:
Linksys WRT150N with DD-WRT
Dedicated server in USA with Windows 2003 Server

Approach:
* Create a VPN server in USA with NAT.
* Enable VPN client in DD-WRT.
* Mark packets from 192.168.1.224-255 in LAN go to the VPN, in effect, any machine with IP in that range will go through the VPN instead the normal WAN route.

Steps:
1) Create a VPN Server in Routing and Remote Access in Windows 2003, Disable EAP, Enable all routing, add IP pool at 192.168.0.0/255.255.255.0 in Server properties. add the correct policy to the account you want access to the VPN, add DialIn permissions to that account. And at final add the interface which connect to internet to NAT/Basic Firewall option in Rounting and Remote Access.

2) Enable PPTP client in DD-WRT with NAT.

3) Add forwarding rules with this script:


Code:
#Creating alternative routing in table 5, copying actual routes, except default gateway.

ip route flush table 5
ip route show table main | grep -Ev ^default \
| while read ROUTE ; do
   ip route add table 5 $ROUTE
done

#Adding default gateway of table 5 to ppp1 (VPN)

ip route add table 5 default dev ppp1

#Mark all packets from 192.168.1.224-255 with 5

iptables -t mangle -A PREROUTING -p all -s 192.168.1.224/27 -j MARK --set-mark 5

#Adding route rule, every packet marked as 5 will use routing from table 5

ip rule add fwmark 5 table 5
ip route flush cache

# NAT masquerade is done by VPN up script

# iptables -t nat -A POSTROUTING -o ppp1 -j MASQUERADE



Okey, something is missing and i don't know what :(

Tested the VPN connection with a Vista machine without DD-WRT and it works perfect, i mean you go to www.showmyip.com and it'll show the USA IP.
Sponsor
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum