Setting up Client on VPN via Command line.

node

Occasional Visitor
I would like to add one more client on my Network to my OpenVPN in my Router via ssh command line. I would like to know the syntax. Also the syntax to open and delete ports via command line. I know the VPN server and the Client local IP address on my network. I can logged into the router via my SSH keys.Tnx
 
Last edited:

ColinTaylor

Part of the Furniture
That would depend on what router you have and what firmware it is running. We have no way of guessing what that might be. :rolleyes:
 
Last edited:

ColinTaylor

Part of the Furniture
I would like to add one more client on my Network to my OpenVPN in my Router via ssh command line. I would like to know the syntax.
There are approximately 34 nvram variables (nvram show | grep ^vpn_client1) that you need to set as well as at least 3 config files (ls -l /jffs/openvpn/). Plus VPN Director if you're using that.

Also the syntax to open and delete ports via command line.
You can use standard iptables commands (search Google for tutorials).
 

node

Occasional Visitor
I have to apologized and clarify my post a bit after reading. I need to add a device to one of my already set VPN's in my router using the command line. Not set a VPN client up. So I need to know exactly where I put this device IP address.
 

ColinTaylor

Part of the Furniture
Are you talking about the VPN Director rules? If so you need to edit the config file /jffs/openvpn/vpndirector_rulelist and then restart the appropriate VPN client (e.g. service restart_vpnclient1).
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top