Choose Your Proxy Post 6/2009 update

magicJack Tips and Tricks

Moderators: Bill Smith, Pilot

Post Reply
Trebuin
MagicJack Contributor
Posts: 53
Joined: Wed May 21, 2008 1:17 am

Choose Your Proxy Post 6/2009 update

Post by Trebuin »

One of the updates from last year stopped the us from using the hosts files. Since then I have gone through an ATA to fix this. Now that this new update has killed the ATA, back through the USB again. The problem is now I'm back going through a proxy with a 500+ ms delay (caused by going from Japan to Columbus), where all my problems began. Our only solution was to block most of the proxies, which lead to a horrible startup time and frequent disconnects. This has been thoroughly discussed at http://www.phoneservicesupport.com/sele ... t4287.html

I have finally found a solution for those with DD-WRT or other routers that allow you to use iptables.

For DDWRT-
1) select administrator tab
2) select commands tab
3) add these two lines:
iptables -t nat -I PREROUTING -d p.p.p.p -j DNAT --to g.g.g.g
iptables -t nat -I POSTROUTING -s g.g.g.g -j SNAT --to p.p.p.p

where p.p.p.p is your current "poor" proxy
and g.g.g.g is your preferred "good" proxy

4) select "save firewall"

That's it. For me, my computer shows a connection to Columbus, my bad proxy, but when I talk, my vms connection shows Los Angeles, my preffered proxy. Quality is great and I'm down to 150ms delay as opposed to 500ms.

If anyone can add lines for other hardware, I will add it to the top of this post. Would a moderator mind sticking this post please? Thanks and I hope you all find this beneficial.

Respectfully,
Treb
User avatar
sabresfan
Dan Should Pay Me
Posts: 673
Joined: Thu Feb 12, 2009 7:12 pm
Location: Buffalo NY

Post by sabresfan »

I know this thread is old but the info here continues to work for MJ. Thanks Treb for the great writeup. Here is my current iptables commands I'm using with DD-WRT for MJ.

iptables -t nat -I PREROUTING -d 216.234.64.8 -j DNAT --to 216.234.68.8
iptables -t nat -I POSTROUTING -s 216.234.68.8 -j SNAT --to 216.234.64.8
/usr/sbin/iptables -I FORWARD -d 67.90.152.114 -j DROP
/usr/sbin/iptables -I FORWARD -d 67.90.152.117 -j DROP
/usr/sbin/iptables -I FORWARD -d 67.90.152.116 -j DROP
/usr/sbin/iptables -I FORWARD -d 216.234.76.95 -j DROP
/usr/sbin/iptables -I FORWARD -d 69.4.236.236 -j DROP
/usr/sbin/iptables -I FORWARD -d 216.234.76.183 -j DROP
/usr/sbin/iptables -I FORWARD -d 216.234.79.174 -j DROP
/usr/sbin/iptables -I FORWARD -d 216.234.79.137 -j DROP
/usr/sbin/iptables -I FORWARD -d 216.234.79.136 -j DROP
/usr/sbin/iptables -I FORWARD -d 216.234.76.193 -j DROP
/usr/sbin/iptables -I FORWARD -d 67.90.152.80 -j DROP
/usr/sbin/iptables -I FORWARD -d 216.234.76.104 -j DROP
/usr/sbin/iptables -I FORWARD -d 216.234.76.160 -j DROP
/usr/sbin/iptables -I FORWARD -d 216.234.76.161 -j DROP
/usr/sbin/iptables -I FORWARD -d 216.234.79.174 -j DROP
/usr/sbin/iptables -I FORWARD -d 216.234.76.150 -j DROP
/usr/sbin/iptables -I FORWARD -d 216.234.76.40 -j DROP
/usr/sbin/iptables -I FORWARD -d 216.234.64.34 -j DROP

Hopefully this will help some others out.
Post Reply