Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SOCKS proxy only accessible from host #3

Open
psamim opened this issue May 30, 2019 · 4 comments
Open

SOCKS proxy only accessible from host #3

psamim opened this issue May 30, 2019 · 4 comments

Comments

@psamim
Copy link

psamim commented May 30, 2019

Hi,

I can run the container successfully and it works fine from host but I cannot connect to it from other IPs on the same local network.

Thanks,

@xorr0
Copy link

xorr0 commented Feb 24, 2020

I too am experiencing the same issue. From the local machine things work fine, but from any other device on the local network I cannot get a response from the SOCKS5 proxy. I've made sure to open the firewall ports on 1080 tcp+udp, and I've tried many other ideas but nothing seems to work. Any suggestions?

@afdalwahyu
Copy link

my current implementation is using gost to forward socks from docker. btw i'm using this dockerfile

$> gost -L=:6666 -F socks4://127.0.0.1:1080

where 127.0.0.1:1080 is address from container openvpn proxy, and you're running gost from your current os.

@mook
Copy link
Owner

mook commented Oct 3, 2020

That is correct; the start script has --publish on 127.0.0.1. If you want to make it work outside, start by changing that (but I haven't tried it recently, so it might not work).

@antoniozh
Copy link

Hi, I wrote my own script for this.

#!/bin/bash

if [ ! -z $SUBNET ]; then
        ip route add "$SUBNET"/24 via 172.20.0.1 dev eth0  
        [ $? -eq 1 ] && echo Subnet "$SUBNET"/24 tunneled! 
        echo "Subnet script ran"
fi

Make sure to adjust the SUBNET variable and your gateway. You can find out the device ip by grepping but I forgot where I coded that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants