Page 1 of 1

local Udp port scanner

Posted: Sun Sep 27, 2015 8:58 pm
by jiroko
So i don't know how to explain this clearly but my goal is to find out what local port i can use to bind to while connecting to openvpn server with my isp

in the configuration file for openvpn there is this options ( lport is to provide the local port to bind)

proto udp

remote 27.87.14.136 1516

resolv-retry infinite

bind

lport 8080

persist-key

i tried a few ports manually (8080 worked for me, the rest didn't) but i want to scan all local ports as fast as i could

i can't make 65535 copy of the config each with a different lport and try to connect one by one, What i was thinking of is a simple local port scanner that will try to connect to the remote server on 1516 using udp but changing the lport everytime

I can code a little bit with php ,But i have 0 expercience in networks i really need your help, i've been searching around for scanners but none of them can provide what i want

Re: local Udp port scanner

Posted: Mon Sep 28, 2015 11:14 am
by Traffic
In the client use --nobind option.

See --nobind in The Manual v23x