[resolved]Change lport & rport given a binary from provider?

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

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

Locked
JoeGibken
OpenVpn Newbie
Posts: 3
Joined: Wed Dec 21, 2011 9:07 pm

[resolved]Change lport & rport given a binary from provider?

Post by JoeGibken » Wed Dec 21, 2011 9:43 pm

Is there by chance a way that I can change the lport and rport in Linux when my VPN provider only gave me a single binary file to connect to their servers? How by chance? Thank you :)

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: Change lport & rport given a binary from provider? [Linu

Post by janjust » Wed Dec 21, 2011 11:15 pm

eh? just add command parameters and/or change the config file.

JoeGibken
OpenVpn Newbie
Posts: 3
Joined: Wed Dec 21, 2011 9:07 pm

Re: Change lport & rport given a binary from provider? [Linu

Post by JoeGibken » Thu Dec 22, 2011 12:45 am

As I am not sure what is the syntax, kindly correct me if below is wrong:

Code: Select all

sudo providersvpnbinary --config someserver.ovpn -lport:137 -rport:1201

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: Change lport & rport given a binary from provider? [Linu

Post by janjust » Thu Dec 22, 2011 9:34 am

did you read the manual: http://openvpn.net/index.php/manuals/42 ... pn-22.html ?

it's explained in there quite nicely. Add

Code: Select all

lport 137
rport 1201
to the 'someserver.ovpn' file or use

Code: Select all

--lport 137 --rport 1201

JoeGibken
OpenVpn Newbie
Posts: 3
Joined: Wed Dec 21, 2011 9:07 pm

Re: Change lport & rport given a binary from provider? [Linu

Post by JoeGibken » Thu Dec 22, 2011 10:18 am

Oh. My bad ^^;; I should have read the manual & RTFM'd...

Thanks a bunch & will try it :D

Locked