VPN client setup + Routing table

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
emmortan
DD-WRT Novice


Joined: 14 Jul 2012
Posts: 1

PostPosted: Sun Jul 15, 2012 0:02    Post subject: VPN client setup + Routing table Reply with quote
Hey guys im a little over my head here, but i've added my US based VPN server under the VPN client according to specs. from supplier and enabled it.

Now i've added the following under the command prompt off dd-wrt however im not gettin the results im wanting, and im not sure how i can troubleshoot on this issue.

Some help would be much appriciated!

heres the commands:
Code:
#!/bin/sh
sleep 60
PPTPSERVER=$(/usr/sbin/nvram get pptpd_client_srvip)
PPTPGWY=$(/usr/sbin/nvram get wan_gateway)
/sbin/route add -host $PPTPSERVER gw $PPTPGWY dev vlan2
/sbin/route del default
/sbin/route add default gw $PPTPGWY
/sbin/route add default dev ppp0 metric 100
#Hulu
/sbin/route add -net 8.15.0.0/16 dev ppp0
/sbin/route add -net 69.31.0.0/16 dev ppp0
/sbin/route add -net 24.143.0.0/16 dev ppp0
/sbin/route add -net 24.29.0.0/16 dev ppp0
/sbin/route add -net 8.12.221.0/24 dev ppp0
/sbin/route add -net 64.0.0.0/8 dev ppp0
/sbin/route add -net 62.0.0.0/8 dev ppp0
/sbin/route add -net 72.0.0.0/8 dev ppp0
/sbin/route add -net 74.0.0.0/8 dev ppp0
/sbin/route add -net 80.67.74.0/24 dev ppp0
/sbin/route add -net 92.123.73.0/24 dev ppp0
/sbin/route add -net 96.17.144.0/24 dev ppp0
/sbin/route add -net 128.241.220.0/24 dev ppp0
/sbin/route add -net 138.108.59.0/24 dev ppp0
/sbin/route add -net 184.51.181.0/24 dev ppp0
/sbin/route add -net 194.65.5.0/24 dev ppp0
/sbin/route add -net 198.105.194.0/24 dev ppp0
/sbin/route add -net 208.91.157.0/24 dev ppp0
/sbin/route add -net 209.130.205.0/24 dev ppp0
/sbin/route add -net 216.223.0.0/24 dev ppp0

#Pandora
/sbin/route add -net 208.85.0.0/16 dev ppp0
/sbin/route add -net 64.95.61.0/24 dev ppp0
/sbin/route add -net 64.94.123.0/24 dev ppp0
/sbin/route add -net 208.85.40.0/24 dev ppp0
/sbin/route add -net 208.85.41.0/24 dev ppp0
/sbin/route add -net 67.225.0.0/24 dev ppp0

#iptables -t nat -A PREROUTING -p tcp -&#-106;dport 1935 -j DROP
#iptables -t nat -A PREROUTING -p udp -&#-106;dport 1935 -j DROP

iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
Sponsor
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking 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 cannot attach files in this forum
You cannot download files in this forum