Sign in to follow this  
Followers 0
80008

redirecting ip address in windows

4 posts in this topic

i need to force a ip address to point to a different one on my windows box.

more specifically, i need x.x.x.x:z to connect to 127.0.0.1:z

127.0.0.1:z is port forwarded to x.x.x.x:z though ssh

im doing this becuase i am inside a VERY restricted firewall, the university i go to has almost all ports blocked. i have a ssh sever set up at my parents house and i dont need help with seting up ssh portwarding. i just can not figure out how to make all traffic headed towards a certain ip go through my tunnel

EDIT: thanks for the help none of that would work, I tried it all before. the firewall was pretty dam good, but I finally found a way for it to work

Edited by 80008
0

Share this post


Link to post
Share on other sites

If you acquire box with privs (i.e., bring a laptop), you could set up a VPN to your home box (and change the port to 22 if need be).

....or, if you're not feeling that adventurous, simply VNC to your home box.

0

Share this post


Link to post
Share on other sites
i just can not figure out how to make all traffic headed towards a certain ip go through my tunnel

You can either pick certain ports and use ssh on local machine to port forward a local port via ssh to port on remote machine. Quick and easy if you just need a few, ie. private webserver on remote machine. As simple as installing (using) Putty, see 'command/ssh/tunnels' to enable specific ports. It's not clear whether you want other machines on the LAN to use the forwarded port, I think you do....

Or you can create a SLIP/PPP tunnel over ssh (basically a ssh VPN), with a private IP address on each end. If you need to redirect all trafic set the default gateway to be remote private address and enable NAT on remote machine. Definately works with Linux, don't know whether this can be achived without installing Cygwin on local machine.

A simpler 'full' solution may be to use a pre-done VPN solution. I hear that TINC is quite simple to set up, although have too many distractions that I haven't actually tried in yet.

Munge.

0

Share this post


Link to post
Share on other sites

if you already have traffic coming to your pc on say port 80, and you want to simply redirect it to another pc on another port for example 8080, you could simply set up a redirector using netcat.

nc -L -p 80 | nc 192.168.1.1 8080

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0