Thursday, July 21, 2016

centos - 2 linux boxes, proxy and ssh tunnel

problem:
I need create ssh forwarding to other linux box that works as a proxy.



I have two linux boxes(centos 5.5), one in the office(server1) behind firewall, other at colocation(server2)




server1 has squid proxy instaled on port 3128.



i cant use server1 as a direct proxy from home because its behind firewall.



iwas able to create ssh tunnel from server1 to server2 and
when i log in to server2 ican ssh root@localhost -p 12312
to server1



what i need is configure server2 so it forwards port server2:3128 to server1:3128




and i could add server2 ip addres and port to firefox proxy's and access ofice network.



Thanx

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...