local Udp port scanner

Scripts with setup, destroy, and modify routing tables and firewall rulesets for client connections.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
jiroko
OpenVpn Newbie
Posts: 1
Joined: Sun Sep 27, 2015 8:39 pm

local Udp port scanner

Post by jiroko » Sun Sep 27, 2015 8:58 pm

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

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: local Udp port scanner

Post by Traffic » Mon Sep 28, 2015 11:14 am

In the client use --nobind option.

See --nobind in The Manual v23x

Post Reply