I
I
iki2014-08-13 17:30:42
linux
iki, 2014-08-13 17:30:42

Forwarding yum behind Nat, what could be the problem?

Hello!
I am behind NAT and I have a vpn tunnel to a remote machine.
There is no Internet access on the remote machine (UM). I want to install packages on UM.
Configured Squid3 on my local machine(LM)
squid3 settings
IP_eth0 = ip of my local network interface
Port is listening

sudo netstat -aptn | grep 3128 
tcp        0      0 IP_eth0:3128       0.0.0.0:*               LISTEN      5902/(squid-1)

For the test, I registered a proxy in apt.conf and tried installing the package on my LM .... it works.
Then I say ssh -vR 8080:IP_eth0:3128 [email protected]
At the same time, it seems like the port was forwarded
debug1: Remote connections from LOCALHOST:8080 forwarded to local address IP_eth0:3128
debug1: remote forward success for: listen 8080, connect IP_eth0:3128
debug1: All remote forwarding requests processed
Going to the UM I say yum update with IP_eth0:3128 registered in yum.conf http://IP_eth0:3128
I get [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"
If I remove the proxy entry, I get
[Errno 14] PYCURL ERROR 7 - "Failed to connect to 2a02:6b8::183: Network is unreachable"
I can't figure out what I'm doing wrong plz tell me

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
brutal_lobster, 2014-08-14
@iki

ssh -vR 8080:IP_eth0:3128 [email protected]УМ
^ You are forwarding remote port 8080 to local port 3128.
In this case, on the remote machine, you must specify :
http://localhost:8080

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question