dante socksify authenticate a different user

2016-10-24 Thread Rashad Kanavath
Hello,

Can someone provide a sample configuration for socks.conf to use socsk5
protocol with authentication.

after basic configuration it uses  a system user but I have a different
username for proxy server

here is /etc/socks.conf

route {
from: 0.0.0.0/0   to: 0.0.0.0/0   via: x.x.x.x port = 1080
proxyprotocol: socks_v5 # server supports socks v5.
}

this is only modified afer pkg_add dante

OpenBSD rkm.my.domain 6.0 GENERIC.MP#2319 amd64

-- 
Regards,
   Rashad



Re: dante socksify authenticate a different user

2016-10-25 Thread Rashad Kanavath
Hello,

I am running an application within a proxy network with authentication. To
connect via ssh to a server outside corporate network, I need a tool such
as proxychains. Current proxychains is not working on openbsd. It need some
fixes in makefile to have it working properly. So I searched for
alternatives and openbsd had dante which provide a tool called socksify

Now socksify must be configured to use my socks5_proxy at company.  I don't
know how to configure it and configuration docs[1] is confusing.

So If anybody had experience with socksify could help me how to setup this
or maybe recommend another tool.

[1] https://www.inet.no/dante/doc/1.2.x/config/auth_username.html


On Mon, Oct 24, 2016 at 6:33 PM, Flipchan  wrote:

> Do you want a socks5 that listens on port x and has auth? Cant u just
> download some thirdparty software?
>
> Rashad Kanavath  skrev: (24 oktober 2016
> 18:28:08 CEST)
>>
>> Hello,
>>
>> Can someone provide a sample configuration for socks.conf to use socsk5
>> protocol with authentication.
>>
>> after basic configuration it uses  a system user but I have a different
>> username for proxy server
>>
>> here is /etc/socks.conf
>>
>> route {
>> from: 0.0.0.0/0   to: 0.0.0.0/0   via: x.x.x.x port = 1080
>> proxyprotocol: socks_v5 # server supports socks v5.
>> }
>>
>> this is only modified afer pkg_add dante
>>
>> OpenBSD rkm.my.domain 6.0 GENERIC.MP#2319 amd64
>>
>>
> --
> Sincerly flipchan
>



-- 
Regards,
   Rashad



Re: dante socksify authenticate a different user

2016-10-25 Thread Jeremie Courreges-Anglas
Rashad Kanavath  writes:

> Hello,
>
> I am running an application within a proxy network with authentication. To
> connect via ssh to a server outside corporate network, I need a tool such
> as proxychains. Current proxychains is not working on openbsd. It need some
> fixes in makefile to have it working properly. So I searched for
> alternatives and openbsd had dante which provide a tool called socksify
>
> Now socksify must be configured to use my socks5_proxy at company.  I don't
> know how to configure it and configuration docs[1] is confusing.
>
> So If anybody had experience with socksify could help me how to setup this
> or maybe recommend another tool.

I've never used socksify and a socks5 gateway, but the socksify(1)
manpage states what you need: see the description of SOCKS_SERVER and
SOCKS5_SERVER.

  env SOCKS5_SERVER=127.0.0.1:1080 socksify your command

should be a good starting point.  Looks like it's a bit broken when
using a hostname instead of a raw IP address though.

> [1] https://www.inet.no/dante/doc/1.2.x/config/auth_username.html

This describes how to set up the server side part of dante.

-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE



Re: dante socksify authenticate a different user

2016-10-25 Thread Rashad Kanavath
On Tue, Oct 25, 2016 at 6:47 PM, Jeremie Courreges-Anglas 
wrote:

> Rashad Kanavath  writes:
>
> > Hello,
> >
> > I am running an application within a proxy network with authentication.
> To
> > connect via ssh to a server outside corporate network, I need a tool such
> > as proxychains. Current proxychains is not working on openbsd. It need
> some
> > fixes in makefile to have it working properly. So I searched for
> > alternatives and openbsd had dante which provide a tool called socksify
> >
> > Now socksify must be configured to use my socks5_proxy at company.  I
> don't
> > know how to configure it and configuration docs[1] is confusing.
> >
> > So If anybody had experience with socksify could help me how to setup
> this
> > or maybe recommend another tool.
>
> I've never used socksify and a socks5 gateway, but the socksify(1)
> manpage states what you need: see the description of SOCKS_SERVER and
> SOCKS5_SERVER.
>
>   env SOCKS5_SERVER=127.0.0.1:1080 socksify your command
>
> should be a good starting point.  Looks like it's a bit broken when
> using a hostname instead of a raw IP address though.
>
> > [1] https://www.inet.no/dante/doc/1.2.x/config/auth_username.html
>
> This describes how to set up the server side part of dante.
>
Thanks.

yes I read about those env variables in man page and it works.

I want to know if it is possible to put those settings in a config file
rather than env variables


--
> jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE
>



-- 
Regards,
   Rashad