semigodking / redsocks

transparent redirector of any TCP/UDP connection to proxy
Apache License 2.0
1.14k stars 246 forks source link

help me configering simple socks4 proxy. #180

Closed tazihad closed 8 months ago

tazihad commented 1 year ago

in redsocks I used this as simple socks4 proxy. just gave ip and port. But too much confused with redsocks2 config. what could be the alternative for socks4 proxy?

base {
 log_debug = on;
 log_info = on;
 log = "stderr";
 daemon = off;
 redirector = iptables;
}

redsocks {
    local_ip = 127.0.0.1;
    local_port = 12345;

    ip = 103.82.11.233; // your custom socks4 ip
    port = 4153;          // your custom socks4 port
    type = socks4;
    // known types: socks4, socks5, http-connect, http-relay

    // login = username;
    // password = password;
}
semigodking commented 1 year ago

The example config is in repo.

''' redsocks { /* `bind' defaults to 127.0.0.1:0 for security reasons,

Zihad @.***> 于 2022年10月19日周三 01:39写道:

in redsocks I used this as simple socks4 proxy. just gave ip and port. But too much confused with redsocks2 config. what could be the alternative for socks4 proxy?

base { log_debug = on; log_info = on; log = "stderr"; daemon = off; redirector = iptables; }

redsocks { local_ip = 127.0.0.1; local_port = 12345;

ip = 103.82.11.233; // your custom socks4 ip
port = 4153;          // your custom socks4 port
type = socks4;
// known types: socks4, socks5, http-connect, http-relay

// login = username;
// password = password;

}

— Reply to this email directly, view it on GitHub https://github.com/semigodking/redsocks/issues/180, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAP2XD3O44AF4PKOZBFFDB3WD3ODZANCNFSM6AAAAAARIKIXOE . You are receiving this because you are subscribed to this thread.Message ID: @.***>