Find the answer to your Linux question:
Results 1 to 2 of 2
Ok well, i guess i'll start with a little background info here. I've been racking my brain for the past few days trying to get MetroPCS data on my droid. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2009
    Posts
    1

    Simple Global Proxy using IPTables


    Ok well, i guess i'll start with a little background info here.
    I've been racking my brain for the past few days trying to get MetroPCS data on my droid. I finally came across a custom rom with a kernel that supports IPTables

    Everything is finally working as it should, the data connection is up.

    Now, i really think this was some kind of conspiracy to keep people on their network and paying for an expensive data plan. There are absolutely no proxy settings at all, anywhere.

    Im pretty sure IPTables is the answer.

    for metropcs i need to forward all outgoing connections through
    wap.metropcs.net port:3128 - for HTTP
    wap.metropcs.net port:443 - for HTTPS

    the proxy doesnt use any kind of authentication.

    So, can anyone help? Im sure its a really simple command but everything i've found talks about how to setup a proxy or a gateway using iptables, i just need to use a proxy, not actually make one.

    Thanks

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    This TUTORIAL should give you some insight.

    Should go something like this (yopu'll need to change it to fit your system);
    Code:
    iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination <ip-of-WAP>:3128
    iptables -t nat -A PREROUTING -p tcp --dport 443 -j DNAT --to-destination <ip-of-WAP>:443
    Change <ip-of-WAP> to the IP Address of their server.
    I tried to look it up, but nothing is returned.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •