local parameter is not working in client mode
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVpn Newbie
- Posts: 3
- Joined: Mon Nov 29, 2010 6:57 pm
local parameter is not working in client mode
This is because there's bind_local set to false in client mode (socket.c:1014), which prevents resolve_bind_socket function to execute bind() (socket.c:742) to bind a socket to the choosen address. Why bind() is turned off in client mode anyway?
- krzee
- Forum Team
- Posts: 728
- Joined: Fri Aug 29, 2008 5:42 pm
Re: local parameter is not working in client mode
because clients dont listen for connections
-
- OpenVpn Newbie
- Posts: 3
- Joined: Mon Nov 29, 2010 6:57 pm
Re: local parameter is not working in client mode
bind() is not used to listen for connection, listen() is. bind() is used to bind a socket to the address (in example ssh is using it for -b option). I had to manually remove the if (socket.c:742) to make it work for client mode in openvpn. So again, why it's turned off in client mode?
- krzee
- Forum Team
- Posts: 728
- Joined: Fri Aug 29, 2008 5:42 pm
Re: local parameter is not working in client mode
oh ok... you wanted --lport
-
- OpenVpn Newbie
- Posts: 3
- Joined: Mon Nov 29, 2010 6:57 pm
Re: local parameter is not working in client mode
No... i wanted --local, port doesn't matter to me.